12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/myOrder/myOrder"],{194:function(t,e,n){"use strict";(function(t,e){var a=n(4);n(26);a(n(25));var r=a(n(195));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},195:function(t,e,n){"use strict";n.r(e);var a=n(196),r=n(198);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n(200);var i,u=n(32),s=Object(u["default"])(r["default"],a["render"],a["staticRenderFns"],!1,null,"25d6346a",null,!1,a["components"],i);s.options.__file="pages/my/myOrder/myOrder.vue",e["default"]=s.exports},196:function(t,e,n){"use strict";n.r(e);var a=n(197);n.d(e,"render",(function(){return a["render"]})),n.d(e,"staticRenderFns",(function(){return a["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return a["recyclableRender"]})),n.d(e,"components",(function(){return a["components"]}))},197:function(t,e,n){"use strict";var a;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return i})),n.d(e,"recyclableRender",(function(){return o})),n.d(e,"components",(function(){return a}));try{a={uTabs:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,313))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,288))},uLoadmore:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(n.bind(null,260))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.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,t.__map(t.data,(function(e,n){var a=t.__get_orig(e),r=t.formatStatus(e.orderStatus),o=t.formatStatus(e.orderStatus);return{$orig:a,m0:r,m1:o}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},o=!1,i=[];r._withStripped=!0},198:function(t,e,n){"use strict";n.r(e);var a=n(199),r=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=r.a},199:function(t,e,n){"use strict";(function(t){var a=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(56)),o=a(n(18)),i=a(n(58)),u=n(175),s={onLoad:function(){2!=this.type&&this.fetchData()},onShow:function(){var t=getApp(),e=JSON.parse(JSON.stringify(t.globalData.type));t.globalData.type=null,this.type=e,2==this.type&&(this.searchData.pageNum=1,this.data=[],this.fetchData())},onReachBottom:function(){var e=this.total,n=this.searchData,a=n.pageNum,r=n.pageSize;if(e<=(a-1)*r)return t.$u.toast("没有更多了");this.isLoading||this.fetchData()},data:function(){return{type:"",isLoading:!1,searchData:{data:{},pageNum:1,pageSize:10},total:0,data:[],list1:[{name:"全部"},{name:"待处理",orderStatus:0,color:"#FFA133"},{name:"已接单",orderStatus:1,color:"#24C8DE;"},{name:"已发货",orderStatus:2,color:"#3E8DFF"},{name:"已取消",orderStatus:3,color:"#7F8696"}]}},methods:{formatStatus:function(t){var e=this.list1.find((function(e){return e.orderStatus==t}));return{name:e.name,color:e.color}},fetchData:function(){var e=this;return(0,i.default)(r.default.mark((function n(){var a;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.showLoading({title:"加载中...",icon:"loading",mask:!0}),e.isLoading=!0,n.prev=2,n.next=5,(0,u.getOrderList)(e.searchData);case 5:a=n.sent,t.hideLoading(),a.data.list&&a.data.list.length>0&&(e.data=[].concat((0,o.default)(e.data),(0,o.default)(a.data.list))),e.total=a.data.total,e.searchData.pageNum++;case 10:return n.prev=10,e.isLoading=!1,t.hideLoading(),n.finish(10);case 14:case"end":return n.stop()}}),n,null,[[2,,10,14]])})))()},changeTab:function(t){this.searchData.pageNum=1,this.searchData.data.orderStatus=t.orderStatus,this.data=[],this.fetchData()},handleOrder:function(e){t.navigateTo({url:"/pages/my/myOrderDetail/myOrderDetail?id=".concat(e)})}}};e.default=s}).call(this,n(2)["default"])},200:function(t,e,n){"use strict";n.r(e);var a=n(201),r=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=r.a},201:function(t,e,n){}},[[194,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/my/myOrder/myOrder.js.map
|