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
15 KiB
1 line
15 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order"],{"00fb":function(t,e,n){"use strict";n.r(e);var a=n("0632"),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},"0632":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a434"),n("99af");var i=a(n("5530")),r=a(n("c7eb")),o=a(n("1da1")),c=n("26cb"),s=a(n("0fbd")),u={components:{tabbar:s.default},data:function(){return{options:{},statusType:{"-1":"已取消",1:"待支付",2:"待服务",3:"技师接单",4:"技师出发",5:"技师到达",6:"服务中",7:"已完成"},loading:!0,popupInfo:{},lockTap:!1}},computed:(0,c.mapState)({pageActive:function(t){return t.order.pageActive},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:e.updateOrderItem({key:"pageActive",val:!0});case 5: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:e.$util.setNavigationBarColor({bg:e.primaryColor});case 11: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.next=6,e.getOrderList(o);case 6:e.loading=!1,e.$util.hideAll();case 8:case"end":return n.stop()}}),n)})))()},handerTabChange:function(t){this.updateOrderItem({key:"activeIndex",val:t}),uni.pageScrollTo({scrollTop:0}),this.$util.showLoading(),this.getList(1)},goShop:function(t){var 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:return a=e.list.data[t].cap_info.id,n.next=3,e.$api.order.selectCap({cap_id:a});case 3:e.$util.goUrl({url:"/pages/index?key=2"});case 4:case"end":return n.stop()}}),n)})))()},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?"del_item":"cancel_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(){
|