(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-order"],{"0dda":function(i,e,t){"use strict";t.r(e);var n=t("c626"),o=t("f969");for(var a in o)["default"].indexOf(a)<0&&function(i){t.d(e,i,(function(){return o[i]}))}(a);t("4039");var c=t("f0c5"),r=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"59765974",null,!1,n["a"],void 0);e["default"]=r.exports},3995:function(i,e,t){"use strict";t("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("a9e3");var n={props:{name:{type:String,default:uni.$u.props.icon.name},color:{type:String,default:uni.$u.props.icon.color},size:{type:[String,Number],default:uni.$u.props.icon.size},bold:{type:Boolean,default:uni.$u.props.icon.bold},index:{type:[String,Number],default:uni.$u.props.icon.index},hoverClass:{type:String,default:uni.$u.props.icon.hoverClass},customPrefix:{type:String,default:uni.$u.props.icon.customPrefix},label:{type:[String,Number],default:uni.$u.props.icon.label},labelPos:{type:String,default:uni.$u.props.icon.labelPos},labelSize:{type:[String,Number],default:uni.$u.props.icon.labelSize},labelColor:{type:String,default:uni.$u.props.icon.labelColor},space:{type:[String,Number],default:uni.$u.props.icon.space},imgMode:{type:String,default:uni.$u.props.icon.imgMode},width:{type:[String,Number],default:uni.$u.props.icon.width},height:{type:[String,Number],default:uni.$u.props.icon.height},top:{type:[String,Number],default:uni.$u.props.icon.top},stop:{type:Boolean,default:uni.$u.props.icon.stop}}};e.default=n},4039:function(i,e,t){"use strict";var n=t("61f3"),o=t.n(n);o.a},"58a1":function(i,e,t){"use strict";t("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-email-fill":"","uicon-minus-circle":"","uicon-minus-circle-fill":"","uicon-plus-circle":"","uicon-plus-circle-fill":"","uicon-file-text":"","uicon-file-text-fill":"","uicon-pushpin":"","uicon-pushpin-fill":"","uicon-grid":"","uicon-grid-fill":"","uicon-play-circle":"","uicon-play-circle-fill":"","uicon-pause-circle-fill":"","uicon-pause":"","uicon-pause-circle":"","uicon-eye-off":"","uicon-eye-off-outline":"","uicon-gift-fill":"","uicon-gift":"","uicon-rmb-circle-fill":"","uicon-rmb-circle":"","uicon-kefu-ermai":"","uicon-server-fill":"","uicon-coupon-fill":"","uicon-coupon":"","uicon-integral":"","uicon-integral-fill":"","uicon-home-fill":"","uicon-home":"","uicon-hourglass-half-fill":"","uicon-hourglass":"","uicon-account":"","uicon-plus-people-fill":"","uicon-minus-people-fill":"","uicon-account-fill":"","uicon-thumb-down-fill":"","uicon-thumb-down":"","uicon-thumb-up":"","uicon-thumb-up-fill":"","uicon-lock-fill":"","uicon-lock-open":"","uicon-lock-opened-fill":"","uicon-lock":"","uicon-red-packet-fill":"","uicon-photo-fill":"","uicon-photo":"","uicon-volume-off-fill":"","uicon-volume-off":"","uicon-volume-fill":"","uicon-volume":"","uicon-red-packet":"","uicon-download":"","uicon-arrow-up-fill":"","uicon-arrow-down-fill":"","uicon-play-left-fill":"","uicon-play-right-fill":"","uicon-rewind-left-fill":"","uicon-rewind-right-fill":"","uicon-arrow-downward":"","uicon-arrow-leftward":"","uicon-arrow-rightward":"","uicon-arrow-upward":"","uicon-arrow-down":"","uicon-arrow-right":"","uicon-arrow-left":"","uicon-arrow-up":"","uicon-skip-back-left":"","uicon-skip-forward-right":"","uicon-rewind-right":"","uicon-rewind-left":"","uicon-arrow-right-double":"","uicon-arrow-left-double":"","uicon-wifi-off":"","uicon-wifi":"","uicon-empty-data":"","uicon-empty-history":"","uicon-empty-list":"","uicon-empty-page":"","uicon-empty-order":"","uicon-man":"","uicon-woman":"","uicon-man-add":"","uicon-man-add-fill":"","uicon-man-delete":"","uicon-man-delete-fill":"","uicon-zh":"","uicon-en":""}},"61f3":function(i,e,t){var n=t("d13e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[i.i,n,""]]),n.locals&&(i.exports=n.locals);var o=t("4f06").default;o("31cec6fc",n,!0,{sourceMap:!1,shadowMode:!1})},"7fd5":function(i,e,t){var n=t("24fb");e=n(!1),e.push([i.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/* 文章场景相关 */.order-pages .list-item .item-img[data-v-223e32ec]{width:%?140?%;height:%?140?%;background:#f4f6f8}.order-pages .list-item .ellipsis[data-v-223e32ec]{max-width:%?466?%}.order-pages .list-item .item-tag[data-v-223e32ec]{width:%?100?%;height:%?36?%;margin-top:%?-18?%}.order-pages .list-item .iconyduixingxingshixin[data-v-223e32ec]{font-size:%?28?%}.order-pages .list-item .item-btn[data-v-223e32ec]{width:%?129?%;height:%?54?%}.order-pages .pay-info[data-v-223e32ec]{height:%?110?%;bottom:0;height:calc(%?110?% + env(safe-area-inset-bottom) / 2);padding-bottom:calc(env(safe-area-inset-bottom) / 2)}.order-pages .pay-info .pay-btn[data-v-223e32ec]{width:%?182?%;height:%?74?%}.order-pages .popup-rule[data-v-223e32ec]{width:%?680?%;height:auto}.order-pages .popup-rule .rule-text[data-v-223e32ec]{min-height:%?300?%;max-height:60vh}.order-pages .popup-rule .iconfont[data-v-223e32ec]{font-size:%?60?%}.subtitle[data-v-223e32ec]{font-size:%?32?%;color:#232a24;margin:%?20?% 0}.imageContent[data-v-223e32ec]{display:flex}.imageContent .img-item-mini[data-v-223e32ec]{margin:0 %?10?%;width:%?200?%;height:%?200?%}.tags[data-v-223e32ec]{background:rgba(23,193,97,.3);display:flex;justify-content:space-around;padding:%?20?% 0;border-radius:%?20?%}.tags .tagItem[data-v-223e32ec]{display:flex;align-items:center}.tags uni-text[data-v-223e32ec]{font-size:%?24?%;margin-left:%?10?%}',""]),i.exports=e},"8c01":function(i,e,t){var n=t("7fd5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[i.i,n,""]]),n.locals&&(i.exports=n.locals);var o=t("4f06").default;o("79ef2a88",n,!0,{sourceMap:!1,shadowMode:!1})},a727:function(i,e,t){"use strict";t.r(e);var n=t("dfc8"),o=t.n(n);for(var a in n)["default"].indexOf(a)<0&&function(i){t.d(e,i,(function(){return n[i]}))}(a);e["default"]=o.a},a9fb:function(i,e,t){"use strict";t.r(e);var n=t("eb49"),o=t("a727");for(var a in o)["default"].indexOf(a)<0&&function(i){t.d(e,i,(function(){return o[i]}))}(a);t("e08b");var c=t("f0c5"),r=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"223e32ec",null,!1,n["a"],void 0);e["default"]=r.exports},c626:function(i,e,t){"use strict";t.d(e,"b",(function(){return n})),t.d(e,"c",(function(){return o})),t.d(e,"a",(function(){}));var n=function(){var i=this,e=i.$createElement,t=i._self._c||e;return t("v-uni-view",{staticClass:"u-icon",class:["u-icon--"+i.labelPos],on:{click:function(e){arguments[0]=e=i.$handleEvent(e),i.clickHandler.apply(void 0,arguments)}}},[i.isImg?t("v-uni-image",{staticClass:"u-icon__img",style:[i.imgStyle,i.$u.addStyle(i.customStyle)],attrs:{src:i.name,mode:i.imgMode}}):t("v-uni-text",{staticClass:"u-icon__icon",class:i.uClasses,style:[i.iconStyle,i.$u.addStyle(i.customStyle)],attrs:{"hover-class":i.hoverClass}},[i._v(i._s(i.icon))]),""!==i.label?t("v-uni-text",{staticClass:"u-icon__label",style:{color:i.labelColor,fontSize:i.$u.addUnit(i.labelSize),marginLeft:"right"==i.labelPos?i.$u.addUnit(i.space):0,marginTop:"bottom"==i.labelPos?i.$u.addUnit(i.space):0,marginRight:"left"==i.labelPos?i.$u.addUnit(i.space):0,marginBottom:"top"==i.labelPos?i.$u.addUnit(i.space):0}},[i._v(i._s(i.label))]):i._e()],1)},o=[]},d13e:function(i,e,t){var n=t("24fb");e=n(!1),e.push([i.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/* 文章场景相关 */uni-view[data-v-59765974], uni-scroll-view[data-v-59765974], uni-swiper-item[data-v-59765974]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}@font-face{font-family:uicon-iconfont;src:url(https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf) format("truetype")}.u-icon[data-v-59765974]{display:flex;align-items:center}.u-icon--left[data-v-59765974]{flex-direction:row-reverse;align-items:center}.u-icon--right[data-v-59765974]{flex-direction:row;align-items:center}.u-icon--top[data-v-59765974]{flex-direction:column-reverse;justify-content:center}.u-icon--bottom[data-v-59765974]{flex-direction:column;justify-content:center}.u-icon__icon[data-v-59765974]{font-family:uicon-iconfont;position:relative;display:flex;flex-direction:row;align-items:center}.u-icon__icon--primary[data-v-59765974]{color:#3c9cff}.u-icon__icon--success[data-v-59765974]{color:#5ac725}.u-icon__icon--error[data-v-59765974]{color:#f56c6c}.u-icon__icon--warning[data-v-59765974]{color:#f9ae3d}.u-icon__icon--info[data-v-59765974]{color:#909399}.u-icon__img[data-v-59765974]{height:auto;will-change:transform}.u-icon__label[data-v-59765974]{line-height:1}',""]),i.exports=e},d9ca:function(i,e,t){"use strict";t("7a82");var n=t("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("14d9"),t("caad"),t("2532"),t("c975");var o=n(t("58a1")),a=n(t("3995")),c={name:"u-icon",data:function(){return{}},mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default],computed:{uClasses:function(){var i=[];return i.push(this.customPrefix+"-"+this.name),this.color&&uni.$u.config.type.includes(this.color)&&i.push("u-icon__icon--"+this.color),i},iconStyle:function(){var i={};return i={fontSize:uni.$u.addUnit(this.size),lineHeight:uni.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:uni.$u.addUnit(this.top)},this.color&&!uni.$u.config.type.includes(this.color)&&(i.color=this.color),i},isImg:function(){return-1!==this.name.indexOf("/")},imgStyle:function(){var i={};return i.width=this.width?uni.$u.addUnit(this.width):uni.$u.addUnit(this.size),i.height=this.height?uni.$u.addUnit(this.height):uni.$u.addUnit(this.size),i},icon:function(){return o.default["uicon-"+this.name]||this.name}},methods:{clickHandler:function(i){this.$emit("click",this.index),this.stop&&this.preventEvent(i)}}};e.default=c},dfc8:function(i,e,t){"use strict";t("7a82");var n=t("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("d3b7"),t("3ca3"),t("ddb0");var o=n(t("3835")),a=n(t("5530")),c=n(t("c7eb")),r=n(t("1da1")),l=t("26cb"),s=n(t("a7f9")),u={components:{parser:s.default},data:function(){return{carTypeList:[{id:1,title:"出租车"},{id:0,title:"公交/地铁"}],carTypeInd:0,payList:[{id:0,icon:"iconweixinzhifu1 c-success",title:"微信支付"},{id:1,icon:"iconqianbao",title:"账户余额",is_disabled:!1}],payInd:0,options:{},balance:0,send_info:{time_index:0,time:{}},orderInfo:{coupon_id:0,address_info:{id:0}},form:{text:""},lockTap:!1,isBus:0,isAgree:!1}},computed:(0,l.mapState)({primaryColor:function(i){return i.config.configInfo.primaryColor},subColor:function(i){return i.config.configInfo.subColor},configInfo:function(i){return i.config.configInfo},commonOptions:function(i){return i.user.commonOptions},userInfo:function(i){return i.user.userInfo},mineInfo:function(i){return i.user.mineInfo},carList:function(i){return i.order.carList}}),watch:{"send_info.time.time":function(i){console.log(i,"time");var e=this.send_info.time.time_str;console.log(e),this.getIsBusCall(e)}},onLoad:function(i){var e=this;return(0,r.default)((0,c.default)().mark((function t(){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.options=i,t.next=3,e.initIndex();case 3:e.getIsBusCall("");case 4:case"end":return t.stop()}}),t)})))()},methods:(0,a.default)((0,a.default)((0,a.default)({},(0,l.mapActions)(["getConfigInfo","getMineInfo","getCarList"])),(0,l.mapMutations)(["updateUserItem"])),{},{goGroup:function(i){this.$util.goUrl({url:"/user/pages/myGroup/myGroup?isGroup=false&company_id="+i.company_id})},initIndex:function(){var i=arguments,e=this;return(0,r.default)((0,c.default)().mark((function t(){var n,a,r,l,s,u,d,f,p,m,v,g,h,b,w;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=i.length>0&&void 0!==i[0]&&i[0],n||!e.$jweixin.isWechat()){t.next=5;break}return t.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:if(console.log(e.configInfo,"999"),e.configInfo.id&&!n){t.next=9;break}return t.next=9,e.getConfigInfo();case 9:if(a=e.options,r=a.id,l=a.ser_id,s=void 0===l?0:l,u=e.orderInfo,d=u.coupon_id,f=u.address_info,p=f.id,p){t.next=17;break}return t.next=15,e.$api.mine.getDefultAddress();case 15:m=t.sent,p=m&&m.id?m.id:null;case 17:return v=e.carTypeList[e.carTypeInd].id,t.next=20,Promise.all([e.$api.order.payOrderInfo({service_id:s,coach_id:r,car_type:v,coupon_id:d,address_id:p}),e.getMineInfo()]);case 20:g=t.sent,h=(0,o.default)(g,2),b=h[0],h[1],e.$util.setNavigationBarColor({bg:e.primaryColor}),b.address_info=b.address_info.id?b.address_info:{},e.orderInfo=b,w=e.mineInfo.balance,e.payList[1].is_disabled=1*w<1*e.orderInfo.pay_price,e.balance=w;case 30:case"end":return t.stop()}}),t)})))()},toPreviewImage:function(i){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=this.orderInfo.coach_info[e];"work_img"!=e&&"healthy_img"!=e||(t=[t]),this.$util.previewImage({current:t[i],urls:t})},initRefresh:function(){this.initIndex(!0)},linkpress:function(i){console.log("linkpress",i)},getIsBusCall:function(i){var e=this;return(0,r.default)((0,c.default)().mark((function t(){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.mine.getIsBus({start_time:i});case 2:if(e.isBus=t.sent,0!=e.isBus){t.next=7;break}return e.carTypeInd=0,t.next=7,e.initRefresh();case 7:case"end":return t.stop()}}),t)})))()},toChangeItem:function(i){var e=arguments,t=this;return(0,r.default)((0,c.default)().mark((function n(){var o,a;return(0,c.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:1,a=t.orderInfo.address_info,1!=o){n.next=14;break}if(1!=i||a.id){n.next=6;break}return t.$util.showToast({title:"请选择地址"}),n.abrupt("return");case 6:if(1!=i||t.send_info.time.time){n.next=9;break}return t.$util.showToast({title:"请选择时间"}),n.abrupt("return");case 9:return t.carTypeInd=i,n.next=12,t.initRefresh();case 12:n.next=17;break;case 14:if(1!=i||!t.payList[1].is_disabled){n.next=16;break}return n.abrupt("return");case 16:t.payInd=i;case 17:case"end":return n.stop()}}),n)})))()},changeNum:function(i,e){var t=this;return(0,r.default)((0,c.default)().mark((function n(){var o,a,r,l,s,u;return(0,c.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=t.orderInfo.order_goods[e],a=o.id,r=o.service_id,l=t.options.id,!t.lockTap){n.next=4;break}return n.abrupt("return");case 4:return t.lockTap=!0,s=i>0?"addCar":"delCar",u=i>0?{service_id:r,coach_id:l,num:1}:{id:a,num:1},n.prev=7,n.next=10,t.$api.order[s](u);case 10:return n.sent,n.next=13,t.getCarList({coach_id:l});case 13:return n.next=15,t.initRefresh();case 15:t.lockTap=!1,n.next=21;break;case 18:n.prev=18,n.t0=n["catch"](7),t.lockTap=!1;case 21:case"end":return n.stop()}}),n,null,[[7,18]])})))()},checkInput:function(i,e){var t=this,n=this.$util.formatMoney(i.detail.value);this.$nextTick((function(){t.form[e]=n}))},toPay:function(){var i=this;return(0,r.default)((0,c.default)().mark((function e(){var t,n,o,a,r,l,s,u,d,f,p,m,v,g,h,b,w,_,x,y,C;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.orderInfo,n=t.coupon_id,o=void 0===n?0:n,a=t.address_info,r=void 0===a?{}:a,l=r.id,l){e.next=5;break}return i.$util.showToast({title:"请选择地址"}),e.abrupt("return");case 5:if(s=i.carTypeList,u=i.carTypeInd,d=i.payList,f=i.payInd,p=i.send_info,p.time_index){e.next=9;break}return i.$util.showToast({title:"请选择时间"}),e.abrupt("return");case 9:if(m=i.configInfo.trading_rules,!(m&&m.length>0)||i.isAgree){e.next=13;break}return i.$util.showToast({title:"请先阅读并同意《平台交易规则》"}),e.abrupt("return");case 13:if(v=s[u].id,g=d[f].id,h=i.options.id,b=p.time.time_str,w=i.commonOptions.channel_id,_=void 0===w?0:w,x=i.$util.deepCopy(i.form),x=Object.assign({},x,{coach_id:h,coupon_id:o,address_id:l,car_type:v,is_balance:g,start_time:b,channel_id:_}),!i.lockTap){e.next=22;break}return e.abrupt("return");case 22:return i.lockTap=!0,i.$util.showLoading(),e.prev=24,e.next=27,i.$api.order.payOrder(x);case 27:if(y=e.sent,C=y.pay_list,i.$util.hideAll(),!C){e.next=46;break}return e.prev=31,e.next=34,i.$util.pay(C);case 34:return i.$util.showToast({title:"支付成功"}),setTimeout((function(){i.$util.goUrl({url:"/pages/order?tab=2",openType:"reLaunch"})}),1e3),i.lockTap=!1,e.abrupt("return");case 40:return e.prev=40,e.t0=e["catch"](31),i.$util.showToast({title:"支付失败"}),setTimeout((function(){i.$util.goUrl({url:"/pages/order?tab=1",openType:"reLaunch"})}),1e3),i.lockTap=!1,e.abrupt("return");case 46:i.$util.showToast({title:"支付成功"}),setTimeout((function(){i.$util.goUrl({url:"/pages/order?tab=2",openType:"reLaunch"})}),1e3),e.next=54;break;case 50:e.prev=50,e.t1=e["catch"](24),console.log(e.t1,"iiii"),setTimeout((function(){i.lockTap=!1,i.$util.hideAll()}),2e3);case 54:case"end":return e.stop()}}),e,null,[[24,50],[31,40]])})))()}})};e.default=u},e08b:function(i,e,t){"use strict";var n=t("8c01"),o=t.n(n);o.a},eb49:function(i,e,t){"use strict";t.d(e,"b",(function(){return o})),t.d(e,"c",(function(){return a})),t.d(e,"a",(function(){return n}));var n={uIcon:t("0dda").default},o=function(){var i=this,e=i.$createElement,t=i._self._c||e;return i.orderInfo.coach_id?t("v-uni-view",{staticClass:"order-pages"},[i.orderInfo.order_goods&&i.orderInfo.order_goods.length>0?t("v-uni-view",[t("v-uni-view",{staticClass:"address-info flex-warp mt-lg ml-lg mr-lg pd-lg fill-base radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=i.$handleEvent(e),i.$util.goUrl({url:"/user/pages/address/list?check=1"})}}},[t("v-uni-view",{staticClass:"address-icon flex-center c-base radius",style:{background:"linear-gradient(to right, "+i.subColor+", "+i.primaryColor+")"}},[t("i",{staticClass:"iconfont iconjuli"})]),t("v-uni-view",{staticClass:"flex-1 flex-between ml-md"},[t("v-uni-view",{staticClass:"max-500"},[i.orderInfo.address_info.id?[t("v-uni-view",{staticClass:"flex-y-baseline username c-title text-bold"},[i._v(i._s(i.orderInfo.address_info.user_name)),t("v-uni-view",{staticClass:"ml-md f-desc c-caption"},[i._v(i._s(i.orderInfo.address_info.mobile))])],1),t("v-uni-view",{staticClass:"f-desc c-title ellipsis"},[i._v(i._s(i.orderInfo.address_info.address+" "+i.orderInfo.address_info.address_info))])]:[t("v-uni-view",{staticClass:"username c-title text-bold"},[i._v("请选择地址")])]],2),t("i",{staticClass:"iconfont icon-right"})],1)],1),t("v-uni-view",{staticClass:"mt-md ml-lg mr-lg fill-base radius-16"},[t("v-uni-view",{staticClass:"flex-between pt-lg pb-lg pl-lg pr-md b-1px-b",on:{click:function(e){e.stopPropagation(),arguments[0]=e=i.$handleEvent(e),i.$util.goUrl({url:"/user/pages/choose-time?id="+i.options.id+"&index="+i.send_info.time_index})}}},[t("v-uni-view",{staticClass:"f-title c-title text-bold"},[i._v("服务时间")]),t("v-uni-view",{staticClass:"flex-y-center f-paragraph c-caption ml-sm"},[t("v-uni-view",{staticClass:"c-caption mr-sm"},[i._v(i._s(i.send_info.time.time||"请选择预约时间"))]),t("i",{staticClass:"iconfont icon-right"})],1)],1),t("v-uni-view",{staticClass:"flex-between pd-lg"},[t("v-uni-view",{staticClass:"f-title c-title text-bold"},[i._v("出行方式")]),t("v-uni-view",{staticClass:"flex-center"},i._l(i.carTypeList,(function(e,n){return t("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==e.id||1==i.isBus&&0==e.id,expression:"item.id == 1 || (isBus == 1 && item.id == 0)"}],key:n,staticClass:"flex-y-center",class:[{"mr-lg":0==n}],style:{color:i.carTypeInd==n?i.primaryColor:""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=i.$handleEvent(e),i.toChangeItem(n)}}},[t("i",{staticClass:"iconfont icon-xuanze mr-sm",class:[{"icon-xuanze-fill":i.carTypeInd==n}]}),i._v(i._s(e.title))])})),1)],1)],1),t("v-uni-view",{staticClass:"mt-md ml-lg mr-lg fill-base radius-16"},i._l(i.orderInfo.order_goods,(function(e,n){return t("v-uni-view",{key:n,staticClass:"list-item flex-center pd-lg",class:[{"b-1px-t":0!=n}]},[t("v-uni-image",{staticClass:"item-img radius-16",attrs:{mode:"aspectFill",src:e.cover}}),t("v-uni-view",{staticClass:"flex-1 ml-md"},[t("v-uni-view",{staticClass:"f-title c-title ellipsis"},[i._v(i._s(e.title))]),t("v-uni-view",{staticClass:"flex-y-center f-desc c-caption"},[t("v-uni-view",{staticClass:"f-title c-warning mr-sm"},[i._v("¥"+i._s(e.price))]),i._v("/ "+i._s(e.time_long)+"分钟")],1),t("v-uni-view",{staticClass:"flex-between"},[t("v-uni-view",{staticClass:"f-caption c-caption mt-sm mb-sm max-300"},[i._v("服务技师:"+i._s(i.orderInfo.coach_info.coach_name))]),t("v-uni-view",{staticClass:"flex-warp"},[t("v-uni-button",{staticClass:"reduce",style:{borderColor:i.primaryColor,color:i.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=i.$handleEvent(e),i.changeNum(-1,n)}}},[t("i",{staticClass:"iconfont icon-jian-bold"})]),t("v-uni-button",{staticClass:"addreduce clear-btn"},[i._v(i._s(e.num||0))]),t("v-uni-button",{staticClass:"add",style:{background:i.primaryColor,borderColor:i.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=i.$handleEvent(e),i.changeNum(1,n)}}},[t("i",{staticClass:"iconfont icon-jia-bold"})])],1)],1)],1)],1)})),1),t("v-uni-view",{staticClass:"mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[t("v-uni-view",{staticClass:"flex-between pb-lg"},[t("v-uni-view",{staticClass:"flex-y-baseline"},[t("v-uni-view",{staticClass:"f-title c-title text-bold"},[i._v("技师简介")])],1)],1),t("v-uni-view",{staticClass:"tags"},[t("v-uni-view",{staticClass:"tagItem"},[t("u-icon",{attrs:{name:"checkmark-circle",color:"#17C161",size:"20"}}),t("v-uni-text",[i._v("爽约包退")])],1),t("v-uni-view",{staticClass:"tagItem",on:{click:function(e){arguments[0]=e=i.$handleEvent(e),i.goGroup(i.orderInfo.coach_info)}}},[t("u-icon",{attrs:{name:"checkmark-circle",color:"#17C161",size:"20"}}),t("v-uni-text",[i._v("实名认证")])],1),t("v-uni-view",{staticClass:"tagItem"},[t("u-icon",{attrs:{name:"checkmark-circle",color:"#17C161",size:"20"}}),t("v-uni-text",[i._v("资质证书")])],1)],1),t("v-uni-view",{staticClass:"f-caption c-caption radius-16"},[t("v-uni-view",{staticClass:"subtitle"},[i._v("基本信息")]),t("v-uni-text",{staticClass:"c-paragraph",staticStyle:{"word-break":"break-all"},attrs:{decode:"emsp"}},[i._v(i._s(i.orderInfo.coach_info.coach_name)+":"+i._s(i.orderInfo.coach_info.text))]),t("v-uni-view",{staticClass:"subtitle"},[i._v("资质证书")]),t("v-uni-view",{staticClass:"imageContent"},i._l(i.orderInfo.coach_info.license,(function(e,n){return t("v-uni-image",{key:n,staticClass:"img-item-mini radius-16",attrs:{mode:"aspectFill",src:e},on:{click:function(e){e.stopPropagation(),arguments[0]=e=i.$handleEvent(e),i.toPreviewImage(n,"license")}}})})),1)],1)],1),t("v-uni-view",{staticClass:"mt-md ml-lg mr-lg fill-base radius-16"},[t("v-uni-view",{staticClass:"flex-between pt-lg pb-lg pl-lg pr-md",class:[{"b-1px-b":1===i.carTypeList[i.carTypeInd].id}],on:{click:function(e){e.stopPropagation(),arguments[0]=e=i.$handleEvent(e),i.$util.goUrl({url:"/user/pages/coupon/use"})}}},[t("v-uni-view",{staticClass:"f-title c-title text-bold"},[i._v("卡券优惠")]),t("v-uni-view",{staticClass:"flex-y-center f-paragraph c-caption ml-sm"},[t("v-uni-view",{staticClass:"c-warning mr-sm"},[i._v(i._s(i.orderInfo.discount?"-¥"+i.orderInfo.discount:i.orderInfo.canUseCoupon+"张可用"))]),t("i",{staticClass:"iconfont icon-right"})],1)],1),1===i.carTypeList[i.carTypeInd].id?[t("v-uni-view",{staticClass:"flex-between pd-lg"},[t("v-uni-view",{staticClass:"f-title c-title text-bold"},[i._v("往返车费")]),t("v-uni-view",{staticClass:"f-paragraph c-caption c-warning"},[i._v("¥"+i._s(i.orderInfo.car_price))])],1),t("v-uni-view",{staticClass:"pl-lg pr-lg pb-lg f-caption c-caption"},[i._v("全程共"+i._s(i.orderInfo.distance)+",出租出行"+i._s(i.orderInfo.car_config.start_distance)+"公里内,起步"+i._s(i.orderInfo.car_config.start_price)+"元。里程计价:"+i._s(i.orderInfo.car_config.distance_price)+"元/公里")])]:i._e()],2),t("v-uni-view",{staticClass:"mt-md ml-lg mr-lg pd-lg fill-base radius-16"},[t("v-uni-view",{staticClass:"flex-between pb-lg"},[t("v-uni-view",{staticClass:"flex-y-baseline"},[t("v-uni-view",{staticClass:"f-title c-title text-bold"},[i._v("订单备注")]),t("v-uni-view",{staticClass:"f-paragraph c-caption ml-sm"},[i._v("(选填)")])],1)],1),t("v-uni-view",{staticClass:"f-caption c-caption fill-body radius-16"},[t("v-uni-textarea",{staticClass:"item-textarea f-paragraph pd-lg",attrs:{"placeholder-class":"f-paragraph",maxlength:"100",placeholder:"输入订单备注"},model:{value:i.form.text,callback:function(e){i.$set(i.form,"text",e)},expression:"form.text"}}),t("v-uni-view",{staticClass:"text-right pb-lg pr-lg"},[i._v(i._s(i.form.text.length>100?100:i.form.text.length)+"/100")])],1)],1),t("v-uni-view",{staticClass:"mt-md ml-lg mr-lg fill-base radius-16"},i._l(i.payList,(function(e,n){return t("v-uni-view",{key:n,staticClass:"flex-between pt-lg pb-lg pl-lg pr-md b-1px-b",on:{click:function(e){e.stopPropagation(),arguments[0]=e=i.$handleEvent(e),i.toChangeItem(n,2)}}},[t("v-uni-view",{staticClass:"flex-y-center f-title c-title"},[t("i",{staticClass:"iconfont mr-md",class:e.icon,style:{color:1==e.id?i.primaryColor:"",fontSize:"50rpx"}}),i._v(i._s(e.title)),1==e.id?t("v-uni-view",{staticClass:"f-paragraph c-caption ml-md"},[i._v("余额"+i._s(i.balance||0)+"元")]):i._e()],1),t("v-uni-view",{staticClass:"flex-y-center",style:{color:i.payInd==n?i.primaryColor:""}},[t("i",{staticClass:"iconfont icon-xuanze mr-sm",class:[{"icon-xuanze-fill":i.payInd==n}]})])],1)})),1),i.configInfo.trading_rules&&i.configInfo.trading_rules.length>0?t("v-uni-view",{staticClass:"mt-md ml-lg mr-lg pd-lg fill-base f-paragraph c-title flex-y-center radius-16",on:{click:function(e){e.stopPropagation(),arguments[0]=e=i.$handleEvent(e),i.isAgree=!i.isAgree}}},[t("i",{staticClass:"iconfont mr-sm",class:i.isAgree?"icon-xuanze-fill":"icon-xuanze",style:{color:i.isAgree?i.primaryColor:""}}),i._v("我已阅读并同意"),t("v-uni-view",{style:{color:i.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=i.$handleEvent(e),i.$refs.show_rule_item.open()}}},[i._v("《平台交易规则》")])],1):i._e(),t("v-uni-view",{staticClass:"space-max-footer"}),t("v-uni-view",{staticClass:"pay-info fix flex-between text-right pl-lg pr-lg fill-base"},[t("v-uni-view",{staticClass:"flex-y-center f-paragraph c-title text-bold ml-sm mr-lg"},[i._v("合计:"),t("v-uni-view",{staticClass:"flex-y-baseline f-title c-warning"},[i._v("¥"+i._s(i.orderInfo.pay_price))])],1),t("auth",{staticStyle:{width:"182rpx"},attrs:{needAuth:i.userInfo&&(!i.userInfo.phone||!i.userInfo.nickName),must:!0,type:i.userInfo.phone?"userInfo":"phone"},on:{go:function(e){arguments[0]=e=i.$handleEvent(e),i.toPay.apply(void 0,arguments)}}},[t("v-uni-view",{staticClass:"pay-btn flex-center f-paragraph c-base radius",style:{background:i.primaryColor}},[i._v("立即支付")])],1)],1)],1):t("abnor",{attrs:{tip:[{text:"该服务已下架~",color:0}],button:[{text:"去看看其他服务",type:"confirm"}],btnSize:""},on:{confirm:function(e){arguments[0]=e=i.$handleEvent(e),i.$util.goUrl({url:"/pages/service",openType:"reLaunch"})}}}),t("uni-popup",{ref:"show_rule_item",attrs:{type:"center",maskClick:!1}},[t("v-uni-view",{staticClass:"popup-rule"},[t("v-uni-view",{staticClass:"fill-base pd-lg radius-26"},[t("v-uni-view",{staticClass:"f-title c-title text-bold flex-center pd-lg"},[i._v("平台交易规则")]),t("v-uni-scroll-view",{staticClass:"rule-text",attrs:{"scroll-y":!0},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=i.$handleEvent(e)}}},[t("parser",{attrs:{html:i.configInfo.trading_rules,"show-with-animation":!0,"lazy-load":!0},on:{linkpress:function(e){arguments[0]=e=i.$handleEvent(e),i.linkpress.apply(void 0,arguments)}}},[i._v("加载中...")])],1)],1),t("v-uni-view",{staticClass:"flex-center pd-lg",on:{click:function(e){arguments[0]=e=i.$handleEvent(e),i.$refs.show_rule_item.close()}}},[t("i",{staticClass:"iconfont icon-close c-base"})])],1)],1)],1):i._e()},a=[]},f969:function(i,e,t){"use strict";t.r(e);var n=t("d9ca"),o=t.n(n);for(var a in n)["default"].indexOf(a)<0&&function(i){t.d(e,i,(function(){return n[i]}))}(a);e["default"]=o.a}}]);