You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
8.1 KiB
1 line
8.1 KiB
5 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order"],{"5c7c":function(t,e,n){"use strict";n.r(e);var r=n("7fc8"),a=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a},"7fc8":function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n("7eb4")),i=r(n("7ca3")),o=r(n("ee10")),c=n("8f59");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={components:{tabbar:function(){n.e("components/tabbar").then(function(){return resolve(n("ea26"))}.bind(null,n)).catch(n.oe)}},data:function(){return{options:{},statusType:{"-1":"已取消",1:"待支付",2:"待服务",3:this.$t("action.attendantName")+"接单",4:this.$t("action.attendantName")+"出发",5:this.$t("action.attendantName")+"到达",6:"服务中",7:"已完成",8:"待转单"},loading:!0,popupInfo:{},lockTap:!1}},computed:(0,c.mapState)({activeIndex:function(t){return t.order.activeIndex},tabList:function(t){return t.order.tabList},param:function(t){return t.order.param},list:function(t){return t.order.list},primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){var e=this;return(0,o.default)(a.default.mark((function n(){var r,i;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.tab,i=void 0===r?0:r,e.updateOrderItem({key:"activeIndex",val:i}),n.next=4,e.initIndex();case 4:case"end":return n.stop()}}),n)})))()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.loading=!0,this.getList(this.param.page+1))},methods:s(s(s({},(0,c.mapActions)(["getConfigInfo","getOrderList"])),(0,c.mapMutations)(["updateOrderItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,o.default)(a.default.mark((function n(){var r;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=t.length>0&&void 0!==t[0]&&t[0],e.configInfo.id&&!r){n.next=4;break}return n.next=4,e.getConfigInfo();case 4:return n.next=6,e.getList(1);case 6:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex(!0)},getList:function(){var t=arguments,e=this;return(0,o.default)(a.default.mark((function n(){var r,i,o,c,u;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:0,r&&(i=e.$util.deepCopy(e.param),i.page=r,e.updateOrderItem({key:"param",val:i})),e.list,o=e.param,c=e.tabList,u=e.activeIndex,o.pay_type=c[u].id,n.prev=4,n.next=7,e.getOrderList(o);case 7:e.loading=!1,e.$util.hideAll(),n.next=15;break;case 11:n.prev=11,n.t0=n["catch"](4),e.loading=!1,e.$util.hideAll();case 15:case"end":return n.stop()}}),n,null,[[4,11]])})))()},handerTabChange:function(e){this.updateOrderItem({key:"activeIndex",val:e}),t.pageScrollTo({scrollTop:0}),this.$util.showLoading(),this.getList(1)},toCancel:function(t){var e=this;return(0,o.default)(a.default.mark((function n(){var r,i,o,c,u,s,l;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=e.list.data[t],i=r.id,o=r.order_code,c=r.order_goods,u=r.pay_type,s=c[0].goods_cover,e.popupInfo={id:i,name:"系统单号:".concat(o),image:s,index:t},l=1==u?"cancel_item":"del_item",e.$refs[l].open();case 5:case"end":return n.stop()}}),n)})))(
|