(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-order-detail"],{"0798":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,a=t._self._c||e;return t.detail.id?a("v-uni-view",{staticClass:"order-pages"},[a("v-uni-view",{staticClass:"address"},[a("v-uni-view",{staticStyle:{padding:"30rpx",margin:"20rpx 0"}},[a("v-uni-view",{staticClass:"name"},[a("v-uni-image",{attrs:{src:i("7650"),mode:""}}),a("v-uni-text",[t._v(t._s(t.detail.address_info.user_name))]),a("v-uni-text",[t._v(t._s(t.detail.address_info.mobile))])],1),a("v-uni-view",{staticClass:"addressText"},[t._v(t._s(""+t.detail.address_info.address+t.detail.address_info.address_info))])],1)],1),a("v-uni-view",{staticClass:"item-child contentInfo mt-md ml-lg mr-lg pd-lg fill-base radius-16"},t._l(t.detail.order_goods,(function(e,i){return a("v-uni-view",{key:i,class:[{"mb-lg":i!=t.detail.order_goods.length-1}]},[a("v-uni-view",{staticClass:"flex-center"},[a("v-uni-image",{staticClass:"avatar lg radius-16",attrs:{mode:"aspectFill",src:e.goods_cover}}),a("v-uni-view",{staticClass:"flex-1 ml-md"},[a("v-uni-view",{staticClass:"flex-between"},[a("v-uni-view",{staticClass:"goods-title ellipsis",class:[{"max-300":e.refund_num>0}]},[t._v(t._s(e.goods_name))]),e.refund_num>0?a("v-uni-view",{staticClass:"f-caption c-warning"},[t._v("已退x"+t._s(e.refund_num))]):t._e()],1),a("v-uni-view",{staticClass:"flex-between",staticStyle:{"margin-top":"40rpx"}},[a("v-uni-view",{staticClass:"flex-y-baseline f-caption c-warning",staticStyle:{color:"#F4563C","font-size":"30rpx"}},[t._v("¥"),a("v-uni-view",{staticClass:"f-title text-bold"},[t._v(t._s(e.price))])],1),a("v-uni-view",{staticClass:"c-paragraph",staticStyle:{"font-size":"30rpx",color:"#333333"}},[t._v("x"+t._s(e.num))])],1)],1)],1),a("v-uni-view",{staticClass:"btnGroup"},[a("v-uni-view",{staticClass:"f-caption c-caption",staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[a("v-uni-text",[t._v("服务技师:")]),a("v-uni-text",[t._v(t._s(t.detail.coach_info.coach_name))])],1),a("v-uni-view",{staticClass:"f-caption c-caption",staticStyle:{display:"flex","margin-top":"40rpx","align-items":"center","justify-content":"space-between"}},[a("v-uni-text",[t._v("预约时间:")]),a("v-uni-text",[t._v(t._s(t.detail.start_time))])],1)],1)],1)})),1),a("v-uni-view",{staticClass:"item-child pd-lg fill-base f-paragraph c-base",staticStyle:{color:"#333",background:"transparent"}},[a("v-uni-view",{staticClass:"flex-y-baseline"},[a("v-uni-view",{staticClass:"text-bold"},[t._v(t._s(t.statusType[t.detail.pay_type]))]),-1==t.detail.pay_type&&t.detail.coach_refund_time?a("v-uni-view",{staticClass:"ml-md",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$refs.refuse_item.open()}}},[t._v("技师拒单,查看原因")]):t._e()],1),1==t.detail.pay_type&&t.detail.end_time>0?a("v-uni-view",{staticClass:"f-caption mt-sm"},[t._v("请在"),a("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(),a("v-uni-view",{staticClass:"space-lg"})],1),a("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"},[a("v-uni-view",{staticClass:"menu-line abs b-1px-b"}),t._l(t.lineList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"item-child flex-center flex-column f-icontext c-paragraph",style:{color:t.detail.pay_type>e.pay_type-1?t.primaryColor:""}},[a("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:""}},[a("i",{staticClass:"iconfont",class:e.icon})]),a("v-uni-view",[t._v(t._s(e.title))])],1)}))],2),a("v-uni-view",{staticClass:"mt-md ml-lg mr-lg pd-lg fill-base f-paragraph c-caption radius-16"},[a("v-uni-view",{staticClass:"flex-between"},[a("v-uni-image",{staticClass:"avatar sm radius",attrs:{src:t.detail.coach_info.work_img}}),a("v-uni-view",{staticClass:"c-title"},[t._v(t._s(t.detail.coach_info.coach_name))])],1),a("v-uni-view",{staticClass:"flex-between mt-md"},[a("v-uni-view",[t._v("下单时间")]),a("v-uni-view",{staticClass:"c-title"},[t._v(t._s(t.detail.create_time))])],1),a("v-uni-view",{staticClass:"flex-between mt-md"},[a("v-uni-view",[t._v("服务时间")]),a("v-uni-view",{staticClass:"c-title"},[t._v(t._s(t.detail.start_time))])],1),a("v-uni-view",{staticClass:"flex-between mt-md"},[a("v-uni-view",[t._v("服务时长")]),a("v-uni-view",{staticClass:"c-title"},[t._v(t._s(t.detail.time_long)+"分钟")])],1),a("v-uni-view",{staticClass:"flex-between mt-md"},[a("v-uni-view",[t._v("车费详情")]),a("v-uni-view",{staticClass:"flex-y-center c-title"},[t._v(t._s(t.carType[t.detail.car_type])),1==t.detail.car_type?a("v-uni-view",{staticClass:"ml-md"},[t._v("全程"+t._s(t.detail.distance))]):t._e()],1)],1),1==t.detail.car_type?a("v-uni-view",{staticClass:"flex-between mt-md"},[a("v-uni-view",[t._v("出行费用")]),a("v-uni-view",{staticClass:"c-warning"},[t._v("出租车 ¥"+t._s(t.detail.car_price))])],1):t._e(),a("v-uni-view",{staticClass:"flex-between mt-md"},[a("v-uni-view",[t._v("服务项目费用")]),a("v-uni-view",{staticClass:"c-warning"},[t._v("¥"+t._s(t.detail.init_service_price))])],1),1*t.detail.discount>0?a("v-uni-view",{staticClass:"flex-between mt-md"},[a("v-uni-view",[t._v("卡券优惠")]),a("v-uni-view",{staticClass:"c-warning"},[t._v("-¥"+t._s(t.detail.discount))])],1):t._e(),a("v-uni-view",{staticClass:"flex-between mt-md"},[a("v-uni-view",[t._v("支付方式")]),a("v-uni-view",{staticClass:"flex-y-baseline c-title"},[a("i",{staticClass:"iconfont mr-sm",class:t.payType[t.detail.is_balance].icon,style:{color:1==t.detail.is_balance?t.primaryColor:""}}),t._v(t._s(t.payType[t.detail.is_balance].text))])],1),a("v-uni-view",{staticClass:"flex-between mt-md pt-md b-1px-t"},[a("v-uni-view"),a("v-uni-view",{staticClass:"flex-y-baseline c-title"},[t._v("总计:"),a("v-uni-view",{staticClass:"c-warning"},[t._v("¥"+t._s(t.detail.pay_price))])],1)],1)],1),a("v-uni-view",{staticClass:"mt-md ml-lg mr-lg pd-lg fill-base f-paragraph c-caption radius-16"},[a("v-uni-view",{staticClass:"flex-between pb-lg c-title"},[t._v("订单编号:"+t._s(t.detail.order_code))]),a("timeline",{attrs:{list:t.lineList,info:t.detail}})],1),a("v-uni-view",{staticClass:"space-max-footer"}),a("v-uni-view",{staticClass:"footer-info fix fill-base"},[a("v-uni-view",{staticClass:"flex-between pd-lg"},[a("v-uni-view"),a("v-uni-view",{staticClass:"flex-center f-desc c-title"},[-1!=t.detail.pay_type?a("v-uni-button",{staticClass:"clear-btn item-btn flex-center f-desc",staticStyle:{"margin-right":"20rpx","border-radius":"100rpx"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$util.goUrl({url:t.configInfo.mobile,openType:"call"})}}},[t._v("联系客服")]):t._e(),t.statusPayType.includes(t.detail.pay_type)||1*t.detail.can_refund>0?[1==t.detail.pay_type?[a("v-uni-view",{staticClass:"item-btn flex-center radius",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toCancel.apply(void 0,arguments)}}},[t._v("取消订单")]),a("v-uni-view",{staticClass:"item-btn flex-center ml-md c-base radius",style:{background:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toPay.apply(void 0,arguments)}}},[t._v("去支付")])]:t._e(),-1==t.detail.pay_type?[a("v-uni-view",{staticClass:"item-btn flex-center radius",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toCancel.apply(void 0,arguments)}}},[t._v("删除")])]:t._e(),1*t.detail.can_refund>0?a("v-uni-view",{staticClass:"item-btn flex-center radius",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.goDetail("refund")}}},[t._v("申请退款")]):t._e(),7==t.detail.pay_type?[t.detail.is_comment?t._e():a("v-uni-view",{staticClass:"item-btn flex-center radius",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.goDetail("evaluate")}}},[t._v("去评价")]),a("v-uni-view",{staticClass:"item-btn flex-center ml-md c-base radius",style:{background:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toAgain.apply(void 0,arguments)}}},[t._v("再来一单")])]:t._e()]:t._e()],2)],1),a("v-uni-view",{staticClass:"space-safe"})],1),a("common-popup",{ref:"cancel_item",attrs:{type:"CANCEL_ORDER",info:t.popupInfo},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmCancel.apply(void 0,arguments)}}}),a("common-popup",{ref:"del_item",attrs:{type:"DELETE_ORDER",info:t.popupInfo},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmDel.apply(void 0,arguments)}}}),a("uni-popup",{ref:"refuse_item",attrs:{type:"center",custom:!0}},[a("v-uni-view",{staticClass:"common-popup-content fill-base pd-lg radius-34"},[a("v-uni-view",{staticClass:"title"},[t._v("拒单原因")]),a("v-uni-scroll-view",{staticClass:"refund-text mt-lg",attrs:{"scroll-y":!0},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}}},[a("v-uni-view",[a("v-uni-text",{staticStyle:{"word-break":"break-all"},attrs:{decode:"emsp"}},[t._v(t._s(t.detail.coach_refund_text||"没有填写原因哦"))])],1)],1),a("v-uni-view",{staticClass:"button"},[a("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.$refs.refuse_item.close()}}},[t._v("知道了")])],1)],1)],1)],1):t._e()},n=[]},3255:function(t,e,i){"use strict";var a=i("5fe8"),n=i.n(a);n.a},"536c":function(t,e,i){var a=i("9e60");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("65ac95b2",a,!0,{sourceMap:!1,shadowMode:!1})},"5fe8":function(t,e,i){var a=i("a27f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("0d8b75a0",a,!0,{sourceMap:!1,shadowMode:!1})},6835:function(t,e,i){"use strict";i.r(e);var a=i("e7d8"),n=i("8e49");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("bcf1");var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"e114900a",null,!1,a["a"],void 0);e["default"]=o.exports},7650:function(t,e){t.exports="data:image/png;base64,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"},"8e49":function(t,e,i){"use strict";i.r(e);var a=i("ae55"),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},"9e60":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.record-item[data-v-e114900a]{padding:0 0 %?30?% %?30?%}.record-item .item-tag[data-v-e114900a]{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-e114900a]{line-height:%?34?%}.record-item .item-img[data-v-e114900a]{width:%?180?%;min-height:%?118?%}.record-item.b-1px-l[data-v-e114900a]::before{border-left:2px solid #ccc}.record-item[data-v-e114900a]:nth-child(5){padding-bottom:0}',""]),t.exports=e},a27f:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.common-popup-content .refund-text[data-v-52782ec2]{width:%?540?%;min-height:%?200?%;max-height:50vh}.address[data-v-52782ec2]{background:#fff;border-radius:%?30?%;margin:0 %?24?%}.address .name[data-v-52782ec2]{display:flex;align-items:center;color:#222;font-size:%?28?%}.address .name uni-image[data-v-52782ec2]{width:%?30?%;height:%?30?%}.address .name uni-text[data-v-52782ec2]{margin-left:%?21?%}.address .addressText[data-v-52782ec2]{font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#222;margin-top:%?25?%}.contentInfo .goods-title[data-v-52782ec2]{font-size:%?34?%;font-family:Alibaba PuHuiTi;font-weight:400;color:#333}.btnGroup[data-v-52782ec2]{margin-top:%?30?%;padding-top:%?30?%;border-top:1px solid #eaeaea;color:#333;font-size:%?28?%}',""]),t.exports=e},ae55:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("c7eb")),s=a(i("1da1")),r=i("26cb"),o={name:"timeline",props:{list:{type:Array,default:function(){return{}}},info:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),methods:{toPreviewImage:function(t){var e=1==t?this.info.arrive_img:this.info.end_img;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)})))()}}};e.default=o},b77c:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var n=a(i("c7eb")),s=a(i("1da1")),r=a(i("5530")),o=i("26cb"),c=a(i("6835")),l={components:{timeline:c.default},data:function(){return{options:{},statusPayType:[-1,1,7],statusType:{"-1":"已取消",1:"待支付",2:"待服务",3:"技师接单",4:"技师出发",5:"技师到达",6:"服务中",7:"已完成",8:"已评价"},carType:{0:"公交/地铁",1:"出租车"},payType:{0:{icon:"iconweixinzhifu1 c-success",text:"微信支付"},1:{icon:"iconqianbao",text:"账户余额"}},lineList:[{pay_type:3,title:"技师接单",time:"receiving_time",icon:"iconjishijiedan"},{pay_type:4,title:"技师出发",time:"serout_time",icon:"iconjishichufa"},{pay_type:5,title:"技师到达",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"}],detail:{pay_type:0},popupInfo:{},lockTap:!1}},computed:(0,o.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},over_time_text:function(){return(new Date).getTime()+1e3*this.detail.over_time}}),onLoad:function(t){this.options=t,this.initIndex(),console.log(this.configInfo,"=====")},methods:(0,r.default)((0,r.default)((0,r.default)({},(0,o.mapActions)(["getConfigInfo"])),(0,o.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,n.default)().mark((function i(){var a,s,r;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.id,i.next=11,e.$api.order.orderInfo({id:s});case 11:r=i.sent,e.$util.setNavigationBarColor({bg:e.primaryColor}),r.is_balance=1*r.balance>0?1:0,e.detail=r;case 15: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)},toCancel:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i,a,s,r,o,c;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t.detail,a=i.order_code,s=i.order_goods,r=i.pay_type,o=s[0].goods_cover,t.popupInfo={name:"系统单号:".concat(a),image:o},c=-1==r?"del_item":"cancel_item",t.$refs[c].open();case 5:case"end":return e.stop()}}),e)})))()},confirmCancel:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.detail.id,e.next=3,t.$api.order.cancelOrder({id:i});case 3:t.$util.showToast({title:"取消成功"}),t.detail.pay_type=-1,t.$refs.cancel_item.close(),t.$util.back();case 7:case"end":return e.stop()}}),e)})))()},confirmDel:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.detail.id,e.next=3,t.$api.order.delOrder({id:i});case 3:t.$util.showToast({title:"删除成功"}),t.$refs.del_item.close(),t.$util.back(),setTimeout((function(){t.$util.goUrl({url:1,openType:"navigateBack"})}),1e3);case 7:case"end":return e.stop()}}),e)})))()},toPay:function(t){var e=this;return(0,s.default)((0,n.default)().mark((function t(){var i,a,s;return(0,n.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.lockTap){t.next=2;break}return t.abrupt("return");case 2:return e.lockTap=!0,e.$util.showLoading(),i=e.detail.id,t.prev=5,t.next=8,e.$api.order.rePayOrder({id:i});case 8:if(a=t.sent,s=a.pay_list,e.$util.hideAll(),!s){t.next=24;break}return t.prev=12,t.next=15,e.$util.pay(s);case 15:e.initRefresh(),e.lockTap=!1,e.$util.back(),t.next=24;break;case 20:return t.prev=20,t.t0=t["catch"](12),e.lockTap=!1,t.abrupt("return");case 24:t.next=29;break;case 26:t.prev=26,t.t1=t["catch"](5),setTimeout((function(){e.lockTap=!1,e.$util.hideAll()}),2e3);case 29:case"end":return t.stop()}}),t,null,[[5,26],[12,20]])})))()},goDetail:function(t){var e=this.detail.id,i="/user/pages/order/".concat(t,"?id=").concat(e);this.$util.goUrl({url:i})},toAgain:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i,a,s;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.detail,a=i.id,s=i.coach_id,e.next=3,t.$api.order.onceMoreOrder({order_id:a});case 3:t.$util.goUrl({url:"/user/pages/order?id=".concat(s)});case 4:case"end":return e.stop()}}),e)})))()}})};e.default=l},bcf1:function(t,e,i){"use strict";var a=i("536c"),n=i.n(a);n.a},be79:function(t,e,i){"use strict";i.r(e);var a=i("0798"),n=i("e192");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("3255");var r=i("f0c5"),o=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"52782ec2",null,!1,a["a"],void 0);e["default"]=o.exports},e192:function(t,e,i){"use strict";i.r(e);var a=i("b77c"),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},e7d8: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"},[i("v-uni-text",{staticClass:"item-tag abs",class:[{cur:t.info.pay_type>e.pay_type-1}],style:{border:"2rpx solid "+t.primaryColor,background:t.info.pay_type>e.pay_type-1?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:t.info.pay_type>e.pay_type-1?t.primaryColor:""}},[t._v(t._s(t.info.pay_type>e.pay_type-1?"":"状态未开始"))])],1),t.info[e.time]?i("v-uni-view",{staticClass:"c-caption"},[t._v(t._s(t.info[e.time]))]):t._e()],1),2==a&&t.info.pay_type>4?[i("v-uni-image",{staticClass:"item-img mt-md radius-5",attrs:{mode:"widthFix",src:t.info.arrive_img},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toPreviewImage(1)}}}),t.info.arr_address?i("v-uni-view",{staticClass:"flex-y-center mt-sm 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(),4==a&&7==t.info.pay_type?[t.info.end_img?i("v-uni-image",{staticClass:"item-img mt-md radius-5",attrs:{mode:"widthFix",src:t.info.end_img},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toPreviewImage(2)}}}):t._e(),t.info.end_address?i("v-uni-view",{staticClass:"flex-y-center mt-sm 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()],2)})),1)],1)},n=[]}}]);