require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/order/productList"],{799:function(e,r,t){"use strict";(function(e,r){var n=t(4);t(26);n(t(25));var o=n(t(800));e.__webpack_require_UNI_MP_PLUGIN__=t,r(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},800:function(e,r,t){"use strict";t.r(r);var n=t(801),o=t(803);for(var s in o)["default"].indexOf(s)<0&&function(e){t.d(r,e,(function(){return o[e]}))}(s);t(805);var i,l=t(34),c=Object(l["default"])(o["default"],n["render"],n["staticRenderFns"],!1,null,null,null,!1,n["components"],i);c.options.__file="pages_company/order/productList.vue",r["default"]=c.exports},801:function(e,r,t){"use strict";t.r(r);var n=t(802);t.d(r,"render",(function(){return n["render"]})),t.d(r,"staticRenderFns",(function(){return n["staticRenderFns"]})),t.d(r,"recyclableRender",(function(){return n["recyclableRender"]})),t.d(r,"components",(function(){return n["components"]}))},802:function(e,r,t){"use strict";var n;t.r(r),t.d(r,"render",(function(){return o})),t.d(r,"staticRenderFns",(function(){return i})),t.d(r,"recyclableRender",(function(){return s})),t.d(r,"components",(function(){return n}));try{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,1051))}}}catch(l){if(-1===l.message.indexOf("Cannot find module")||-1===l.message.indexOf(".vue"))throw l;console.error(l.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var 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=!1,i=[];o._withStripped=!0},803:function(e,r,t){"use strict";t.r(r);var n=t(804),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},804:function(e,r,t){"use strict";(function(e){var n=t(4);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=t(763),s=n(t(230)),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.getSalesProducts)(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:"productDetails?productId="+r.productId})},openCart:function(){e.navigateTo({url:"./cart"})}}};r.default=i}).call(this,t(2)["default"])},805:function(e,r,t){"use strict";t.r(r);var n=t(806),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},806:function(e,r,t){}},[[799,"common/runtime","common/vendor","pages_company/common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_company/order/productList.js.map