tour-page-order-orderDetail.ac06deeb.js 42 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["tour-page-order-orderDetail"],{"01ad":function(t,e,i){"use strict";var n=i("4380"),a=i.n(n);a.a},"07be":function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d4b5"),i("64aa");var a=i("14cf"),r=i("1380"),s=n(i("34cae")),o=n(i("9d90")),u=i("9d0a"),c=i("d07d"),l=(new c({key:"OSLBZ-RCU63-UMF3X-3HTKY-LE7UF-SJBT5"}),{data:function(){return{params:"",infoList:[],roomList:[],latitude:"",longitude:"",id:"",copy:a.copy,filterStr:a.filterStr,callPhone:a.callPhone,showSelectPayWayModal:!1}},onLoad:function(t){this.id=t.id,this.getOrderDetail()},components:{headerBar:o.default,PaySelectModal:s.default},methods:{align_create_order:function(t){uni.navigateTo({url:"/tour-page/detail/index?store_id=".concat(t)})},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,u.showModal)({title:"提示",content:"联系商家进行退款。",callback:function(){navBack()}})},getOrderDetail:function(){var t=this;(0,r.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=l},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]}}))}))},"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,u=0==n.getDay()?"天":n.getDay(),c=n.getFullYear(),l=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(c,"-").concat(d>9?d:"0"+d,"-").concat(l>9?l:"0"+l),f.startWeek="星期".concat(a),f.endWeek="星期".concat(u),f.startMonth=o,f.endMonth=d,f.startDay=s,f.endDay=l;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},"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]}}))}))},4380:function(t,e,i){var n=i("edc5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("3c3a9dbb",n,!0,{sourceMap:!1,shadowMode:!1})},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 u=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=u;var c=function(t){t&&uni.setClipboardData({data:t,success:function(){uni.showToast({title:"复制成功",icon:"none",duration:1500})}})};e.copy=c;var l={dateSubstring:n,toast:a,openWin:r,isLogin:s,callPhone:o,copy:c,filterStr:u};e.default=l},"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("8627"),a=i("7841");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("01ad");var s=i("828b"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"c43e0858",null,!1,n["a"],void 0);e["default"]=o.exports},7830:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),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")),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 c=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=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/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=l;var d=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=d;var f=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=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.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=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.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=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.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=v;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/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=h;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/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=m;var y=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=y;var _=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=_;var w={UserHouseDetails:u,UserStoreInfo:f,NearbyTicketList:l,HotelRoomReserveList:c,HouseOrderSubmitPreview:g,HotelUserHomeOrderSubmit:v,HotelUserHomeOrderList:h,HotelUserHomeOrderDetail:m,UserHouseList:d,UserStoreList:p,homeInsuranceList:y};e.default=w},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=[]},8627: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",{staticStyle:{padding:"0 28upx 20upx 28upx"}},[i("header-bar",{staticStyle:{"font-weight":"600"},attrs:{backType:"0",title:"订单详情"}}),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:"#333","font-weight":"600"}},[t._v(t._s(t.params.store_name||""))])],1),i("v-uni-view",{staticClass:"stateBtn",class:1==t.params.status?"bg-green":2==t.params.status?"bg-orange":3==t.params.status?"bg-gradual-purple":"bg-grey"},[t._v(t._s(1==t.params.is_pay?"已支付":"未支付"))])],1),i("v-uni-view",{staticClass:"item_ct",staticStyle:{display:"flex","align-items":"center"}},[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._s(t.params.end_date||""))]),i("v-uni-view",{staticStyle:{"font-size":"24upx","margin-top":"6upx",color:"#a8a8a8"}},[t._v("共"+t._s(t.params.nights_num||"")+"晚")])],1)],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",{},[t._v("入住人")]),i("v-uni-view",{},[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",{},[t._v("押金")]),i("v-uni-view",{},[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",{},[t._v("房费")]),i("v-uni-view",{},[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",{},[t._v(t._s(1==t.params.is_villa?"门牌号":"房间号"))]),i("v-uni-view",{},[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",{},[t._v("联系电话")]),i("v-uni-view",{},[t._v(t._s(t.filterStr(e.phones,3,5)||""))])],1),i("v-uni-view",{staticClass:"info",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{},[t._v("证件号码")]),i("v-uni-view",{},[t._v(t._s(t.filterStr(e.IDnum,3,13)||""))])],1),i("v-uni-view",{staticClass:"info display: flex; justify-content:space-between; align-items: center;"},[i("v-uni-view",{staticStyle:{width:"20%"}},[t._v("备注")]),i("v-uni-view",{staticClass:"mark",staticStyle:{width:"80%"}},[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",{},[t._v("入住时间")]),i("v-uni-view",{},[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",{},[t._v("房间号")]),i("v-uni-view",{},[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",{},[t._v("入住天数")]),i("v-uni-view",{},[t._v(t._s(e.day||0))])],1)],1):t._e()})),i("v-uni-view",{staticStyle:{padding:"20upx 0",display:"flex","align-items":"center","justify-content":"space-between"}},[i("v-uni-view",{},[t._v("订单号 :")]),i("v-uni-view",{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-text",{staticStyle:{display:"flex","justify-content":"end","margin-left":"16upx",width:"20%"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.copy(t.params.order_no)}}},[i("v-uni-text",{staticClass:"copy",staticStyle:{"font-size":"22upx",color:"#a8a8a8","padding-right":"10upx","padding-left":"10upx"}},[t._v("复制")])],1)],1)],1),i("v-uni-view",{staticStyle:{display:"flex","justify-content":"end","align-items":"center"}},[i("v-uni-view",{staticStyle:{display:"flex","align-items":"center"}},[i("v-uni-view",{staticStyle:{"font-size":"26upx"}},[t._v("押金合计 :")]),i("v-uni-view",{staticStyle:{"margin-left":"10upx","font-size":"30upx","font-weight":"600",color:"#E60000"}},[t._v(t._s(t.CurrencyUnit)+t._s(t.params.pay_price||""))])],1)],1),i("v-uni-view",{staticStyle:{display:"flex","justify-content":"end"}},[i("v-uni-button",{staticClass:"clearBtnStyle orderBtn",staticStyle:{"margin-top":"20upx","margin-right":"10upx"},attrs:{type:"default","open-type":"contact","send-message-title":"订单详情","send-message-path":"/order/orderDetail?id="+t.id,"show-message-card":!0}},[t._v("在线客服")]),i("v-uni-view",{staticClass:"orderBtn",staticStyle:{"margin-top":"20upx","margin-right":"10upx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.callPhone(t.params.store_tel)}}},[t._v("电话联系")]),i("v-uni-view",{staticClass:"orderBtn",staticStyle:{"margin-top":"20upx","margin-right":"10upx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLocation.apply(void 0,arguments)}}},[t._v("一键导航")]),3==t.params.status?i("v-uni-view",{staticClass:"orderBtn",staticStyle:{"margin-top":"20upx","margin-right":"10upx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goJourney.apply(void 0,arguments)}}},[t._v("上传旅途")]):t._e(),i("v-uni-view",{staticClass:"orderBtn",staticStyle:{"margin-top":"20upx","margin-right":"10upx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.align_create_order(t.params.store_id)}}},[t._v("再次预定")])],1),0==t.params.is_pay?i("v-uni-view",{staticStyle:{border:"1px solid #C79D53 !important",width:"400upx",height:"70upx","border-radius":"15upx","margin-left":"150upx","margin-top":"25upx",display:"flex","justify-content":"center","align-items":"center",color:"#C79D53"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toPayOrder()}}},[t._v("去支付")]):t._e(),1==t.params.is_pay?i("v-uni-view",{staticStyle:{border:"1px solid #C79D53 !important",width:"400upx",height:"70upx","border-radius":"15upx","margin-left":"150upx","margin-top":"25upx",display:"flex","justify-content":"center","align-items":"center",color:"#C79D53"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toRefund()}}},[t._v("申请退款")]):t._e()],2):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)},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},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]}}))}))},"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},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",u={driving:"driving",transit:"transit"},c={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,u=-271733879,c=-1732584194,l=271733878;for(i=0;i<t.length;i+=16)n=o,a=u,r=c,s=l,o=this.md5ff(o,u,c,l,t[i],7,-680876936),l=this.md5ff(l,o,u,c,t[i+1],12,-389564586),c=this.md5ff(c,l,o,u,t[i+2],17,606105819),u=this.md5ff(u,c,l,o,t[i+3],22,-1044525330),o=this.md5ff(o,u,c,l,t[i+4],7,-176418897),l=this.md5ff(l,o,u,c,t[i+5],12,1200080426),c=this.md5ff(c,l,o,u,t[i+6],17,-1473231341),u=this.md5ff(u,c,l,o,t[i+7],22,-45705983),o=this.md5ff(o,u,c,l,t[i+8],7,1770035416),l=this.md5ff(l,o,u,c,t[i+9],12,-1958414417),c=this.md5ff(c,l,o,u,t[i+10],17,-42063),u=this.md5ff(u,c,l,o,t[i+11],22,-1990404162),o=this.md5ff(o,u,c,l,t[i+12],7,1804603682),l=this.md5ff(l,o,u,c,t[i+13],12,-40341101),c=this.md5ff(c,l,o,u,t[i+14],17,-1502002290),u=this.md5ff(u,c,l,o,t[i+15],22,1236535329),o=this.md5gg(o,u,c,l,t[i+1],5,-165796510),l=this.md5gg(l,o,u,c,t[i+6],9,-1069501632),c=this.md5gg(c,l,o,u,t[i+11],14,643717713),u=this.md5gg(u,c,l,o,t[i],20,-373897302),o=this.md5gg(o,u,c,l,t[i+5],5,-701558691),l=this.md5gg(l,o,u,c,t[i+10],9,38016083),c=this.md5gg(c,l,o,u,t[i+15],14,-660478335),u=this.md5gg(u,c,l,o,t[i+4],20,-405537848),o=this.md5gg(o,u,c,l,t[i+9],5,568446438),l=this.md5gg(l,o,u,c,t[i+14],9,-1019803690),c=this.md5gg(c,l,o,u,t[i+3],14,-187363961),u=this.md5gg(u,c,l,o,t[i+8],20,1163531501),o=this.md5gg(o,u,c,l,t[i+13],5,-1444681467),l=this.md5gg(l,o,u,c,t[i+2],9,-51403784),c=this.md5gg(c,l,o,u,t[i+7],14,1735328473),u=this.md5gg(u,c,l,o,t[i+12],20,-1926607734),o=this.md5hh(o,u,c,l,t[i+5],4,-378558),l=this.md5hh(l,o,u,c,t[i+8],11,-2022574463),c=this.md5hh(c,l,o,u,t[i+11],16,1839030562),u=this.md5hh(u,c,l,o,t[i+14],23,-35309556),o=this.md5hh(o,u,c,l,t[i+1],4,-1530992060),l=this.md5hh(l,o,u,c,t[i+4],11,1272893353),c=this.md5hh(c,l,o,u,t[i+7],16,-155497632),u=this.md5hh(u,c,l,o,t[i+10],23,-1094730640),o=this.md5hh(o,u,c,l,t[i+13],4,681279174),l=this.md5hh(l,o,u,c,t[i],11,-358537222),c=this.md5hh(c,l,o,u,t[i+3],16,-722521979),u=this.md5hh(u,c,l,o,t[i+6],23,76029189),o=this.md5hh(o,u,c,l,t[i+9],4,-640364487),l=this.md5hh(l,o,u,c,t[i+12],11,-421815835),c=this.md5hh(c,l,o,u,t[i+15],16,530742520),u=this.md5hh(u,c,l,o,t[i+2],23,-995338651),o=this.md5ii(o,u,c,l,t[i],6,-198630844),l=this.md5ii(l,o,u,c,t[i+7],10,1126891415),c=this.md5ii(c,l,o,u,t[i+14],15,-1416354905),u=this.md5ii(u,c,l,o,t[i+5],21,-57434055),o=this.md5ii(o,u,c,l,t[i+12],6,1700485571),l=this.md5ii(l,o,u,c,t[i+3],10,-1894986606),c=this.md5ii(c,l,o,u,t[i+10],15,-1051523),u=this.md5ii(u,c,l,o,t[i+1],21,-2054922799),o=this.md5ii(o,u,c,l,t[i+8],6,1873313359),l=this.md5ii(l,o,u,c,t[i+15],10,-30611744),c=this.md5ii(c,l,o,u,t[i+6],15,-1560198380),u=this.md5ii(u,c,l,o,t[i+13],21,1309151649),o=this.md5ii(o,u,c,l,t[i+4],6,-145523070),l=this.md5ii(l,o,u,c,t[i+11],10,-1120210379),c=this.md5ii(c,l,o,u,t[i+2],15,718787259),u=this.md5ii(u,c,l,o,t[i+9],21,-343485551),o=this.safeAdd(o,n),u=this.safeAdd(u,a),c=this.safeAdd(c,r),l=this.safeAdd(l,s);return[o,u,c,l]},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),u=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 u*=6378136.49,u=Math.round(1e4*u)/1e4,parseFloat(u.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 u=e.result,c={address:u.address||null,latitude:u.location&&u.location.lat||null,longitude:u.location&&u.location.lng||null,adcode:u.ad_info&&u.ad_info.adcode||null,city:u.address_component&&u.address_component.city||null,district:u.address_component&&u.address_component.district||null,nation:u.address_component&&u.address_component.nation||null,province:u.address_component&&u.address_component.province||null,street:u.address_component&&u.address_component.street||null,street_number:u.address_component&&u.address_component.street_number||null,recommend:u.formatted_addresses&&u.formatted_addresses.recommend||null,rough:u.formatted_addresses&&u.formatted_addresses.rough||null};if(u.pois){var l=u.pois,d=[];for(r=0;r<l.length;r++)d.push({id:l[r].id||null,title:l[r].title||null,latitude:l[r].location&&l[r].location.lat||null,longitude:l[r].location&&l[r].location.lng||null,address:l[r].address||null,category:l[r].category||null,adcode:l[r].ad_info&&l[r].ad_info.adcode||null,city:l[r].ad_info&&l[r].ad_info.city||null,district:l[r].ad_info&&l[r].ad_info.district||null,province:l[r].ad_info&&l[r].ad_info.province||null});t.success(e,{reverseGeocoderResult:u,reverseGeocoderSimplify:c,pois:l,poisSimplify:d})}else t.success(e,{reverseGeocoderResult:u,reverseGeocoderSimplify:c})}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],h=e.result[2];t.success(e,{provinceResult:g,cityResult:v,districtResult:h})}else if("getDistrictByCityId"==i){var m=e.result[0];t.success(e,m)}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=c.getLocationParam(t.location);e(s)}}else a.getWXLocation(e,i,n)}},l=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||{},c.polyfillParam(t),c.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);c.locationProcess(t,(function(s){a&&!r?(e.boundary="region("+a+","+n+","+s.latitude+","+s.longitude+")",t.sig&&(e.sig=c.getSig(e,t.sig,"search"))):r&&!a?(e.boundary="rectangle("+r+")",t.sig&&(e.sig=c.getSig(e,t.sig,"search"))):(e.boundary="nearby("+s.latitude+","+s.longitude+","+i+","+n+")",t.sig&&(e.sig=c.getSig(e,t.sig,"search"))),wx.request(c.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/place/v1/search",data:e},"search"))}))}}},{key:"getSuggestion",value:function(t){if(t=t||{},c.polyfillParam(t),c.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){c.locationProcess(t,(function(i){e.location=i.latitude+","+i.longitude,t.sig&&(e.sig=c.getSig(e,t.sig,"suggest")),wx.request(c.buildWxRequestConfig(t,{url:o,data:e},"suggest"))}))}else t.sig&&(e.sig=c.getSig(e,t.sig,"suggest")),wx.request(c.buildWxRequestConfig(t,{url:o,data:e},"suggest"))}}},{key:"reverseGeocoder",value:function(t){t=t||{},c.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);c.locationProcess(t,(function(i){e.location=i.latitude+","+i.longitude,t.sig&&(e.sig=c.getSig(e,t.sig,"reverseGeocoder")),wx.request(c.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/geocoder/v1/",data:e},"reverseGeocoder"))}))}},{key:"geocoder",value:function(t){if(t=t||{},c.polyfillParam(t),!c.checkParamKeyEmpty(t,"address")){var e={address:t.address,output:"json",key:this.key};t.region&&(e.region=t.region),t.sig&&(e.sig=c.getSig(e,t.sig,"geocoder")),wx.request(c.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/geocoder/v1/",data:e},"geocoder"))}}},{key:"getCityList",value:function(t){t=t||{},c.polyfillParam(t);var e={output:"json",key:this.key};t.sig&&(e.sig=c.getSig(e,t.sig,"getCityList")),wx.request(c.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/district/v1/list",data:e},"getCityList"))}},{key:"getDistrictByCityId",value:function(t){if(t=t||{},c.polyfillParam(t),!c.checkParamKeyEmpty(t,"id")){var e={id:t.id||"",output:"json",key:this.key};t.sig&&(e.sig=c.getSig(e,t.sig,"getDistrictByCityId")),wx.request(c.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/district/v1/getchildren",data:e},"getDistrictByCityId"))}}},{key:"calculateDistance",value:function(t){if(t=t||{},c.polyfillParam(t),!c.checkParamKeyEmpty(t,"to")){var e={mode:t.mode||"walking",to:c.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=c.getEndLocation(e.to),a={message:"query ok",result:{elements:[]},status:0},r=0;r<n.length;r++)a.result.elements.push({distance:c.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})};c.locationProcess(t,i)}else{i=function(i){e.from=i.latitude+","+i.longitude,t.sig&&(e.sig=c.getSig(e,t.sig,"calculateDistance")),wx.request(c.buildWxRequestConfig(t,{url:"https://apis.map.qq.com/ws/distance/v1/",data:e},"calculateDistance"))};c.locationProcess(t,i)}}}},{key:"direction",value:function(t){if(t=t||{},c.polyfillParam(t),!c.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||u.driving,i="https://apis.map.qq.com/ws/direction/v1/"+t.mode,t.from&&(t.location=t.from),t.mode==u.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==u.transit&&(t.departure_time&&(e.departure_time=t.departure_time),t.policy&&(e.policy=t.policy));c.locationProcess(t,(function(n){e.from=n.latitude+","+n.longitude,t.sig&&(e.sig=c.getSig(e,t.sig,"direction",t.mode)),wx.request(c.buildWxRequestConfig(t,{url:i,data:e},"direction"))}))}}}]),t}();t.exports=l},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},edc5: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 */.item_wrapper[data-v-c43e0858]{background:#fff;padding:%?30?%;margin-top:%?20?%;border-radius:%?20?%}.item_wrapper .title_wrapper .tit[data-v-c43e0858]{width:%?360?%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item_wrapper .title_wrapper .stateBtn[data-v-c43e0858]{color:#fff;font-size:%?22?%;border-radius:%?20?%;padding:%?5?% %?20?%}.item_wrapper .item_ct[data-v-c43e0858]{margin:%?20?% 0 %?10?%}.item_wrapper .item_ct .right_img[data-v-c43e0858]{border-radius:%?8?%;width:%?200?%;height:%?125?%}.item_wrapper .item_ct .ct_right[data-v-c43e0858]{margin-left:%?32?%;width:60%}.item_wrapper .orderBtn[data-v-c43e0858]{color:#c79d53;font-size:%?24?%!important;border-radius:%?8?%;border:1px solid #c79d53!important;padding:%?5?% %?20?%}.info[data-v-c43e0858]{padding:%?20?% 0;border-bottom:1px solid #f2f2f2}.copy[data-v-c43e0858]{width:%?64?%;height:%?32?%;border-radius:%?4?%;border:%?1?% solid #b8b8b8}.bg-green[data-v-c43e0858]{background:green}.bg-orange[data-v-c43e0858]{background:orange}.bg-gradual-purple[data-v-c43e0858]{background:linear-gradient(purple,#fff)}.bg-grey[data-v-c43e0858]{background:grey}.clearBtnStyle[data-v-c43e0858]{border:none!important;background:none!important;width:auto;line-height:1.5556!important;color:#666;font-size:16px!important}.clearBtnStyle[data-v-c43e0858]::after{border:none}',""]),t.exports=e}}]);