王总上门按摩后台代码
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/agent-pages-order-detail.88...

1 lines
27 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["agent-pages-order-detail"],{"29ac":function(t,e,i){"use strict";i.r(e);var a=i("fb86"),n=i("3248");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("7dc4");var o=i("828b"),l=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"4a417ed4",null,!1,a["a"],void 0);e["default"]=l.exports},"2a692":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.detail.id?i("v-uni-view",{staticClass:"order-pages"},[i("v-uni-view",{staticClass:"item-child pd-lg fill-base f-paragraph c-base",style:{background:t.primaryColor}},[i("v-uni-view",{staticClass:"text-bold"},[t._v(t._s(t.statusType[t.detail.pay_type]))]),1==t.detail.pay_type&&t.detail.end_time>0?i("v-uni-view",{staticClass:"f-caption mt-sm"},[t._v("请在"),i("min-countdown",{attrs:{targetTime:t.over_time_text},on:{callback:function(e){arguments[0]=e=t.$handleEvent(e),t.countEnd.apply(void 0,arguments)}}}),t._v("内完成支付,逾期未支付,订单将自动取消")],1):t._e(),i("v-uni-view",{staticClass:"space-lg"})],1),i("v-uni-view",{staticClass:"menu-list flex-warp rel ml-lg mr-lg pt-lg pb-lg pl-md pr-md fill-base f-paragraph c-caption radius-16",class:[{"add-bell":t.detail.is_add||t.detail.store_id}]},[i("v-uni-view",{staticClass:"menu-line abs b-1px-b"}),t._l(t.lineList,(function(e,a){return[e.icon?i("v-uni-view",{key:a+"_0",staticClass:"item-child flex-center flex-column f-icontext c-paragraph",style:{color:t.detail.pay_type>e.pay_type-1?t.primaryColor:""}},[i("v-uni-view",{staticClass:"item-img fill-base flex-center mb-sm radius",style:{borderColor:t.detail.pay_type>e.pay_type-1?t.primaryColor:""}},[i("i",{staticClass:"iconfont",class:e.icon})]),i("v-uni-view",{staticClass:"ellipsis",staticStyle:{"max-width":"100%"}},[t._v(t._s(e.title))])],1):t._e()]}))],2),i("v-uni-view",{staticClass:"item-child mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[i("v-uni-view",{staticClass:"flex-between pb-lg"},[i("v-uni-view",{staticClass:"f-paragraph c-title max-380 ellipsis"},[t._v("服务内容")])],1),t._l(t.detail.order_goods,(function(e,a){return i("v-uni-view",{key:a,staticClass:"flex-center",class:[{"mb-lg":a!=t.detail.order_goods.length-1}]},[i("v-uni-view",{staticClass:"avatar lg radius-16"},[i("v-uni-view",{staticClass:"h5-image avatar lg radius-16",style:{backgroundImage:"url('"+e.goods_cover+"')"}})],1),i("v-uni-view",{staticClass:"flex-1 ml-md"},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"f-mini-title c-title text-bold max-380 ellipsis"},[t._v(t._s(e.goods_name))]),i("v-uni-view",{staticClass:"c-paragraph"},[t._v("x"+t._s(e.num))])],1),1*e.material_price>0?i("v-uni-view",{staticClass:"f-caption c-caption"},[t._v("物料费:¥"+t._s(e.material_price))]):t._e(),i("v-uni-view",{staticClass:"flex-between mt-md"},[i("v-uni-view",{staticClass:"f-caption",staticStyle:{color:"#777"}},[t._v("服务时长 "+t._s(e.time_long)+"分钟")]),e.refund_num>0?i("v-uni-view",{staticClass:"f-caption c-warning"},[t._v("已退x"+t._s(e.refund_num))]):t._e()],1),i("v-uni-view",{staticClass:"f-paragraph c-warning text-bold mt-sm"},[t._v("¥"+t._s(e.price))])],1)],1)}))],2),t.detail.store_id?i("v-uni-view",{staticClass:"store-info mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[i("v-uni-view",{staticClass:"f-mini-title c-title text-bold pb-md"},[t._v(t._s(t.detail.store_info.title))]),i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"flex-y-center",staticStyle:{color:"#303030"}},[i("i",{staticClass:"iconfont icondizhi1 mr-sm"}),i("v-uni-view",{staticClass:"c-title flex-1 mr-md"},[i("span",[t._v(t._s(t.detail.store_info.address||"暂未设置门店地址"))]),t.detail.store_info.address?i("span",{staticClass:"copy-btn span f-icontext radius-5 ml-sm",style:{color:t.primaryColor,borderColor:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:t.detail.store_info.address,openType:"copy"})}}},[t._v("复制")]):t._e()])],1),i("v-uni-view",{staticClass:"flex-center"},[i("v-uni-view",{staticClass:"item-icon rel flex-center radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:t.detail.store_info.phone,openType:"call"})}}},[i("v-uni-view",{staticClass:"item-icon radius-16 abs",style:{background:t.primaryColor}}),i("i",{staticClass:"iconfont icondadianhua_1",style:{color:t.primaryColor}})],1),t.detail.store_info.address?i("v-uni-view",{staticClass:"item-icon rel flex-center radius-16 ml-md",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toMap("store_info")}}},[i("v-uni-view",{staticClass:"item-icon radius-16 abs",style:{background:t.primaryColor}}),i("i",{staticClass:"iconfont icondizhi_1",style:{color:t.primaryColor}})],1):t._e()],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"order-agent-info store-info mt-md ml-lg mr-lg pd-lg fill-base f-paragraph radius-16"},[i("v-uni-view",{staticClass:"flex-center"},[i("v-uni-image",{staticClass:"coach-img radius",attrs:{mode:"aspectFill",src:t.detail.coach_info.work_img}}),i("v-uni-view",{staticClass:"flex-1 ml-lg f-title text-bold ellipsis",staticStyle:{"max-width":"506rpx"}},[t._v(t._s(t.detail.coach_info?t.detail.coach_info.coach_name:""))])],1),i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("下单人")]),i("v-uni-view",{staticClass:"text flex-1 ellipsis"},[t._v(t._s(t.detail.address_info.user_name))])],1),i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("联系方式")]),i("v-uni-view",{staticClass:"text flex-1 flex-between"},[i("v-uni-view",[t._v(t._s(t.detail.address_info.mobile.substring(0,3))+"****"+t._s(t.detail.address_info.mobile.substring(7,11)))]),i("v-uni-view",{staticClass:"item-icon rel flex-center radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toTel.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"item-icon radius-16 abs",style:{background:t.primaryColor}}),i("i",{staticClass:"iconfont icondadianhua_1",style:{color:t.primaryColor}})],1)],1)],1),t.detail.store_id?t._e():i("v-uni-view",{staticClass:"flex-warp mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("服务地址")]),i("v-uni-view",{staticClass:"text flex-1 flex-between"},[i("v-uni-view",{staticStyle:{"max-width":"350rpx"}},[i("span",[t._v(t._s(""+t.detail.address_info.address+t.detail.address_info.address_info))]),i("span",{staticClass:"copy-btn fill radius-5 f-icontext ml-sm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toCopy.apply(void 0,arguments)}}},[t._v("复制")])]),i("v-uni-view",{staticClass:"item-icon rel flex-center radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toMap("address_info")}}},[i("v-uni-view",{staticClass:"item-icon radius-16 abs",style:{background:t.primaryColor}}),i("i",{staticClass:"iconfont icondizhi_1",style:{color:t.primaryColor}})],1)],1)],1),t.detail.text?i("v-uni-view",{staticClass:"mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("订单备注")]),i("v-uni-view",{staticClass:"text mt-sm"},[t._v(t._s(t.detail.text))])],1):t._e(),i("v-uni-view",{staticClass:"flex-center mt-lg pt-lg b-1px-t"},[i("v-uni-view",{staticClass:"title"},[t._v("下单时间")]),i("v-uni-view",{staticClass:"text flex-1"},[t._v(t._s(t.detail.create_time))])],1),i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("服务时间")]),i("v-uni-view",{staticClass:"text flex-1"},[t._v(t._s(t.detail.start_time))])],1),i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("服务时长")]),i("v-uni-view",{staticClass:"text flex-1"},[t._v(t._s(t.detail.time_long)+"分钟")])],1),t.detail.is_add||t.detail.store_id?t._e():[i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("车费详情")]),i("v-uni-view",{staticClass:"text flex-1 flex-y-center"},[t._v(t._s(t.carType[t.detail.car_type])),1==t.detail.car_type?i("v-uni-view",{staticClass:"ml-md"},[t._v("全程"+t._s(t.detail.distance))]):t._e()],1)],1),1==t.detail.car_type?i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("出行费用")]),i("v-uni-view",{staticClass:"text flex-1"},[t._v("出租车 ¥"+t._s(t.detail.car_price))])],1):t._e()],i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("服务项目费用")]),i("v-uni-view",{staticClass:"text flex-1"},[t._v("¥"+t._s(t.detail.init_service_price))])],1),1*t.detail.discount>0?i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("卡券优惠")]),i("v-uni-view",{staticClass:"text flex-1"},[t._v("-¥"+t._s(t.detail.discount))])],1):t._e(),i("v-uni-view",{staticClass:"flex-center mt-lg"},[i("v-uni-view",{staticClass:"title"},[t._v("支付方式")]),i("v-uni-view",{staticClass:"text flex-1"},[t._v(t._s(t.payType[t.detail.pay_model]))])],1),i("v-uni-view",{staticClass:"flex-between mt-lg pt-lg b-1px-t"},[i("v-uni-view",{staticClass:"title"}),i("v-uni-view",{staticClass:"flex-y-baseline f-paragraph c-black text-bold"},[t._v("总计:"),i("v-uni-view",{staticClass:"c-warning"},[t._v("¥"+t._s(t.detail.pay_price))])],1)],1)],2),i("v-uni-view",{staticClass:"mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[i("v-uni-view",{staticClass:"flex-y-center pb-lg f-mini-title c-title flex-warp b-1px-b"},[i("v-uni-view",{staticClass:"flex-between text-bold"},[t._v("订单编号:")]),i("v-uni-view",{staticClass:"flex-between flex-1 "},[i("v-uni-view",{staticClass:"text-bold max-350 ellipsis"},[t._v(t._s(t.detail.order_code))]),i("v-uni-view",{staticClass:"copy-btn flex-center radius-5 f-icontext",style:{borderColor:t.primaryColor,color:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({openType:"copy",url:t.detail.order_code})}}},[t._v("复制")])],1)],1),i("v-uni-view",{staticClass:"space-lg"}),i("timeline",{attrs:{list:t.lineList,info:t.detail}})],1),i("v-uni-view",{staticClass:"space-max-footer"}),[2,3,4,5,6,8].includes(t.detail.pay_type)?i("fix-bottom-button",{attrs:{text:t.detail.is_add&&8!=t.detail.pay_type?[{text:t.$t("action."+t.technicianStatusOperType[3===t.detail.pay_type&&(t.detail.is_add||t.detail.store_id)?5:t.detail.pay_type]),type:"confirm"}]:[{text:t.$t("action.transferOrder"),type:"cancel"},{text:t.$t("action."+t.technicianStatusOperType[3===t.detail.pay_type&&(t.detail.is_add||t.detail.store_id)?5:8==t.detail.pay_type?-1:t.detail.pay_type]),type:"confirm"}],bgColor:"#fff",classType:2},on:{cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:"/agent/pages/order/change?id="+t.options.id+"&agent="+t.options.agent})},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.toConfirm.apply(void 0,arguments)}}}):t._e(),i("uni-popup",{ref:"change_item",attrs:{type:"center",custom:!0}},[i("v-uni-view",{staticClass:"common-popup-content fill-base pd-lg radius-34"},[i("v-uni-view",{staticClass:"title"},[t._v("温馨提示")]),i("v-uni-view",{staticClass:"desc"},[t._v("你确认要操作"+t._s(t.$t("action."+t.technicianStatusOperType[t.popupInfo.type]))+"吗?")]),-1==t.popupInfo.type?i("v-uni-view",{staticClass:"f-caption c-warning"},[t._v("退款金额:¥"+t._s(t.popupInfo.refund_price))]):t._e(),i("v-uni-view",{staticClass:"button"},[i("v-uni-view",{staticClass:"item-child",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$refs.change_item.close()}}},[t._v("取消")]),i("v-uni-view",{staticClass:"item-child c-base",style:{background:t.primaryColor,color:"#fff"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.confirmChangeOrder.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)],1)],1):t._e()},n=[]},3248:function(t,e,i){"use strict";i.r(e);var a=i("7e64"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"6ba2":function(t,e,i){var a=i("84fd");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("1e89e3b9",a,!0,{sourceMap:!1,shadowMode:!1})},7017:function(t,e,i){var a=i("959e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("a5760732",a,!0,{sourceMap:!1,shadowMode:!1})},"7dc4":function(t,e,i){"use strict";var a=i("6ba2"),n=i.n(a);n.a},"7e64":function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("2634")),s=a(i("2fdc"));i("64aa");var o=i("8f59"),l={name:"timeline",props:{list:{type:Array,default:function(){return{}}},info:{type:Object,default:function(){return{}}},type:{type:Number,default:function(){return 0}}},data:function(){return{}},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),methods:{toPreviewImage:function(t){var e=this.info[t];this.$util.previewImage({curent:e,urls:[e]})},toMap:function(t){var e=this;return(0,s.default)((0,n.default)().mark((function i(){var a;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=e.info,i.next=3,e.$util.checkAuth({type:"userLocation"});case 3:return i.next=5,uni.getLocation({type:"gcj02"});case 5:return i.next=7,uni.openLocation({latitude:1*a["".concat(t,"_lat")],longitude:1*a["".concat(t,"_lng")],name:a["".concat(t,"_address")],scale:28});case 7:case"end":return i.stop()}}),i)})))()},toSign:function(){var t=this.info.id,e="/user/pages/order/sign?id=".concat(t);this.$util.goUrl({url:e})}}};e.default=l},"84fd":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.record-item[data-v-4a417ed4]{padding:0 0 %?30?% %?30?%}.record-item .item-tag[data-v-4a417ed4]{width:14px;height:14px;display:block;background:#fff;border-radius:50%;top:0;left:-7px;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.record-item .item-text[data-v-4a417ed4]{line-height:%?34?%}.record-item .item-img[data-v-4a417ed4]{width:%?180?%;min-height:%?118?%}.record-item .item-btn[data-v-4a417ed4]{width:%?160?%;height:%?64?%;background:#eee}.record-item.b-1px-l[data-v-4a417ed4]::before{border-left:2px solid #ccc}.record-item[data-v-4a417ed4]:last-child{padding-bottom:0}',""]),t.exports=e},"959e":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.avatar.coath[data-v-6dddf15c]{width:%?94?%;height:%?94?%}',""]),t.exports=e},ab1a:function(t,e,i){"use strict";var a=i("7017"),n=i.n(a);n.a},ae92:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("aa9c"),i("4626"),i("c223");var n=a(i("2634")),s=a(i("2fdc")),o=a(i("9b1b")),l=i("8f59"),r=a(i("29ac")),c={components:{timeline:r.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:"待转单"},technicianStatusOperType:{"-1":"agreeRefund",2:"orderTaking",3:"setOut",4:"arrive",5:"startService",6:"serviceCompletion"},carType:{0:"公交/地铁",1:"出租车"},payType:{1:"微信支付",2:"余额支付",3:"支付宝支付"},lineList:[],base_service:[{pay_type:3,title:this.$t("action.attendantName")+"接单",time:"receiving_time",icon:"iconjishijiedan"},{pay_type:4,title:this.$t("action.attendantName")+"出发",time:"serout_time",icon:"iconjishichufa"},{pay_type:5,title:this.$t("action.attendantName")+"到达",time:"arrive_time",icon:"iconjishidaoda"},{pay_type:6,title:"开始服务",time:"start_service_time",icon:"iconjishifuwu"},{pay_type:7,title:"服务完成",time:"order_end_time",icon:"iconjishiwancheng"},{pay_type:7,title:"签字确认",time:"sign_time",icon:""}],base_bell:[{pay_type:3,title:this.$t("action.attendantName")+"接单",time:"receiving_time",icon:"iconjishijiedan"},{pay_type:6,title:"开始服务",time:"start_service_time",icon:"iconjishifuwu"},{pay_type:7,title:"服务完成",time:"order_end_time",icon:"iconjishiwancheng"}],detail:{pay_type:0},check_label:[],coach_refund_text:"",lockTap:!1,popupInfo:{title:"",type:"",param:{},imgs:[],location:{lat:0,lng:0,address:""}}}},computed:(0,l.mapState)({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},haveOperItem:function(t){return t.technician.haveOperItem},over_time_text:function(){return(new Date).getTime()+1e3*this.detail.end_time}}),onLoad:function(t){var e=t.agent,i=void 0===e?0:e;t.agent=1*i,this.options=t,this.initIndex()},onShow:function(){this.haveOperItem&&(this.$util.back(),this.updateTechnicianItem({key:"haveOperItem",val:!1}))},methods:(0,o.default)((0,o.default)((0,o.default)({},(0,l.mapActions)(["getConfigInfo","getCoachInfo"])),(0,l.mapMutations)(["updateTechnicianItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,n.default)().mark((function i(){var a,s,o,l,r,c,d,u,p,v,f;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],a||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:if(e.configInfo.id&&!a){i.next=8;break}return i.next=8,e.getConfigInfo();case 8:return s=e.options,o=s.id,l=s.agent,r=l?"agent":"admin",i.next=12,e.$api[r].orderInfo({id:o});case 12:c=i.sent,e.$util.setNavigationBarColor({bg:e.primaryColor}),c.is_balance=1*c.balance>0?1:0,c.pay_type,c.time_long,c.start_service_time,d=c.is_add,u=void 0===d?0:d,p=c.store_id,v=void 0===p?0:p,f=e.$util.deepCopy(u||v?e.base_bell:e.base_service),v&&f.push({pay_type:7,title:"签字确认",time:"sign_time",icon:""}),e.lineList=f,e.detail=c;case 20:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex(!0)},countEnd:function(){var t=this;this.$util.log("倒计时完了"),setTimeout((function(){t.initRefresh(),t.$util.back()}),1e3)},toConfirm:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i,a,s,o,l,r,c,d,u,p,v;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t.detail,a=i.id,s=i.pay_type,o=i.is_add,l=void 0===o?0:o,r=i.store_id,c=void 0===r?0:r,d=i.true_car_price,u=i.true_service_price,p=3===s&&(l||c)?5:s,v=(1*d+1*u).toFixed(2),t.popupInfo={order_id:a,type:8==s?-1:p,refund_price:v},t.$refs.change_item.open();case 5:case"end":return e.stop()}}),e)})))()},confirmChangeOrder:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i,a,s,o,l;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.$util.deepCopy(t.popupInfo),i.type=i.type+1,a=i.type,delete i.index,s={"-1":"退款成功",3:"接单成功",4:"已成功出发",5:"已成功到达",6:"已开始服务",7:"服务已完成"},t.activeIndex,!t.lockTap){e.next=8;break}return e.abrupt("return");case 8:return t.lockTap=!0,t.$util.showLoading(),o=t.options.agent,l=o?"agent":"admin",e.prev=12,e.next=15,t.$api[l].adminUpdateOrder(i);case 15:t.$refs.change_item.close(),t.$util.showToast({title:s[a]}),t.lockTap=!1,t.updateTechnicianItem({key:"haveOperItem",val:!0}),t.initRefresh(),t.$util.back(),e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](12),setTimeout((function(){t.lockTap=!1,t.$util.hideAll()}),2e3),e.abrupt("return");case 27:case"end":return e.stop()}}),e,null,[[12,23]])})))()},toTel:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i,a,s,o,l,r,c;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.detail,a=i.id,s=i.pay_type,o=t.options.agent,l=o?"agent":"admin",![2,3,4,5,6].includes(s)){e.next=10;break}return e.next=6,t.$api[l].getVirtualPhone({order_id:a});case 6:r=e.sent,t.$util.goUrl({url:r,openType:"call"}),e.next=12;break;case 10:c=7==s?"服务结束":"服务取消",t.$util.showToast({title:"".concat(c,"不能联系客户哦")});case 12:case"end":return e.stop()}}),e)})))()},toCopy:function(){var t=this.detail.address_info,e=t.address,i=t.address_info,a="".concat(e).concat(i);this.$util.goUrl({url:a,openType:"copy"})},toMap:function(t){var e=this;return(0,s.default)((0,n.default)().mark((function i(){var a,s,o,l,r,c;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=e.detail[t],s=a.address,o=a.address_info,l=void 0===o?"":o,r=a.lat,c=a.lng,i.next=3,e.$util.checkAuth({type:"userLocation"});case 3:return i.next=5,uni.getLocation({type:"gcj02"});case 5:return i.next=7,uni.openLocation({latitude:1*r,longitude:1*c,name:l?"".concat(s," ").concat(l):s,scale:28});case 7:case"end":return i.stop()}}),i)})))()}})};e.default=c},b95c:function(t,e,i){"use strict";i.r(e);var a=i("2a692"),n=i("be61");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("ab1a");var o=i("828b"),l=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"6dddf15c",null,!1,a["a"],void 0);e["default"]=l.exports},be61:function(t,e,i){"use strict";i.r(e);var a=i("ae92"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},fb86:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"record-box fill-base"},t._l(t.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"record-item rel ml-sm b-1px-l",style:{padding:a==t.list.length-1?"0 0 0 30rpx":""}},[i("v-uni-text",{staticClass:"item-tag abs",class:[{cur:t.info.pay_type>e.pay_type-1&&8!=t.info.pay_type}],style:{border:"2rpx solid "+t.primaryColor,background:t.info.pay_type>e.pay_type-1&&8!=t.info.pay_type?t.primaryColor:""}}),i("v-uni-view",{staticClass:"c-title"},[i("v-uni-view",{staticClass:"item-text f-paragraph flex-y-baseline"},[t._v(t._s(e.title)),i("v-uni-view",{staticClass:"ml-md f-caption c-caption",style:{color:("签字确认"!=e.title||t.info.sign_img)&&t.info.pay_type>e.pay_type-1&&8!=t.info.pay_type?t.primaryColor:""}},[t._v(t._s("签字确认"!=e.title||t.info.sign_img?t.info.pay_type>e.pay_type-1&&8!=t.info.pay_type?"":"状态未开始":"暂未签字确认"))])],1),t.info.pay_type>1*e.pay_type-1&&t.info[e.time]?i("v-uni-view",{staticClass:"c-caption"},[t._v(t._s(t.info[e.time]))]):t._e()],1),4==e.pay_type&&!t.info.is_add&&t.info.pay_type>3?[t.info.serout_address?i("v-uni-view",{staticClass:"flex-y-center mt-md f-caption c-title",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toMap("serout")}}},[i("i",{staticClass:"iconfont iconjuli mr-sm",style:{color:t.primaryColor}}),t._v(t._s(t.info.serout_address))]):t._e()]:t._e(),5==e.pay_type&&!t.info.is_add&&t.info.pay_type>4&&(t.info.arrive_img||t.info.arr_address)?[t.info.arrive_img?[t.info.arrive_img?i("v-uni-view",{staticClass:"item-img mt-md radius-5",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toPreviewImage("arrive_img")}}},[i("v-uni-view",{staticClass:"h5-image item-img mt-md radius-5",style:{backgroundImage:"url('"+t.info.arrive_img+"')"}})],1):t._e()]:t._e(),t.info.arr_address?i("v-uni-view",{staticClass:"flex-y-center mt-md f-caption c-title",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toMap("arr")}}},[i("i",{staticClass:"iconfont iconjuli mr-sm",style:{color:t.primaryColor}}),t._v(t._s(t.info.arr_address))]):t._e()]:t._e(),"服务完成"==e.title&&7==t.info.pay_type&&(t.info.end_img||t.info.end_address)?[t.info.end_img?[i("v-uni-view",{staticClass:"item-img mt-md radius-5",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toPreviewImage("end_img")}}},[i("v-uni-view",{staticClass:"h5-image item-img mt-md radius-5",style:{backgroundImage:"url('"+t.info.end_img+"')"}})],1)]:t._e(),t.info.end_address?i("v-uni-view",{staticClass:"flex-y-center mt-md f-caption c-title",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toMap("end")}}},[i("i",{staticClass:"iconfont iconjuli mr-sm",style:{color:t.primaryColor}}),t._v(t._s(t.info.end_address))]):t._e()]:t._e(),"签字确认"==e.title&&7==t.info.pay_type?[t.info.sign_img?[i("v-uni-view",{staticClass:"item-img mt-md radius-5",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toPreviewImage("sign_img")}}},[i("v-uni-view",{staticClass:"h5-image item-img mt-md radius-5",style:{backgroundImage:"url('"+t.info.sign_img+"')"}})],1)]:t._e(),1!=t.type||t.info.is_add||t.info.sign_img?t._e():i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"item-btn flex-center mt-md c-base radius",style:{background:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toSign.apply(void 0,arguments)}}},[t._v("签字确认")]),i("v-uni-view")],1)]:t._e()],2)})),1)],1)},n=[]}}]);