1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["tour-page-order-orderDetail"],{"07be":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("2634")),r=n(i("2fdc"));i("bf0f"),i("08eb"),i("18f7"),i("d4b5"),i("64aa");var s=i("a9e5"),o=n(i("dc1f")),c=i("14cf"),l=i("1380"),u=n(i("8c27")),d=i("e0a2"),f=n(i("34cae")),p=n(i("9d90")),g=i("9d0a"),v=i("d07d"),m=(new v({key:"OSLBZ-RCU63-UMF3X-3HTKY-LE7UF-SJBT5"}),{mixins:[o.default],data:function(){return{newStartDate:"",timeList:[],timeType:"",timeMin:1,timeMax:1e3,timeIndex:0,timeNumber:"",time:"",icon:[d.staticUrl+"api/images/20250915/images_175791635341326.png",d.staticUrl+"api/images/20250915/images_175791635727586.png",d.staticUrl+"api/images/20250915/images_175791636232580.png",d.staticUrl+"api/images/20250915/images_175791636578327.png",d.staticUrl+"api/images/20250506/images_1746517832.png",d.staticUrl+"api/images/20250815/images_175522804782468.png"],params:"",infoList:[],roomList:[],latitude:"",longitude:"",id:"",copy:c.copy,filterStr:c.filterStr,callPhone:c.callPhone,showSelectPayWayModal:!1,renewDetail:"",currency:"",price:"",showPopup:!1,payType:[],payTypeList:[],loadings:!1,loadingShow:!1,newId:"",isTngBack:""}},onLoad:function(t){this.id=t.id;var e=(null===t||void 0===t?void 0:t.type)||"",i=(null===t||void 0===t?void 0:t.order_no)||"";this.getOrderDetail();var n=uni.getStorageSync("AlipayPayOrTng")?uni.getStorageSync("AlipayPayOrTng"):"";uni.setStorageSync("AlipayPayOrTng",""),"add"==e&&""==n&&this.align_create_order(i)},onShow:function(){"TngBack"===this.isTngBack&&(this.isTngBack="",uni.redirectTo({url:"/tour-page/order/orderDetail?id="+this.newId}))},components:{headerBar:p.default,PaySelectModal:f.default,loading:u.default},methods:{success:function(t){this.isTngBack=t,this.$refs.paymentPopup.close(),"TngBack"!==this.isTngBack&&uni.redirectTo({url:"/tour-page/order/orderDetail?id="+this.newId})},submitAndPay:function(t){var e=this;if(this.loadings)return!1;this.loadings=!0,this.loadingShow=!0,(0,l.renewSubmitAndPayApi)({pay_id:t,scene_id:this.getEnvironmentCode(),order_sn:this.params.order_no,time_val:this.timeIndex+this.timeMin,show_day:this.time}).then((function(t){var i;e.newId=null!==(i=null===t||void 0===t?void 0:t.order_id)&&void 0!==i?i:"",e.$refs.paymentPopup.payAction(t)})).catch((function(t){console.error("[order-detail]订单详情获取失败",t),(0,g.showToast)({title:t.msg}),navBack()})).finally((function(){e.loadingShow=!1,e.loadings=!1}))},getPayType:function(t){var e=this;(0,s.getPayType)({order_type:"tour",scene_id:this.getEnvironmentCode()}).then((function(t){e.payTypeList=t||[]})).catch((function(t){e.payTypeList=[],"请重新登录"==t.msg||uni.showModal({title:"提示",content:t.msg||"支付类型获取失败",callback:function(){navBack()}})}))},appendSubmitPay:function(){this.payType=this.payTypeList,this.$refs.paymentPopup.open()},bindTimeChange:function(t){this.timeIndex=t.detail.value,this.time=this.timeList[this.timeIndex].title,this.timeNumber=this.timeList[this.timeIndex].value,this.getRenewDetail()},close:function(){this.$refs.popup.close()},align_create_order:function(t){this.getRenewDetail("first",t),this.getPayType()},getRenewDetail:function(t,e){var i=this;return(0,r.default)((0,a.default)().mark((function n(){var r,s,o,c,u,d,f,p,g,v,m,h;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,l.renewDetailApi)({order_sn:e||i.params.order_no,time_val:i.timeIndex+i.timeMin});case 2:d=n.sent,i.renewDetail=d,i.price=null!==(r=null===d||void 0===d||null===(s=d.total_price)||void 0===s?void 0:s.value)&&void 0!==r?r:"",i.currency=null!==(o=null===d||void 0===d||null===(c=d.total_price)||void 0===c?void 0:c.unit)&&void 0!==o?o:"",i.newStartDate=null!==(u=null===d||void 0===d?void 0:d.start_date)&&void 0!==u?u:"","first"===t&&(i.timeType=null!==(f=null===d||void 0===d||null===(p=d.time_type)||void 0===p?void 0:p.type)&&void 0!==f?f:"day",i.timeMax=null!==(g=null===d||void 0===d||null===(v=d.time_type)||void 0===v?void 0:v.max)&&void 0!==g?g:1e3,i.timeMin=null!==(m=null===d||void 0===d||null===(h=d.time_type)||void 0===h?void 0:h.min)&&void 0!==m?m:1,"month"==i.timeType&&(i.timeList=Array.from({length:i.timeMax-i.timeMin+1},(function(t,e){return{title:"".concat(i.timeMin+e,"个月"),value:i.timeMin+e}}))),"week"==i.timeType&&(i.timeList=Array.from({length:i.timeMax-i.timeMin+1},(function(t,e){return{title:"".concat(i.timeMin+e,"周"),value:i.timeMin+e}}))),"quarter"==i.timeType&&(i.timeList=Array.from({length:i.timeMax-i.timeMin+1},(function(t,e){return{title:"".concat(i.timeMin+e,"季"),value:i.timeMin+e}}))),"year"==i.timeType&&(i.timeList=Array.from({length:i.timeMax-i.timeMin+1},(function(t,e){return{title:"".concat(i.timeMin+e,"年"),value:i.timeMin+e}}))),"day"!==i.timeType&&(i.time=i.timeList[i.timeIndex].title,i.timeNumber=i.timeList[i.timeIndex].value),i.showPopup=!0,i.$nextTick((function(){var t;null===(t=i.$refs.popup)||void 0===t||t.open()})));case 8:case"end":return n.stop()}}),n)})))()},toPayOrder:function(){this.showSelectPayWayModal=!0,console.log(this.showSelectPayWayModal)},successPayEvent:function(){this.getOrderDetail()},failPayEvent:function(){this.getOrderDetail()},cancelPayEvent:function(){this.getOrderDetail()},goJourney:function(){var t=JSON.stringify(this.params);uni.navigateTo({url:"/tour-page/upload/travel?params=".concat(t)})},toRefund:function(){return(0,g.showModal)({title:"提示",content:"联系商家进行退款。",callback:function(){navBack()}})},getOrderDetail:function(){var t=this;(0,l.HotelUserHomeOrderDetail)({id:this.id}).then((function(e){console.log(e,"sds"),t.params=e.data,t.infoList=e.data.check_in_person,t.roomList=e.data.entering_room,t.status=e.data.status})).catch((function(t){console.log(t.msg)}))},getLocation:function(){var t={longitude:this.params.longitude,address:this.params.address,name:this.params.house_name},e=this;uni.openLocation({latitude:Number(t.longitude[0]),longitude:Number(t.longitude[1]),name:t.store_name,scale:15,address:t.address,success:function(t){console.log(t)},fail:function(){uni.showModal({title:"友情提醒您!",content:"请授权定位服务",success:function(t){t.confirm?e.openSetting():t.cancel}})}})},openSetting:function(){uni.openSetting({success:function(t){}})}}});e.default=m},"0c54":function(t,e,i){"use strict";i.r(e);var n=i("1904"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},1380:function(t,e,i){"use strict";i("6a54"),i("bf0f"),i("2797"),i("dc8a"),Object.defineProperty(e,"__esModule",{value:!0});var n=i("287a");Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}))},"14cf":function(t,e,i){"use strict";i("6a54"),i("bf0f"),i("2797"),i("dc8a"),Object.defineProperty(e,"__esModule",{value:!0});var n=i("9468");Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}))},1904:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa"),i("d4b5");var n=i("e0a2"),a={props:{payTypeList:{type:Array,default:[]},url:{type:String,default:""},money:{type:[Number,String],default:"-"},currency:{type:String,default:""},currencyRight:{type:Boolean,default:!1}},data:function(){return{selectedPayment:"",selectedIndex:0,statics:{airportPickup:{BJ:n.staticUrl+"api/images/20250506/images_1746500677.png",JC:n.staticUrl+"api/images/20250506/images_1746511575.png",XC:n.staticUrl+"api/images/20250506/images_1746511750.png",RS:n.staticUrl+"api/images/20250506/images_1746511903.png",SC:n.staticUrl+"api/images/20250506/images_1746511946.png",QFJC:n.staticUrl+"api/images/20250506/images_1746512011.png",YCSJ:n.staticUrl+"api/images/20250506/images_1746512069.png",ZH:n.staticUrl+"api/images/20250506/images_1746514168.png",REN:n.staticUrl+"api/images/20250506/images_1746532228.png",XINGLI:n.staticUrl+"api/images/20250506/images_1746532319.png",choose:n.staticUrl+"api/images/20250515/images_1747289637.png",unChoose:n.staticUrl+"api/images/20250515/images_1747289603.png",QIDIAN:n.staticUrl+"api/images/20250508/images_1746688051.png",ZHONGDIAN:n.staticUrl+"api/images/20250508/images_1746688119.png"},right:n.staticUrl+"api/images/20250506/images_1746512926.png",close:n.staticUrl+"api/images/20250506/images_1746517832.png",back:n.staticUrl+"api/images/20250506/images_1746518147.png",longArrows:n.staticUrl+"api/images/20250506/images_1746521912.png",SPListBG:n.staticUrl+"api/images/20250512/images_1747047121.png",SPList:n.staticUrl+"api/images/20250512/images_1747047340.png"}}},methods:{goUrl:function(t){window.location.href=t},TngPay:function(t,e){console.log("===========AlipayPay",t,t.url),uni.setStorageSync("AlipayPayOrTng","AlipayPayOrTng"),this.goUrl(t.url)},selectPayment:function(t){this.selectedPayment=t},open:function(){this.$refs.popup.open()},close:function(){this.$refs.popup.close(),this.$emit("close")},submitAndPay:function(){if(!this.selectedPayment)return uni.showToast({title:"请选择支付方式",icon:"none"}),!1;this.$emit("submitAndPay",this.selectedPayment)},payAction:function(t){if("1"==this.selectedPayment)this.wxPay(t);else if("2"==this.selectedPayment)this.AlipayPay(t,t.order_sn);else if("10"==this.selectedPayment)this.TngPay(t.pay_params,t.order_sn);else if("3"==this.selectedPayment){var e=this;uni.showModal({title:"提示",content:"支付成功",showCancel:!1,success:function(i){e.$emit("success",t.order_sn)}})}},wxPay:function(t){uni.setStorageSync("AlipayPayOrTng","AlipayPayOrTng"),console.log("payment.url",JSON.stringify(t)),this.goUrl(t.pay_params.url)},AlipayPay:function(t,e){if(t.real_pay_id&&5==t.real_pay_id){uni.setStorageSync("AlipayPayOrTng","AlipayPayOrTng"),this.goUrl(t.pay_params.url)}else{uni.setStorageSync("AlipayPayOrTng","AlipayPayOrTng");var i=document.createElement("div");i.innerHTML=t.pay_params.html,document.body.appendChild(i),document.forms[0].submit(),i.remove()}}}};e.default=a},"1f3f":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.getNowFormatDate=e.default=void 0,i("c223"),i("e838");var n=function(t,e){var i="",n="";i=t?new Date(t):new Date,n=e?new Date(e):new Date(+new Date+864e5);var a=0==i.getDay()?"天":i.getDay(),r=i.getFullYear(),s=i.getDate(),o=i.getMonth()+1,c=0==n.getDay()?"天":n.getDay(),l=n.getFullYear(),u=n.getDate(),d=n.getMonth()+1,f={};f.startDate="".concat(r,"-").concat(o>9?o:"0"+o,"-").concat(s>9?s:"0"+s),f.endDate="".concat(l,"-").concat(d>9?d:"0"+d,"-").concat(u>9?u:"0"+u),f.startWeek="星期".concat(a),f.endWeek="星期".concat(c),f.startMonth=o,f.endMonth=d,f.startDay=s,f.endDay=u;var p=+new Date(n)-+new Date(i);return f.day=parseFloat(p/24/3600/1e3).toFixed(0),uni.setStorageSync("dateRecord",f),f};e.getNowFormatDate=n;var a={getNowFormatDate:n};e.default=a},2258:function(t,e,i){"use strict";i.r(e);var n=i("77eb"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"27c2":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={loading:i("8c27").default,uniPopup:i("029e").default,comPay:i("89e5").default,comFixBtn:i("e23b").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":"订单详情"}},[t.loadingShow?i("loading"):t._e(),i("v-uni-view",{staticStyle:{"min-height":"100vh",padding:"0 28upx 200upx 28upx",background:"linear-gradient(0deg, #EFEFF4 75%, #FFCA28 100%)"}},[i("v-uni-view",{staticClass:"ftw500 pt10 mb20",staticStyle:{"font-size":"38rpx","font-weight":"bold"}},[t._v(t._s(t.params.status_text))]),i("v-uni-view",{staticClass:"item_wrapper flex space alcenter"},[i("v-uni-view",{staticClass:"flex column center alcenter",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.WeChatTo("kefu")}}},[i("v-uni-image",{staticStyle:{width:"38rpx",height:"38rpx","margin-bottom":"16rpx"},attrs:{src:t.icon[3],mode:""}}),i("v-uni-text",[t._v("在线客服")])],1),i("v-uni-view",{staticClass:"flex column center alcenter",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.callPhone(t.params.store_tel)}}},[i("v-uni-image",{staticStyle:{width:"38rpx",height:"38rpx","margin-bottom":"16rpx"},attrs:{src:t.icon[2],mode:""}}),i("v-uni-text",[t._v("电话联系")])],1),i("v-uni-view",{staticClass:"flex column center alcenter",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLocation.apply(void 0,arguments)}}},[i("v-uni-image",{staticStyle:{width:"38rpx",height:"38rpx","margin-bottom":"16rpx"},attrs:{src:t.icon[1],mode:""}}),i("v-uni-text",[t._v("一键导航")])],1),i("v-uni-view",{staticClass:"flex column center alcenter",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.align_create_order()}}},[i("v-uni-image",{staticStyle:{width:"38rpx",height:"38rpx","margin-bottom":"16rpx"},attrs:{src:t.icon[0],mode:""}}),i("v-uni-text",[t._v(t._s(t.params.is_allow_renew?"续租":"再次预定"))])],1)],1),t.params?i("v-uni-view",{staticClass:"item_wrapper"},[i("v-uni-view",{staticClass:"title_wrapper",staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[i("v-uni-view",{staticStyle:{display:"flex","align-items":"center"}},[i("v-uni-view",{staticClass:"tit",staticStyle:{color:"#151515","font-weight":"bold","font-size":"36rpx"}},[t._v(t._s(t.params.store_name||""))])],1),i("v-uni-view")],1),i("v-uni-view",{staticClass:"flex space alcenter",staticStyle:{"border-bottom":"1px solid #f2f2f2",padding:"20upx 0"}},[i("v-uni-view",{staticClass:"item_ct",staticStyle:{flex:"1",display:"flex","align-items":"center","margin-top":"16rpx"}},[i("v-uni-image",{staticClass:"right_img",attrs:{src:t.params.cover_url,mode:""}}),i("v-uni-view",{staticClass:"ct_right"},[i("v-uni-view",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.params.house_name||""))]),i("v-uni-view",{staticStyle:{"font-size":"24upx","margin-top":"6upx",color:"#a8a8a8"}},[t._v(t._s(t.params.start_date||"")+" 至\n\t\t\t\t\t\t"+t._s(t.params.end_date||""))]),i("v-uni-view",{staticStyle:{"font-size":"24upx","margin-top":"6upx",color:"#a8a8a8"}},[t._v("共"+t._s(t.params.show_day?t.params.show_day:t.params.nights_num?t.params.nights_num+"晚":""))])],1)],1),i("v-uni-view",{staticClass:"order-price",staticStyle:{"margin-top":"0"}},[i("span",{staticClass:"price-icon"},[t._v(t._s(t.CurrencyUnit))]),t._v(t._s(t.params.pay_price||""))])],1),2==t.params.status&&t.params.open_door_pwd?i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center","margin-top":"20upx"}},[i("v-uni-view",{staticStyle:{display:"flex","align-items":"center"}},[i("v-uni-text",{staticStyle:{"font-size":"30upx","font-weight":"600",color:"#333"}},[t._v("开门密码")])],1),i("v-uni-view",{staticStyle:{"font-size":"30upx","font-weight":"600",color:"#333"}},[t._v(t._s(t.params.open_door_pwd||""))])],1):t._e(),t._l(t.infoList,(function(e,n){return t.infoList.length>0?i("v-uni-view",{key:n,staticStyle:{"margin-top":"20upx"}},[i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"title"},[t._v("入住人")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(e.name||""))])],1),i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"title"},[t._v("押金")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.CurrencyUnit)+t._s(t.params.deposit_price?t.params.deposit_price:0))])],1),i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"title"},[t._v("房费")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.CurrencyUnit)+t._s(t.params.price?t.params.price:0))])],1),t.roomList&&0!=t.roomList.length?t._e():i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"title"},[t._v(t._s(1==t.params.is_villa?"门牌号":"房间号"))]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.params.room_name||""))])],1),i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"title"},[t._v("联系电话")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.filterStr(e.phones,6,5)||""))])],1),i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"title"},[t._v("证件号码")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.filterStr(e.IDnum,3,13)||""))])],1),i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"title",staticStyle:{width:"20%"}},[t._v("备注")]),i("v-uni-view",{staticClass:"mark value",staticStyle:{width:"80%","text-align":"end"}},[t._v(t._s("undefined"!==t.params.remark&&""!=t.params.remark&&t.params.remark?t.params.remark:""))])],1)],1):t._e()})),t._l(t.roomList,(function(e,n){return t.roomList.length>0?i("v-uni-view",{key:n,staticStyle:{"margin-bottom":"40upx"}},[i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"title"},[t._v("入住时间")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(e.date||""))])],1),i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"title"},[t._v("房间号")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(e.room_name||""))])],1),i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"title"},[t._v("租住时间")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s((e.room_price.show_day?e.room_price.show_day:e.day)||0))])],1)],1):t._e()})),i("v-uni-view",{staticStyle:{padding:"10upx 0",display:"flex","align-items":"center","justify-content":"space-between"}},[i("v-uni-view",{staticClass:"title"},[t._v("订单号")]),i("v-uni-view",{staticClass:"value",staticStyle:{display:"flex","align-items":"center"}},[i("v-uni-view",{staticStyle:{"margin-left":"20upx"}},[t._v(t._s(t.params.order_no||""))]),i("v-uni-view",{staticClass:"copy-btn theme-mine-copy-btn ml5",style:[t.themeBtnStyle],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.copy(t.params.order_no)}}},[t._v("复制")])],1)],1)],2):t._e(),i("uni-popup",{directives:[{name:"show",rawName:"v-show",value:t.showPopup,expression:"showPopup"}],ref:"popup",attrs:{safeArea:!1,type:"bottom"}},[i("v-uni-view",{staticClass:"pd15",staticStyle:{position:"relative","background-color":"white","border-radius":"40rpx 40rpx 0 0","max-height":"50vh"}},[i("img",{staticStyle:{width:"40rpx",height:"40rpx",position:"absolute",right:"30rpx"},attrs:{src:t.icon[4],alt:""},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close()}}}),t.renewDetail.room_info?i("v-uni-view",{staticClass:"flex"},[i("v-uni-view",{staticClass:"order-details"},[i("v-uni-text",{staticClass:"order-title"},[t._v(t._s(t.renewDetail.room_info.name||"-"))]),t.renewDetail.total_price?i("v-uni-view",{staticClass:"order-price"},[i("span",{staticClass:"price-icon"},[t._v(t._s(t.currency+" "))]),t._v(t._s(t.price||"0"))]):t._e()],1)],1):t._e(),i("v-uni-view",{staticClass:"com-line"}),i("v-uni-view",{staticClass:"payment-section"},["day"!==t.timeType?i("v-uni-view",{},[i("v-uni-view",{staticClass:"mb10"},[i("v-uni-view",{staticClass:"flex space alcenter"},[i("v-uni-view",{staticClass:"ft15 ftw500",staticStyle:{"font-size":"30upx","font-weight":"700"}},[t._v("入住时间")]),i("v-uni-view",{staticClass:"flex end alcenter"},[i("v-uni-view",{staticClass:"form-label"},[t._v(t._s(t.newStartDate))])],1)],1)],1),i("v-uni-view",{staticClass:"com-line",staticStyle:{"background-color":"#fff"}}),i("v-uni-view",{staticClass:"mb20"},[i("v-uni-picker",{attrs:{"range-key":"title",value:t.timeIndex,range:t.timeList},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindTimeChange.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"flex space alcenter"},[i("v-uni-view",{staticClass:"ft15 ftw500",staticStyle:{"font-size":"30upx","font-weight":"700"}},[t._v("选择租住时间")]),t.time?i("v-uni-view",{staticClass:"flex alcenter"},[i("v-uni-view",{staticClass:"form-label"},[t._v(t._s(t.time))]),i("v-uni-image",{staticStyle:{width:"14rpx",height:"26rpx","margin-left":"10rpx","margin-top":"4rpx"},attrs:{src:t.icon[5],mode:""}})],1):i("v-uni-view",{staticClass:"flex alcenter"},[i("v-uni-view",{staticStyle:{color:"#666","font-size":"28rpx"}},[t._v("最低租住"+t._s(t.timeMin+("week"==t.timeType?"周":"month"==t.timeType?"个月":"quarter"==t.timeType?"季":"年")))]),i("v-uni-image",{staticStyle:{width:"14rpx",height:"26rpx","margin-left":"10rpx","margin-top":"4rpx"},attrs:{src:t.icon[5],mode:""}})],1)],1)],1)],1)],1):t._e()],1),i("v-uni-button",{staticClass:"order-btn mb15",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.appendSubmitPay.apply(void 0,arguments)}}},[t._v("立即支付")])],1)],1),i("com-pay",{ref:"paymentPopup",attrs:{payTypeList:t.payType,money:t.price||0,currency:t.currency},on:{submitAndPay:function(e){arguments[0]=e=t.$handleEvent(e),t.submitAndPay.apply(void 0,arguments)},success:function(e){arguments[0]=e=t.$handleEvent(e),t.success.apply(void 0,arguments)}}}),0==t.params.is_pay?i("com-fix-btn",{attrs:{title:"去支付"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.toPayOrder()}}}):t._e(),1==t.params.is_pay?i("com-fix-btn",{attrs:{title:"申请退款"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.toRefund()}}}):t._e(),i("pay-select-modal",{attrs:{"order-id":t.id,"order-type":"tour"},on:{success:function(e){arguments[0]=e=t.$handleEvent(e),t.successPayEvent.apply(void 0,arguments)},fail:function(e){arguments[0]=e=t.$handleEvent(e),t.failPayEvent.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelPayEvent.apply(void 0,arguments)}},model:{value:t.showSelectPayWayModal,callback:function(e){t.showSelectPayWayModal=e},expression:"showSelectPayWayModal"}})],1)],1)},r=[]},"27ca":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");var n=uni.getSystemInfoSync(),a={},r={data:function(){return{menuButtonInfo:a,statusBarHeight:n.statusBarHeight}},props:{background:{type:[String],default:"#fff"},color:{type:[String],default:"#333"},title:{type:[String],default:""},backType:{type:[Number],default:0},isFixed:{type:[Boolean],default:!0},showTitle:{type:[Boolean],default:!0},type:{type:[Number,String],default:0}},created:function(){},methods:{back:function(){0==this.backType?uni.navigateBack({delta:1}):uni.navigateBack({delta:this.backType+1})}},computed:{navbarHeight:function(){return this.height?this.height:44}}};e.default=r},"287a":function(t,e,i){"use strict";i("6a54"),i("bf0f"),i("2797"),i("dc8a"),Object.defineProperty(e,"__esModule",{value:!0});var n=i("7830");Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}))},"38a0":function(t,e,i){var n=i("c408");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("6bc1c2b5",n,!0,{sourceMap:!1,shadowMode:!1})},4460:function(t,e,i){"use strict";var n=i("c2a6"),a=i.n(n);a.a},4490:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.toast=e.openWin=e.isLogin=e.filterStr=e.default=e.dateSubstring=e.copy=e.callPhone=void 0,i("5c47"),i("a1c1"),i("dd2b");i("e0a2");var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:+new Date,e=arguments.length>1?arguments[1]:void 0;if(!t)return"";"string"==typeof t&&(t=t.replace(/-/g,"/"));var i=new Date(t),n=i.getDate()>9?i.getDate():"0"+i.getDate();if(e&&"mm-dd"===e){var a=i.getMonth()+1>9?i.getMonth()+1:"0"+(i.getMonth()+1);return a+"-"+n}return i.getMonth()+1+"月"+n+"日"};e.dateSubstring=n;var a=function(t,e,i){e=e||"none",i=i||1500,uni.showToast({title:t,icon:e,duration:i})};e.toast=a;var r=function(t){uni.navigateTo({url:t})};e.openWin=r;var s=function(t,e){return!!uni.getStorageSync("access_token")||(uni.showModal({title:e||"温馨提示",content:t||"请登录!",success:function(t){t.confirm&&r("/pages/login/index")}}),!1)};e.isLogin=s;var o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";uni.makePhoneCall({phoneNumber:t,success:function(t){}})};e.callPhone=o;var c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"****",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=arguments.length>2?arguments[2]:void 0,n=t.split("");return i=i||n.length-2,n.splice(e,i,"****"),n.join("")};e.filterStr=c;var l=function(t){t&&uni.setClipboardData({data:t,success:function(){uni.showToast({title:"复制成功",icon:"none",duration:1500})}})};e.copy=l;var u={dateSubstring:n,toast:a,openWin:r,isLogin:s,callPhone:o,copy:l,filterStr:c};e.default=u},4523:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.order-price[data-v-652295c0]{margin-top:%?10?%;font-family:Source Han Sans CN;font-weight:800;font-size:%?38?%;color:#f60;line-height:%?42?%}.order-price .price-icon[data-v-652295c0]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#f60;line-height:%?42?%}.order-title[data-v-652295c0]{font-family:Source Han Sans CN;font-weight:500;font-size:%?30?%;color:#000;margin-bottom:%?28?%}.order-btn[data-v-652295c0]{background:#ffca28;color:#fff;font-size:%?32?%;border-radius:%?12?%;padding:0 %?40?%;margin-top:%?100?%}.order-price[data-v-652295c0]{margin-top:%?10?%;font-family:Source Han Sans CN;font-weight:800;font-size:%?38?%;color:#f60;line-height:%?42?%}.order-price .price-icon[data-v-652295c0]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#f60;line-height:%?42?%}\n/* 复制按钮 start */.copy-btn[data-v-652295c0]{padding:%?4?% %?16?%;border-radius:%?12?%}\n/* 复制按钮 end */.title[data-v-652295c0]{font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#767676;line-height:%?42?%}.value[data-v-652295c0]{font-family:Source Han Sans CN;font-weight:500;font-size:%?28?%;color:#151515;line-height:%?42?%}.order-price[data-v-652295c0]{margin-top:%?10?%;font-family:Source Han Sans CN;font-weight:800;font-size:%?38?%;color:#f60;line-height:%?42?%}.order-price .price-icon[data-v-652295c0]{font-family:Source Han Sans CN;font-weight:500;font-size:%?26?%;color:#f60;line-height:%?42?%}.item_wrapper[data-v-652295c0]{background:#fff;padding:%?30?%;margin-top:%?20?%;border-radius:%?20?%}.item_wrapper .title_wrapper .tit[data-v-652295c0]{width:%?360?%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item_wrapper .title_wrapper .stateBtn[data-v-652295c0]{color:#fff;font-size:%?22?%;border-radius:%?20?%;padding:%?5?% %?20?%}.item_wrapper .item_ct[data-v-652295c0]{margin:%?20?% 0 %?10?%}.item_wrapper .item_ct .right_img[data-v-652295c0]{border-radius:%?8?%;width:%?125?%;height:%?125?%}.item_wrapper .item_ct .ct_right[data-v-652295c0]{margin-left:%?32?%;width:60%}.item_wrapper .orderBtn[data-v-652295c0]{color:#c79d53;font-size:%?24?%!important;border-radius:%?8?%;border:1px solid #c79d53!important;padding:%?5?% %?20?%}.info[data-v-652295c0]{padding:%?10?% 0}.copy[data-v-652295c0]{width:%?64?%;height:%?32?%;border-radius:%?4?%;border:%?1?% solid #b8b8b8}.bg-green[data-v-652295c0]{background:green}.bg-orange[data-v-652295c0]{background:orange}.bg-gradual-purple[data-v-652295c0]{background:linear-gradient(purple,#fff)}.bg-grey[data-v-652295c0]{background:grey}.clearBtnStyle[data-v-652295c0]{border:none!important;background:none!important;width:auto;line-height:1.5556!important;color:#666;font-size:16px!important}.clearBtnStyle[data-v-652295c0]::after{border:none}',""]),t.exports=e},"468f":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uniPopup:i("029e").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("uni-popup",{ref:"popup",attrs:{safeArea:!1,type:"bottom"}},[i("v-uni-view",{staticClass:"pd15",staticStyle:{position:"relative","background-color":"white","border-radius":"40rpx 40rpx 0 0"}},[i("img",{staticStyle:{width:"40rpx",height:"40rpx",position:"absolute",right:"30rpx"},attrs:{src:t.statics.close,alt:""},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"money mb30",staticStyle:{"text-align":"center","margin-top":"100rpx"}},[t.currencyRight?t._e():i("span",{staticClass:"ft16 ftw500"},[t._v(t._s(t.currency+" "))]),t._v(t._s(t.money)),t.currencyRight?i("span",{staticClass:"ft16 ftw500"},[t._v(t._s(t.currency+" "))]):t._e()]),i("v-uni-view",{staticClass:"payment-section"},t._l(t.payTypeList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"mt15"},[0!==n?i("v-uni-view",{staticClass:"com-line"}):t._e(),i("v-uni-view",{staticClass:"payment-method"},[i("v-uni-image",{staticClass:"payment-icon",attrs:{src:e.img_url}}),i("v-uni-text",{staticClass:"payment-text"},[t._v(t._s(e.name))]),i("v-uni-image",{staticClass:"payment-choose-icon",attrs:{src:t.selectedPayment===e.id?t.statics.airportPickup.choose:t.statics.airportPickup.unChoose},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.selectPayment(e.id)}}})],1)],1)})),1),i("v-uni-button",{staticClass:"order-btn mb15",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submitAndPay.apply(void 0,arguments)}}},[t._v("立即支付")])],1)],1)},r=[]},"48d1":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{},[t.title2?i("v-uni-view",{staticClass:"footer flex space"},[i("v-uni-view",{staticClass:"copy-btn ft13",staticStyle:{"background-color":"white",border:"1px solid #EEB300",color:"#EEB300"},style:t.styles,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onchange.apply(void 0,arguments)}}},[t._v(t._s(t.title))]),i("v-uni-view",{staticClass:"copy-btn ft13 ml10",style:t.styles,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onchange2.apply(void 0,arguments)}}},[t._v(t._s(t.title2))])],1):i("v-uni-view",{staticClass:"footer flex space"},[i("v-uni-view",{staticClass:"copy-btn ft13",style:t.styles,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onchange.apply(void 0,arguments)}}},[t._v(t._s(t.title))])],1)],1)},a=[]},"4db6":function(t,e,i){i("6a54");var n=i("8bcf");function a(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,n(a.key),a)}}t.exports=function(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports["default"]=t.exports},"5c93":function(t,e,i){"use strict";i.r(e);var n=i("27c2"),a=i("7841");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("4460");var s=i("828b"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"652295c0",null,!1,n["a"],void 0);e["default"]=o.exports},"77eb":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{title2:{type:String,default:""},title:{type:String,default:"确定"},styles:{type:String,default:""}},methods:{onchange:function(){this.$emit("change")},onchange2:function(){this.$emit("change2")}}};e.default=n},7830:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.renewSubmitAndPayApi=e.renewDetailApi=e.homeInsuranceList=e.default=e.UserStoreList=e.UserStoreInfo=e.UserHouseList=e.UserHouseDetails=e.NearbyTicketList=e.HouseOrderSubmitPreview=e.HotelUserHomeOrderSubmit=e.HotelUserHomeOrderList=e.HotelUserHomeOrderDetail=e.HotelUserCollectionSubmit=e.HotelRoomReserveList=void 0;var a=n(i("2634")),r=n(i("9b1b")),s=n(i("2fdc")),o=n(i("7653")),c=function(){var t=(0,s.default)((0,a.default)().mark((function t(e,i){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/renewDetail",(0,r.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();e.renewDetailApi=c;var l=function(){var t=(0,s.default)((0,a.default)().mark((function t(e,i){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/renewSubmitAndPay",(0,r.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();e.renewSubmitAndPayApi=l;var u=function(){var t=(0,s.default)((0,a.default)().mark((function t(e,i){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house/details",(0,r.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();e.UserHouseDetails=u;var d=function(){var t=(0,s.default)((0,a.default)().mark((function t(e){var i;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house/book_date_list",(0,r.default)({},e));case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.HotelRoomReserveList=d;var f=function(){var t=(0,s.default)((0,a.default)().mark((function t(e,i){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house/referrer",(0,r.default)((0,r.default)({},e),{},{callback:i}));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();e.NearbyTicketList=f;var p=function(){var t=(0,s.default)((0,a.default)().mark((function t(e,i){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house/list",(0,r.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();e.UserHouseList=p;var g=function(){var t=(0,s.default)((0,a.default)().mark((function t(e){var i;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.store/info",(0,r.default)({},e));case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.UserStoreInfo=g;var v=function(){var t=(0,s.default)((0,a.default)().mark((function t(e,i){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.store/list",(0,r.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();e.UserStoreList=v;var m=function(){var t=(0,s.default)((0,a.default)().mark((function t(e){var i;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/submit_preview",(0,r.default)({},e));case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.HouseOrderSubmitPreview=m;var h=function(){var t=(0,s.default)((0,a.default)().mark((function t(e,i){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/submit",(0,r.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();e.HotelUserHomeOrderSubmit=h;var y=function(){var t=(0,s.default)((0,a.default)().mark((function t(e,i){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/list",(0,r.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();e.HotelUserHomeOrderList=y;var _=function(){var t=(0,s.default)((0,a.default)().mark((function t(e){var i;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.house_order/detail",(0,r.default)({},e));case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.HotelUserHomeOrderDetail=_;var w=function(){var t=(0,s.default)((0,a.default)().mark((function t(e){var i;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/merchant.store.settle/register",(0,r.default)({},e));case 2:return i=t.sent,t.abrupt("return",i);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.homeInsuranceList=w;var b=function(){var t=(0,s.default)((0,a.default)().mark((function t(e,i){var n;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.post("/api/user.tour.store/collect",(0,r.default)({},e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();e.HotelUserCollectionSubmit=b;var x={UserHouseDetails:u,UserStoreInfo:g,NearbyTicketList:f,HotelRoomReserveList:d,HouseOrderSubmitPreview:m,HotelUserHomeOrderSubmit:h,HotelUserHomeOrderList:y,HotelUserHomeOrderDetail:_,UserHouseList:p,UserStoreList:v,homeInsuranceList:w,renewSubmitAndPayApi:l,renewDetailApi:c};e.default=x},7841:function(t,e,i){"use strict";i.r(e);var n=i("07be"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},7849:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticStyle:{position:"fixed",top:"0",left:"0",width:"100vw","z-index":"99999"},style:{background:t.background,color:t.color}},[i("v-uni-view",{staticClass:"u-status-bar",staticStyle:{width:"100%"},style:{height:t.statusBarHeight+"px"}}),i("v-uni-view",{staticStyle:{display:"flex","align-items":"center"},style:{height:t.navbarHeight+"px"}},[0==t.type?[i("v-uni-view",{staticStyle:{width:"20%",padding:"20upx",height:"100%",display:"flex","align-items":"center"}},[0==t.backType||1==t.backType?i("v-uni-text",{staticClass:"tn-icon-left",staticStyle:{"font-size":"44upx",display:"flex","align-items":"center"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}}):t._e(),1==t.backType?t._t("back"):t._e()],2),i("v-uni-view",{staticStyle:{width:"60%",display:"flex","justify-content":"center","font-size":"30upx"}},[t.showTitle?i("v-uni-view",{staticClass:"text-overflow",staticStyle:{"max-width":"60%"}},[t._v(t._s(t.title))]):t._e(),t.showTitle?t._e():t._t("content")],2),i("v-uni-view",{staticStyle:{width:"20%"}},[t._t("right")],2)]:t._e(),1==t.type?[t._t("custom")]:t._e()],2)],1),t.isFixed?i("v-uni-view",{staticClass:"u-navbar-placeholder",style:{width:"100%",height:Number(t.navbarHeight)+t.statusBarHeight+"px"}}):t._e()],1)},a=[]},"883d":function(t,e,i){i("7a76"),i("c9b5"),t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports["default"]=t.exports},"89e5":function(t,e,i){"use strict";i.r(e);var n=i("468f"),a=i("0c54");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("e0e6");var s=i("828b"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"22685b02",null,!1,n["a"],void 0);e["default"]=o.exports},9468:function(t,e,i){"use strict";i("6a54"),i("bf0f"),i("2797"),i("dc8a"),Object.defineProperty(e,"__esModule",{value:!0});var n=i("1f3f");Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}));var a=i("4490");Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===a[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}}))}))},9654:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,".money[data-v-22685b02]{font-family:Source Han Sans CN;font-weight:700;font-size:%?64?%;color:#333;line-height:%?42?%}.order-btn[data-v-22685b02]{background:#ffca28;color:#fff;font-size:%?32?%;border-radius:%?12?%;padding:0 %?40?%}.payment-choose-icon[data-v-22685b02]{width:%?44?%;height:%?44?%}.payment-section[data-v-22685b02]{background:#fff;padding:%?24?% %?30?%;margin-bottom:%?20?%}.payment-method[data-v-22685b02]{display:flex;align-items:center;margin-bottom:%?10?%}.payment-icon[data-v-22685b02]{width:%?48?%;height:%?48?%;margin-right:%?17?%}.payment-text[data-v-22685b02]{flex:1;font-family:Source Han Sans CN;font-weight:500;font-size:%?30?%;color:#333;line-height:%?42?%}",""]),t.exports=e},"9d90":function(t,e,i){"use strict";i.r(e);var n=i("7849"),a=i("da5e");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);var s=i("828b"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"275adf7c",null,!1,n["a"],void 0);e["default"]=o.exports},a9e5:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.submitAndPay=e.projectList=e.getSPDetail=e.getPayType=e.getCatOrderListApi=e.getCatOrderDetailApi=e.cancelCatOrderApi=void 0;var a=n(i("7653"));e.getSPDetail=function(t){return a.default.post("api/user.product.washPet/detail",t)};e.getPayType=function(t){return a.default.post("api/user.dict.pay/list",t)};e.submitAndPay=function(t){return a.default.post("api/user.order.washPet/submitAndPay",t)};e.projectList=function(t){return a.default.post("api/user.product.washPet/list",t)};e.getCatOrderListApi=function(t){return a.default.post("api/user.order.washPet/list",t)};e.getCatOrderDetailApi=function(t){return a.default.post("api/user.order.washPet/detail",t)};e.cancelCatOrderApi=function(t){return a.default.post("api/user.order.washPet/cancel",t)}},ad7f:function(t,e,i){var n=i("9654");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("20c66396",n,!0,{sourceMap:!1,shadowMode:!1})},af94:function(t,e,i){"use strict";var n=i("38a0"),a=i.n(n);a.a},c2a6:function(t,e,i){var n=i("4523");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("6a6595a1",n,!0,{sourceMap:!1,shadowMode:!1})},c408:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,".footer[data-v-d37af57c]{background-color:#fff;padding:%?30?%;position:fixed;width:100%;left:0;bottom:0;box-shadow:0 -2px 10px rgba(0,0,0,.05)}.copy-btn[data-v-d37af57c]{background-color:#ffd84d;font-weight:700;color:#333;line-height:%?38?%;border:none;border-radius:%?20?%;padding:%?16?%;font-size:%?32?%;height:%?90?%;display:flex;align-items:center;justify-content:center;flex:1}",""]),t.exports=e},d07d:function(t,e,i){var n=i("883d").default,a=i("4db6").default;i("c223"),i("bf0f"),i("2797"),i("4100"),i("dc8a"),i("aa9c"),i("e838"),i("7a76"),i("c9b5"),i("8f71");var r={KEY_ERR:311,KEY_ERR_MSG:"key格式错误",PARAM_ERR:310,PARAM_ERR_MSG:"请求参数信息有误",SYSTEM_ERR:600,SYSTEM_ERR_MSG:"系统错误",WX_ERR_CODE:1e3,WX_OK_CODE:200},s="https://apis.map.qq.com/ws/",o=s+"place/v1/suggestion",c={driving:"driving",transit:"transit"},l={safeAdd:function(t,e){var i=(65535&t)+(65535&e),n=(t>>16)+(e>>16)+(i>>16);return n<<16|65535&i},bitRotateLeft:function(t,e){return t<<e|t>>>32-e},md5cmn:function(t,e,i,n,a,r){return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(e,t),this.safeAdd(n,r)),a),i)},md5ff:function(t,e,i,n,a,r,s){return this.md5cmn(e&i|~e&n,t,e,a,r,s)},md5gg:function(t,e,i,n,a,r,s){return this.md5cmn(e&n|i&~n,t,e,a,r,s)},md5hh:function(t,e,i,n,a,r,s){return this.md5cmn(e^i^n,t,e,a,r,s)},md5ii:function(t,e,i,n,a,r,s){return this.md5cmn(i^(e|~n),t,e,a,r,s)},binlMD5:function(t,e){var i,n,a,r,s;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var o=1732584193,c=-271733879,l=-1732584194,u=271733878;for(i=0;i<t.length;i+=16)n=o,a=c,r=l,s=u,o=this.md5ff(o,c,l,u,t[i],7,-680876936),u=this.md5ff(u,o,c,l,t[i+1],12,-389564586),l=this.md5ff(l,u,o,c,t[i+2],17,606105819),c=this.md5ff(c,l,u,o,t[i+3],22,-1044525330),o=this.md5ff(o,c,l,u,t[i+4],7,-176418897),u=this.md5ff(u,o,c,l,t[i+5],12,1200080426),l=this.md5ff(l,u,o,c,t[i+6],17,-1473231341),c=this.md5ff(c,l,u,o,t[i+7],22,-45705983),o=this.md5ff(o,c,l,u,t[i+8],7,1770035416),u=this.md5ff(u,o,c,l,t[i+9],12,-1958414417),l=this.md5ff(l,u,o,c,t[i+10],17,-42063),c=this.md5ff(c,l,u,o,t[i+11],22,-1990404162),o=this.md5ff(o,c,l,u,t[i+12],7,1804603682),u=this.md5ff(u,o,c,l,t[i+13],12,-40341101),l=this.md5ff(l,u,o,c,t[i+14],17,-1502002290),c=this.md5ff(c,l,u,o,t[i+15],22,1236535329),o=this.md5gg(o,c,l,u,t[i+1],5,-165796510),u=this.md5gg(u,o,c,l,t[i+6],9,-1069501632),l=this.md5gg(l,u,o,c,t[i+11],14,643717713),c=this.md5gg(c,l,u,o,t[i],20,-373897302),o=this.md5gg(o,c,l,u,t[i+5],5,-701558691),u=this.md5gg(u,o,c,l,t[i+10],9,38016083),l=this.md5gg(l,u,o,c,t[i+15],14,-660478335),c=this.md5gg(c,l,u,o,t[i+4],20,-405537848),o=this.md5gg(o,c,l,u,t[i+9],5,568446438),u=this.md5gg(u,o,c,l,t[i+14],9,-1019803690),l=this.md5gg(l,u,o,c,t[i+3],14,-187363961),c=this.md5gg(c,l,u,o,t[i+8],20,1163531501),o=this.md5gg(o,c,l,u,t[i+13],5,-1444681467),u=this.md5gg(u,o,c,l,t[i+2],9,-51403784),l=this.md5gg(l,u,o,c,t[i+7],14,1735328473),c=this.md5gg(c,l,u,o,t[i+12],20,-1926607734),o=this.md5hh(o,c,l,u,t[i+5],4,-378558),u=this.md5hh(u,o,c,l,t[i+8],11,-2022574463),l=this.md5hh(l,u,o,c,t[i+11],16,1839030562),c=this.md5hh(c,l,u,o,t[i+14],23,-35309556),o=this.md5hh(o,c,l,u,t[i+1],4,-1530992060),u=this.md5hh(u,o,c,l,t[i+4],11,1272893353),l=this.md5hh(l,u,o,c,t[i+7],16,-155497632),c=this.md5hh(c,l,u,o,t[i+10],23,-1094730640),o=this.md5hh(o,c,l,u,t[i+13],4,681279174),u=this.md5hh(u,o,c,l,t[i],11,-358537222),l=this.md5hh(l,u,o,c,t[i+3],16,-722521979),c=this.md5hh(c,l,u,o,t[i+6],23,76029189),o=this.md5hh(o,c,l,u,t[i+9],4,-640364487),u=this.md5hh(u,o,c,l,t[i+12],11,-421815835),l=this.md5hh(l,u,o,c,t[i+15],16,530742520),c=this.md5hh(c,l,u,o,t[i+2],23,-995338651),o=this.md5ii(o,c,l,u,t[i],6,-198630844),u=this.md5ii(u,o,c,l,t[i+7],10,1126891415),l=this.md5ii(l,u,o,c,t[i+14],15,-1416354905),c=this.md5ii(c,l,u,o,t[i+5],21,-57434055),o=this.md5ii(o,c,l,u,t[i+12],6,1700485571),u=this.md5ii(u,o,c,l,t[i+3],10,-1894986606),l=this.md5ii(l,u,o,c,t[i+10],15,-1051523),c=this.md5ii(c,l,u,o,t[i+1],21,-2054922799),o=this.md5ii(o,c,l,u,t[i+8],6,1873313359),u=this.md5ii(u,o,c,l,t[i+15],10,-30611744),l=this.md5ii(l,u,o,c,t[i+6],15,-1560198380),c=this.md5ii(c,l,u,o,t[i+13],21,1309151649),o=this.md5ii(o,c,l,u,t[i+4],6,-145523070),u=this.md5ii(u,o,c,l,t[i+11],10,-1120210379),l=this.md5ii(l,u,o,c,t[i+2],15,718787259),c=this.md5ii(c,l,u,o,t[i+9],21,-343485551),o=this.safeAdd(o,n),c=this.safeAdd(c,a),l=this.safeAdd(l,r),u=this.safeAdd(u,s);return[o,c,l,u]},binl2rstr:function(t){var e,i="",n=32*t.length;for(e=0;e<n;e+=8)i+=String.fromCharCode(t[e>>5]>>>e%32&255);return i},rstr2binl:function(t){var e,i=[];for(i[(t.length>>2)-1]=void 0,e=0;e<i.length;e+=1)i[e]=0;var n=8*t.length;for(e=0;e<n;e+=8)i[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return i},rstrMD5:function(t){return this.binl2rstr(this.binlMD5(this.rstr2binl(t),8*t.length))},rstrHMACMD5:function(t,e){var i,n,a=this.rstr2binl(t),r=[],s=[];for(r[15]=s[15]=void 0,a.length>16&&(a=this.binlMD5(a,8*t.length)),i=0;i<16;i+=1)r[i]=909522486^a[i],s[i]=1549556828^a[i];return n=this.binlMD5(r.concat(this.rstr2binl(e)),512+8*e.length),this.binl2rstr(this.binlMD5(s.concat(n),640))},rstr2hex:function(t){var e,i,n="";for(i=0;i<t.length;i+=1)e=t.charCodeAt(i),n+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return n},str2rstrUTF8:function(t){return unescape(encodeURIComponent(t))},rawMD5:function(t){return this.rstrMD5(this.str2rstrUTF8(t))},hexMD5:function(t){return this.rstr2hex(this.rawMD5(t))},rawHMACMD5:function(t,e){return this.rstrHMACMD5(this.str2rstrUTF8(t),str2rstrUTF8(e))},hexHMACMD5:function(t,e){return this.rstr2hex(this.rawHMACMD5(t,e))},md5:function(t,e,i){return e?i?this.rawHMACMD5(e,t):this.hexHMACMD5(e,t):i?this.rawMD5(t):this.hexMD5(t)},getSig:function(t,e,i,n){var a=null,r=[];return Object.keys(t).sort().forEach((function(e){r.push(e+"="+t[e])})),"search"==i&&(a="/ws/place/v1/search?"+r.join("&")+e),"suggest"==i&&(a="/ws/place/v1/suggestion?"+r.join("&")+e),"reverseGeocoder"==i&&(a="/ws/geocoder/v1/?"+r.join("&")+e),"geocoder"==i&&(a="/ws/geocoder/v1/?"+r.join("&")+e),"getCityList"==i&&(a="/ws/district/v1/list?"+r.join("&")+e),"getDistrictByCityId"==i&&(a="/ws/district/v1/getchildren?"+r.join("&")+e),"calculateDistance"==i&&(a="/ws/distance/v1/?"+r.join("&")+e),"direction"==i&&(a="/ws/direction/v1/"+n+"?"+r.join("&")+e),a=this.md5(a),a},location2query:function(t){if("string"==typeof t)return t;for(var e="",i=0;i<t.length;i++){var n=t[i];e&&(e+=";"),n.location&&(e=e+n.location.lat+","+n.location.lng),n.latitude&&n.longitude&&(e=e+n.latitude+","+n.longitude)}return e},rad:function(t){return t*Math.PI/180},getEndLocation:function(t){for(var e=t.split(";"),i=[],n=0;n<e.length;n++)i.push({lat:parseFloat(e[n].split(",")[0]),lng:parseFloat(e[n].split(",")[1])});return i},getDistance:function(t,e,i,n){var a=this.rad(t),r=this.rad(i),s=a-r,o=this.rad(e)-this.rad(n),c=2*Math.asin(Math.sqrt(Math.pow(Math.sin(s/2),2)+Math.cos(a)*Math.cos(r)*Math.pow(Math.sin(o/2),2)));return c*=6378136.49,c=Math.round(1e4*c)/1e4,parseFloat(c.toFixed(0))},getWXLocation:function(t,e,i){wx.getLocation({type:"gcj02",success:t,fail:e,complete:i})},getLocationParam:function(t){if("string"==typeof t){var e=t.split(",");t=2===e.length?{latitude:t.split(",")[0],longitude:t.split(",")[1]}:{}}return t},polyfillParam:function(t){t.success=t.success||function(){},t.fail=t.fail||function(){},t.complete=t.complete||function(){}},checkParamKeyEmpty:function(t,e){if(!t[e]){var i=this.buildErrorConfig(r.PARAM_ERR,r.PARAM_ERR_MSG+e+"参数格式有误");return t.fail(i),t.complete(i),!0}return!1},checkKeyword:function(t){return!this.checkParamKeyEmpty(t,"keyword")},checkLocation:function(t){var e=this.getLocationParam(t.location);if(!e||!e.latitude||!e.longitude){var i=this.buildErrorConfig(r.PARAM_ERR,r.PARAM_ERR_MSG+" location参数格式有误");return t.fail(i),t.complete(i),!1}return!0},buildErrorConfig:function(t,e){return{status:t,message:e}},handleData:function(t,e,i){if("search"==i){for(var n=e.data,a=[],r=0;r<n.length;r++)a.push({id:n[r].id||null,title:n[r].title||null,latitude:n[r].location&&n[r].location.lat||null,longitude:n[r].location&&n[r].location.lng||null,address:n[r].address||null,category:n[r].category||null,tel:n[r].tel||null,adcode:n[r].ad_info&&n[r].ad_info.adcode||null,city:n[r].ad_info&&n[r].ad_info.city||null,district:n[r].ad_info&&n[r].ad_info.district||null,province:n[r].ad_info&&n[r].ad_info.province||null});t.success(e,{searchResult:n,searchSimplify:a})}else if("suggest"==i){var s=e.data,o=[];for(r=0;r<s.length;r++)o.push({adcode:s[r].adcode||null,address:s[r].address||null,category:s[r].category||null,city:s[r].city||null,district:s[r].district||null,id:s[r].id||null,latitude:s[r].location&&s[r].location.lat||null,longitude:s[r].location&&s[r].location.lng||null,province:s[r].province||null,title:s[r].title||null,type:s[r].type||null});t.success(e,{suggestResult:s,suggestSimplify:o})}else if("reverseGeocoder"==i){var c=e.result,l={address:c.address||null,latitude:c.location&&c.location.lat||null,longitude:c.location&&c.location.lng||null,adcode:c.ad_info&&c.ad_info.adcode||null,city:c.address_component&&c.address_component.city||null,district:c.address_component&&c.address_component.district||null,nation:c.address_component&&c.address_component.nation||null,province:c.address_component&&c.address_component.province||null,street:c.address_component&&c.address_component.street||null,street_number:c.address_component&&c.address_component.street_number||null,recommend:c.formatted_addresses&&c.formatted_addresses.recommend||null,rough:c.formatted_addresses&&c.formatted_addresses.rough||null};if(c.pois){var u=c.pois,d=[];for(r=0;r<u.length;r++)d.push({id:u[r].id||null,title:u[r].title||null,latitude:u[r].location&&u[r].location.lat||null,longitude:u[r].location&&u[r].location.lng||null,address:u[r].address||null,category:u[r].category||null,adcode:u[r].ad_info&&u[r].ad_info.adcode||null,city:u[r].ad_info&&u[r].ad_info.city||null,district:u[r].ad_info&&u[r].ad_info.district||null,province:u[r].ad_info&&u[r].ad_info.province||null});t.success(e,{reverseGeocoderResult:c,reverseGeocoderSimplify:l,pois:u,poisSimplify:d})}else t.success(e,{reverseGeocoderResult:c,reverseGeocoderSimplify:l})}else if("geocoder"==i){var f=e.result,p={title:f.title||null,latitude:f.location&&f.location.lat||null,longitude:f.location&&f.location.lng||null,adcode:f.ad_info&&f.ad_info.adcode||null,province:f.address_components&&f.address_components.province||null,city:f.address_components&&f.address_components.city||null,district:f.address_components&&f.address_components.district||null,street:f.address_components&&f.address_components.street||null,street_number:f.address_components&&f.address_components.street_number||null,level:f.level||null};t.success(e,{geocoderResult:f,geocoderSimplify:p})}else if("getCityList"==i){var g=e.result[0],v=e.result[1],m=e.result[2];t.success(e,{provinceResult:g,cityResult:v,districtResult:m})}else if("getDistrictByCityId"==i){var h=e.result[0];t.success(e,h)}else if("calculateDistance"==i){var y=e.result.elements,_=[];for(r=0;r<y.length;r++)_.push(y[r].distance);t.success(e,{calculateDistanceResult:y,distance:_})}else if("direction"==i){var w=e.result.routes;t.success(e,w)}else t.success(e)},buildWxRequestConfig:function(t,e,i){var n=this;return e.header={"content-type":"application/json"},e.method="GET",e.success=function(e){var a=e.data;0===a.status?n.handleData(t,a,i):t.fail(a)},e.fail=function(e){e.statusCode=r.WX_ERR_CODE,t.fail(n.buildErrorConfig(r.WX_ERR_CODE,e.errMsg))},e.complete=function(e){var i=+e.statusCode;switch(i){case r.WX_ERR_CODE:t.complete(n.buildErrorConfig(r.WX_ERR_CODE,e.errMsg));break;case r.WX_OK_CODE:var a=e.data;0===a.status?t.complete(a):t.complete(n.buildErrorConfig(a.status,a.message));break;default:t.complete(n.buildErrorConfig(r.SYSTEM_ERR,r.SYSTEM_ERR_MSG))}},e},locationProcess:function(t,e,i,n){var a=this;if(i=i||function(e){e.statusCode=r.WX_ERR_CODE,t.fail(a.buildErrorConfig(r.WX_ERR_CODE,e.errMsg))},n=n||function(e){e.statusCode==r.WX_ERR_CODE&&t.complete(a.buildErrorConfig(r.WX_ERR_CODE,e.errMsg))},t.location){if(a.checkLocation(t)){var s=l.getLocationParam(t.location);e(s)}}else a.getWXLocation(e,i,n)}},u=function(){"use strict";function t(e){if(n(this,t),!e.key)throw Error("key值不能为空");this.key=e.key}return a(t,[{key:"search",value:function(t){if(t=t||{},l.polyfillParam(t),l.checkKeyword(t)){var e={keyword:t.keyword,orderby:t.orderby||"_distance",page_size:t.page_size||10,page_index:t.page_index||1,output:"json",key:this.key};t.address_format&&(e.address_format=t.address_format),t.filter&&(e.filter=t.filter);var i=t.distance||"1000",n=t.auto_extend||1,a=null,r=null;t.region&&(a=t.region),t.rectangle&&(r=t.rectangle);l.locationProcess(t,(function(s){a&&!r?(e.boundary="region("+a+","+n+","+s.latitude+","+s.longitude+")",t.sig&&(e.sig=l.getSig(e,t.sig,"search"))):r&&!a?(e.boundary="rectangle("+r+")",t.sig&&(e.sig=l.getSig(e,t.sig,"search"))):(e.boundary="nearby("+s.latitude+","+s.longitude+","+i+","+n+")",t.sig&&(e.sig=l.getSig(e,t.sig,"search"))),wx.request(l.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/place/v1/search",data:e},"search"))}))}}},{key:"getSuggestion",value:function(t){if(t=t||{},l.polyfillParam(t),l.checkKeyword(t)){var e={keyword:t.keyword,region:t.region||"全国",region_fix:t.region_fix||0,policy:t.policy||0,page_size:t.page_size||10,page_index:t.page_index||1,get_subpois:t.get_subpois||0,output:"json",key:this.key};if(t.address_format&&(e.address_format=t.address_format),t.filter&&(e.filter=t.filter),t.location){l.locationProcess(t,(function(i){e.location=i.latitude+","+i.longitude,t.sig&&(e.sig=l.getSig(e,t.sig,"suggest")),wx.request(l.buildWxRequestConfig(t,{url:o,data:e},"suggest"))}))}else t.sig&&(e.sig=l.getSig(e,t.sig,"suggest")),wx.request(l.buildWxRequestConfig(t,{url:o,data:e},"suggest"))}}},{key:"reverseGeocoder",value:function(t){t=t||{},l.polyfillParam(t);var e={coord_type:t.coord_type||5,get_poi:t.get_poi||0,output:"json",key:this.key};t.poi_options&&(e.poi_options=t.poi_options);l.locationProcess(t,(function(i){e.location=i.latitude+","+i.longitude,t.sig&&(e.sig=l.getSig(e,t.sig,"reverseGeocoder")),wx.request(l.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/geocoder/v1/",data:e},"reverseGeocoder"))}))}},{key:"geocoder",value:function(t){if(t=t||{},l.polyfillParam(t),!l.checkParamKeyEmpty(t,"address")){var e={address:t.address,output:"json",key:this.key};t.region&&(e.region=t.region),t.sig&&(e.sig=l.getSig(e,t.sig,"geocoder")),wx.request(l.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/geocoder/v1/",data:e},"geocoder"))}}},{key:"getCityList",value:function(t){t=t||{},l.polyfillParam(t);var e={output:"json",key:this.key};t.sig&&(e.sig=l.getSig(e,t.sig,"getCityList")),wx.request(l.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/district/v1/list",data:e},"getCityList"))}},{key:"getDistrictByCityId",value:function(t){if(t=t||{},l.polyfillParam(t),!l.checkParamKeyEmpty(t,"id")){var e={id:t.id||"",output:"json",key:this.key};t.sig&&(e.sig=l.getSig(e,t.sig,"getDistrictByCityId")),wx.request(l.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/district/v1/getchildren",data:e},"getDistrictByCityId"))}}},{key:"calculateDistance",value:function(t){if(t=t||{},l.polyfillParam(t),!l.checkParamKeyEmpty(t,"to")){var e={mode:t.mode||"walking",to:l.location2query(t.to),output:"json",key:this.key};if(t.from&&(t.location=t.from),"straight"==e.mode){var i=function(i){for(var n=l.getEndLocation(e.to),a={message:"query ok",result:{elements:[]},status:0},r=0;r<n.length;r++)a.result.elements.push({distance:l.getDistance(i.latitude,i.longitude,n[r].lat,n[r].lng),duration:0,from:{lat:i.latitude,lng:i.longitude},to:{lat:n[r].lat,lng:n[r].lng}});var s=a.result.elements,o=[];for(r=0;r<s.length;r++)o.push(s[r].distance);return t.success(a,{calculateResult:s,distanceResult:o})};l.locationProcess(t,i)}else{i=function(i){e.from=i.latitude+","+i.longitude,t.sig&&(e.sig=l.getSig(e,t.sig,"calculateDistance")),wx.request(l.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/distance/v1/",data:e},"calculateDistance"))};l.locationProcess(t,i)}}}},{key:"direction",value:function(t){if(t=t||{},l.polyfillParam(t),!l.checkParamKeyEmpty(t,"to")){var e={output:"json",key:this.key};"string"==typeof t.to?e.to=t.to:e.to=t.to.latitude+","+t.to.longitude;var i;t.mode=t.mode||c.driving,i="https://apis.map.qq.com/ws/direction/v1/"+t.mode,t.from&&(t.location=t.from),t.mode==c.driving&&(t.from_poi&&(e.from_poi=t.from_poi),t.heading&&(e.heading=t.heading),t.speed&&(e.speed=t.speed),t.accuracy&&(e.accuracy=t.accuracy),t.road_type&&(e.road_type=t.road_type),t.to_poi&&(e.to_poi=t.to_poi),t.from_track&&(e.from_track=t.from_track),t.waypoints&&(e.waypoints=t.waypoints),t.policy&&(e.policy=t.policy),t.plate_number&&(e.plate_number=t.plate_number)),t.mode==c.transit&&(t.departure_time&&(e.departure_time=t.departure_time),t.policy&&(e.policy=t.policy));l.locationProcess(t,(function(n){e.from=n.latitude+","+n.longitude,t.sig&&(e.sig=l.getSig(e,t.sig,"direction",t.mode)),wx.request(l.buildWxRequestConfig(t,{url:i,data:e},"direction"))}))}}}]),t}();t.exports=u},da5e:function(t,e,i){"use strict";i.r(e);var n=i("27ca"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},e0e6:function(t,e,i){"use strict";var n=i("ad7f"),a=i.n(n);a.a},e23b:function(t,e,i){"use strict";i.r(e);var n=i("48d1"),a=i("2258");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("af94");var s=i("828b"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"d37af57c",null,!1,n["a"],void 0);e["default"]=o.exports}}]);
|