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
17 KiB
1 line
17 KiB
2 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order"],{"002b":function(t,e,n){"use strict";n.r(e);var a=n("fb12"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},1444:function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("dd2b"),n("c223");var i=a(n("9b1b")),r=a(n("2634")),o=a(n("2fdc")),c=n("8f59"),s=a(n("ea26")),u={components:{tabbar:s.default},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)((0,r.default)().mark((function n(){var a,i;return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=t.tab,i=void 0===a?0:a,e.updateOrderItem({key:"activeIndex",val:i}),n.next=4,e.initIndex();case 4:case"end":return n.stop()}}),n)})))()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.loading=!0,this.getList(this.param.page+1))},methods:(0,i.default)((0,i.default)((0,i.default)({},(0,c.mapActions)(["getConfigInfo","getOrderList"])),(0,c.mapMutations)(["updateOrderItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,o.default)((0,r.default)().mark((function n(){var a;return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],a||!e.$jweixin.isWechat()){n.next=5;break}return n.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:if(e.configInfo.id&&!a){n.next=8;break}return n.next=8,e.getConfigInfo();case 8:return n.next=10,e.getList(1);case 10:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex(!0)},getList:function(){var t=arguments,e=this;return(0,o.default)((0,r.default)().mark((function n(){var a,i,o,c,s;return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=t.length>0&&void 0!==t[0]?t[0]:0,a&&(i=e.$util.deepCopy(e.param),i.page=a,e.updateOrderItem({key:"param",val:i})),e.list,o=e.param,c=e.tabList,s=e.activeIndex,o.pay_type=c[s].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(t){this.updateOrderItem({key:"activeIndex",val:t}),uni.pageScrollTo({scrollTop:0}),this.$util.showLoading(),this.getList(1)},toCancel:function(t){var e=this;return(0,o.default)((0,r.default)().mark((function n(){var a,i,o,c,s,u,l;return(0,r.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:a=e.list.data[t],i=a.id,o=a.order_code,c=a.order_goods,s=a.pay_type,u=c[0].goods_cover,e.popupInfo={id:i,name:"系统单号:".concat(o),image:u,index:t},l=1==s?"cancel_item":"del_item",e.$refs[l].open();case 5:case"end":return n.stop()}}),n)})))()},confirmCancel:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){var n,a,i;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.popupInfo,a=n.id,i=n.index,e.next=3,t.$api.order.cancelOrder({id:a});case 3:0==t.activeIndex?t.list.data[i].pay_type=-1:t.list.data.splice(i,1),t.$util.showToast({title:"取消成功"}),t.$refs.cancel_item.clo
|