(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesTools/album/index"],{"0130":function(t,e,n){"use strict";n.r(e);var a=n("2bae"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},"119f":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.albumList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},i=[]},"2bae":function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("af34")),r=a(n("7ca3")),o=n("8f59");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}var c={components:{albumItem:function(){n.e("pagesTools/component/album/index").then(function(){return resolve(n("9571"))}.bind(null,n)).catch(n.oe)}},data:function(){return{loadEnd:!1,albumList:[],page:1,limit:20,hasMore:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,o.mapState)({themeColor:function(t){return t.app.themeColor},organize:function(t){return t.app.organize},shareImage:function(t){return t.app.shareImage},shareTitle:function(t){return t.app.shareTitle}})),onLoad:function(){var e=this;t.showLoading({title:"加载中"}),this.getAlbumList((function(){t.hideLoading(),e.loadEnd=!0}))},onPullDownRefresh:function(){this.page=1,this.getAlbumList((function(){t.stopPullDownRefresh()}))},onReachBottom:function(){this.hasMore&&(this.page++,this.getAlbumList())},onShareAppMessage:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},onShareTimeline:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},methods:{getAlbumList:function(e){var n=this;this.$util.request("album.albumList",{page:this.page,limit:this.limit}).then((function(a){if(e&&e(),1==a.code){var r=a.data.data;n.hasMore=n.page<a.data.total/n.limit,n.albumList=1==n.page?r:[].concat((0,i.default)(n.albumList),(0,i.default)(r))}else t.showToast({title:a.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取相册列表",t)}))}}};e.default=c}).call(this,n("df3c")["default"])},4625:function(t,e,n){"use strict";n.r(e);var a=n("119f"),i=n("0130");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("7c9e");var o=n("828b"),u=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=u.exports},"7c9e":function(t,e,n){"use strict";var a=n("9267"),i=n.n(a);i.a},9267:function(t,e,n){},ba46:function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("aa6c");a(n("3240"));var i=a(n("4625"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["ba46","common/runtime","common/vendor"]]]);