(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesMall/goods/list"],{"0762":function(t,e,n){"use strict";var o=n("c672"),a=n.n(o);a.a},"52e5":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("af34")),i=o(n("7ca3")),s=n("8f59");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var c={components:{mallGoods:function(){n.e("pagesMall/component/mall/goods").then(function(){return resolve(n("1f22"))}.bind(null,n)).catch(n.oe)}},data:function(){return{loadEnd:!1,screenId:"",pageTitle:"",page:1,limit:20,hasMore:!1,goodsList:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,s.mapState)({shareImage:function(t){return t.app.shareImage},shareTitle:function(t){return t.app.shareTitle}})),onLoad:function(e){var n=this;t.showLoading({title:"加载中"}),this.screenId=e.id,this.pageTitle=e.name?decodeURIComponent(e.name):"商品列表",this.getGoodsList((function(){n.loadEnd=!0,t.hideLoading()}))},onPullDownRefresh:function(){this.page=1,this.goodsList.length&&this.$refs.mallGoods.clearList(),this.getGoodsList((function(){t.stopPullDownRefresh()}))},onReachBottom:function(){this.hasMore&&(this.page++,this.getGoodsList())},onShareAppMessage:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},onShareTimeline:function(){return{title:this.shareTitle,imageUrl:this.shareImage}},methods:{getGoodsList:function(e){var n=this;this.$util.request("mall.goodsList",{page:this.page,limit:this.limit,category_id:this.screenId}).then((function(o){if(e&&e(),1==o.code){var i=o.data.data;n.hasMore=n.page<o.data.total/n.limit,n.goodsList=1==n.page?i:[].concat((0,a.default)(n.goodsList),(0,a.default)(i)),n.$nextTick((function(){n.goodsList.length&&n.$refs.mallGoods.getList(n.goodsList)}))}else t.showToast({title:o.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取商品列表",t)}))},waterfallLoadEnd:function(){this.waterfallData.reset=!1,this.hasMore?this.waterfallData.status="await":this.waterfallData.status="finish"}}};e.default=c}).call(this,n("df3c")["default"])},"5cfd":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("aa6c");o(n("3240"));var a=o(n("7cfe"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"7cfe":function(t,e,n){"use strict";n.r(e);var o=n("d20a"),a=n("c06d");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("0762");var s=n("828b"),r=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=r.exports},c06d:function(t,e,n){"use strict";n.r(e);var o=n("52e5"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},c672:function(t,e,n){},d20a:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.goodsList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]}},[["5cfd","common/runtime","common/vendor"]]]);