(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/productList"],{"22f6":function(e,r,t){"use strict";t.r(r);var n=t("a90b"),o=t("f223");for(var s in o)["default"].indexOf(s)<0&&function(e){t.d(r,e,(function(){return o[e]}))}(s);t("836d");var i=t("828b"),l=Object(i["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);r["default"]=l.exports},"836d":function(e,r,t){"use strict";var n=t("f588"),o=t.n(n);o.a},"90b7":function(e,r,t){"use strict";(function(e,r){var n=t("47a9");t("584a");n(t("3240"));var o=n(t("22f6"));e.__webpack_require_UNI_MP_PLUGIN__=t,r(o.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},a90b:function(e,r,t){"use strict";t.d(r,"b",(function(){return o})),t.d(r,"c",(function(){return s})),t.d(r,"a",(function(){return n}));var n={mescrollBody:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/mescroll-uni/components/mescroll-body/mescroll-body")]).then(t.bind(null,"fb9a"))}},o=function(){var e=this,r=e.$createElement,t=(e._self._c,1==e.showType?e.__map(e.dataList,(function(r,t){var n=e.__get_orig(r),o=r.price.toFixed(2);return{$orig:n,g0:o}})):null),n=2==e.showType?e.__map(e.dataList,(function(r,t){var n=e.__get_orig(r),o=r.price.toFixed(2),s=r.otPrice.toFixed(2);return{$orig:n,g1:o,g2:s}})):null;e.$mp.data=Object.assign({},{$root:{l0:t,l1:n}})},s=[]},df9c:function(e,r,t){"use strict";(function(e){var n=t("47a9");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=t("f5b2"),s=n(t("cde5")),i={mixins:[s.default],data:function(){return{showType:1,form:{defaultOrder:"desc",newOrder:null,priceOrder:null,salesOrder:null,productName:""},mescroll: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(e){void 0!=e.key&&(this.form.productName=e.key)},methods:{goSearch:function(e){this.form.productName=e.detail.value,this.mescroll.resetUpScroll()},searchChange:function(e){1==e?(this.form.defaultOrder="desc",this.form.priceOrder=null,this.form.salesOrder=null,this.form.newOrder=null):2==e?(this.form.defaultOrder=null,null==this.form.priceOrder?this.form.priceOrder="asc":"asc"==this.form.priceOrder?this.form.priceOrder="desc":"desc"==this.form.priceOrder&&(this.form.priceOrder=null),this.form.salesOrder=null,this.form.newOrder=null):3==e?(this.form.defaultOrder=null,this.form.priceOrder=null,null==this.form.salesOrder?this.form.salesOrder="asc":"asc"==this.form.salesOrder?this.form.salesOrder="desc":"desc"==this.form.salesOrder&&(this.form.salesOrder=null),this.form.newOrder=null):4==e&&(this.form.newOrder="desc",this.form.defaultOrder=null,this.form.priceOrder=null,this.form.salesOrder=null),this.mescroll.resetUpScroll()},showChange:function(e){this.showType=e},mescrollInit:function(e){this.mescroll=e},downCallback:function(e){e.resetUpScroll()},upCallback:function(r){var t=this;this.form.page=r.num,this.form.pageSize=r.size,(0,o.getProducts)(this.form).then((function(n){200==n.code?(1==r.num?t.dataList=n.data.list:t.dataList=t.dataList.concat(n.data.list),t.mescroll.endBySize(n.data.list.length,n.data.total)):(e.showToast({icon:"none",title:"请求失败"}),t.dataList=null,t.mescroll.endErr())}))},priceUp:function(e){this.priceIsUp=e,this.priceIsDown=!1},priceDown:function(e){this.priceIsDown=e,this.priceIsUp=!1},saleUp:function(e){this.saleIsUp=e,this.saleIsDown=!1},saleDown:function(e){this.saleIsDown=e,this.saleIsUp=!1},showDetail:function(r){e.navigateTo({url:"../shopping/productDetails?productId="+r.productId})}}};r.default=i}).call(this,t("df3c")["default"])},f223:function(e,r,t){"use strict";t.r(r);var n=t("df9c"),o=t.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){t.d(r,e,(function(){return n[e]}))}(s);r["default"]=o.a},f588:function(e,r,t){}},[["90b7","common/runtime","common/vendor"]]]);