王总上门按摩后台代码
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.
shangmenanmo/public/h6/static/js/technician-pages-order-list...

1 line
24 KiB

2 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-order-list"],{"0918":function(e,t,n){"use strict";n.r(t);var i=n("436a"),a=n("516d");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);var o=n("828b"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"bb5b0fbc",null,!1,i["a"],void 0);t["default"]=s.exports},"436a":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"recorder"})},a=[]},"516d":function(e,t,n){"use strict";n.r(t);var i=n("9772"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},"6e6c":function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("c223"),n("e966"),n("5c47"),n("a1c1"),n("4626"),n("dd2b"),n("aa9c"),n("bd06");var a=i(n("5de6")),r=i(n("9b1b")),o=i(n("2634")),s=i(n("2fdc")),c=n("8f59"),l=i(n("0918")),u={components:{MumuRecorder:l.default},data:function(){return{options:{},activeIndex:0,tabList:[{title:"待接单",id:2,number:0},{title:"待服务",id:5,number:0},{title:"服务中",id:6,number:0},{title:"已完成",id:7,number:0}],statusType:{2:"待接单",3:"已接单",4:"已出发",5:"已到达",6:"服务中",7:"已完成",8:"待转单"},param:{page:1,pay_type:0},list:{data:[]},loading:!0,index:-1,coach_refund_text:"",lockTap:!1,popupInfo:{title:"",index:"",type:"",param:{},imgs:[],location:{lat:0,lng:0,address:""}},unix_list:[]}},computed:(0,c.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},recorder:function(e){return e.order.recorder},recorder_status:function(e){return e.order.recorder_status},recorder_order_id:function(e){return e.order.recorder_order_id}}),onLoad:function(e){var t=this;return(0,s.default)((0,o.default)().mark((function n(){var i,a;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:t.options=e,i=e.tab,a=void 0===i?0:i,t.activeIndex=a,t.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.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:(0,r.default)((0,r.default)((0,r.default)({},(0,c.mapActions)(["getConfigInfo","getCoachInfo","toPlayAudio"])),(0,c.mapMutations)(["updateOrderItem"])),{},{initIndex:function(){var e=arguments,t=this;return(0,s.default)((0,o.default)().mark((function n(){var i;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],i||!t.$jweixin.isWechat()){n.next=5;break}return n.next=4,t.$jweixin.initJssdk();case 4:t.$jweixin.wxReady((function(){t.$jweixin.hideOptionMenu()}));case 5:if(t.configInfo.id&&!i){n.next=8;break}return n.next=8,t.getConfigInfo();case 8:return n.next=10,t.getList();case 10:if(t.$util.setNavigationBarColor({bg:t.primaryColor}),!i){n.next=13;break}return n.abrupt("return");case 13:case"end":return n.stop()}}),n)})))()},initRefresh:function(){uni.pageScrollTo({duration:0,scrollTop:0}),this.param.page=1,this.initIndex(!0)},getList:function(){var e=arguments,t=this;return(0,s.default)((0,o.default)().mark((function n(){var i,a,r,s,c,l;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.length>0&&void 0!==e[0]&&e[0],a=t.list,r=t.param,s=t.tabList,c=t.activeIndex,r.pay_type=s[c].id,n.next=5,t.$api.technician.orderList(r);case 5:l=n.sent,i||(1==t.param.page||(l.data=a.data.concat(l.data)),t.list=l),t.tabList[0].number=l.agent_order_count,t.tabList[1].number=l.wait_order_count,t.tabList[2].number=l.service_order_count,t.loading=!1,t.$util.hideAll();case 12:case"end":return n.stop()}}),n)})))()},handerT