(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shopping/productList"],{300:function(t,e,n){"use strict";(function(t,e){var o=n(4);n(26);o(n(25));var r=o(n(301));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},301:function(t,e,n){"use strict";n.r(e);var o=n(302),r=n(304);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n(306);var a,c=n(34),s=Object(c["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);s.options.__file="pages/shopping/productList.vue",e["default"]=s.exports},302:function(t,e,n){"use strict";n.r(e);var o=n(303);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},303:function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return a})),n.d(e,"recyclableRender",(function(){return i})),n.d(e,"components",(function(){return o}));try{o={mescrollBody:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mescroll-uni/components/mescroll-body/mescroll-body")]).then(n.bind(null,1051))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var r=function(){var t=this,e=t.$createElement,n=(t._self._c,1==t.showType?t.__map(t.dataList,(function(e,n){var o=t.__get_orig(e),r=e.price.toFixed(2);return{$orig:o,g0:r}})):null),o=2==t.showType?t.__map(t.dataList,(function(e,n){var o=t.__get_orig(e),r=e.price.toFixed(2),i=e.otPrice.toFixed(2);return{$orig:o,g1:r,g2:i}})):null;t.$mp.data=Object.assign({},{$root:{l0:n,l1:o}})},i=!1,a=[];r._withStripped=!0},304:function(t,e,n){"use strict";n.r(e);var o=n(305),r=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"]=r.a},305:function(t,e,n){"use strict";(function(t){var o=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(229),i=o(n(230)),a={mixins:[i.default],data:function(){return{searchValue:"",showType:2,cates:[],cateId:null,defaultOrder:"desc",pid:null,upOption:{onScroll:!0,use:!0,page:{num:0,size:10},noMoreSize:10,empty:{icon:"/static/images/no_data.png",tip:"暂无数据"},textNoMore:"已经到底了"},dataList:[]}},onLoad:function(t){this.cateId=t.cateId,this.pid=t.pid,console.log(this.cateId),this.getProductCateByPid()},methods:{goSearch:function(t){this.searchValue=t.detail.value,this.mescroll.resetUpScroll()},showChange:function(t){this.showType=t},getProductCateByPid:function(){var e=this,n={pid:this.pid};(0,r.getProductCateByPid)(n).then((function(n){200==n.code?e.cates=n.data:t.showToast({icon:"none",title:"请求失败"})}),(function(t){}))},cateChange:function(t){this.cateId=t.cateId,this.mescroll.resetUpScroll()},mescrollInit:function(t){this.mescroll=t},upCallback:function(e){var n=this,o={productName:this.searchValue,cateId:this.cateId,defaultOrder:this.defaultOrder,page:e.num,pageSize:e.size};(0,r.getProducts)(o).then((function(o){200==o.code?(1==e.num?n.dataList=o.data.list:n.dataList=n.dataList.concat(o.data.list),n.mescroll.endBySize(o.data.list.length,o.data.total)):(t.showToast({icon:"none",title:"请求失败"}),n.dataList=null,mescroll.endErr())}))},showDetail:function(e){t.navigateTo({url:"./productDetails?productId="+e.productId})}}};e.default=a}).call(this,n(2)["default"])},306:function(t,e,n){"use strict";n.r(e);var o=n(307),r=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"]=r.a},307:function(t,e,n){}},[[300,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/shopping/productList.js.map