(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["airportPickup-index"],{"10c1":function(t,e,a){"use strict";var i=a("e2ed"),s=a.n(i);s.a},"2e1a":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i(a("5de6")),r=i(a("39d8"));a("f7a5"),a("5ef2"),a("64aa"),a("fd3c"),a("d4b5"),a("aa9c"),a("c223"),a("795c"),a("c9b5"),a("bf0f"),a("ab80");var o=i(a("e9ee")),n=a("a69d"),d=a("5c0b"),l=a("e0a2"),c={components:{AddressSelectModal:o.default},data:function(){var t;return t={statics:{airportPickup:{BJ:l.staticUrl+"api/images/20250506/images_1746500677.png",JC:l.staticUrl+"api/images/20250506/images_1746511575.png",XC:l.staticUrl+"api/images/20250506/images_1746511750.png",RS:l.staticUrl+"api/images/20250506/images_1746511903.png",SC:l.staticUrl+"api/images/20250506/images_1746511946.png",QFJC:l.staticUrl+"api/images/20250506/images_1746512011.png",YCSJ:l.staticUrl+"api/images/20250506/images_1746512069.png",ZH:l.staticUrl+"api/images/20250506/images_1746514168.png",REN:l.staticUrl+"api/images/20250506/images_1746532228.png",XINGLI:l.staticUrl+"api/images/20250506/images_1746532319.png",choose:l.staticUrl+"api/images/20250515/images_1747289637.png",unChoose:l.staticUrl+"api/images/20250515/images_1747289603.png",QIDIAN:l.staticUrl+"api/images/20250508/images_1746688051.png",ZHONGDIAN:l.staticUrl+"api/images/20250508/images_1746688119.png"},right:l.staticUrl+"api/images/20250506/images_1746512926.png",close:l.staticUrl+"api/images/20250506/images_1746517832.png",back:l.staticUrl+"api/images/20250506/images_1746518147.png",longArrows:l.staticUrl+"api/images/20250506/images_1746521912.png",SPListBG:l.staticUrl+"api/images/20250512/images_1747047121.png",SPList:l.staticUrl+"api/images/20250512/images_1747047340.png"},showDropoffPopup:!1,formData:{child:"",adults:4,flight_id:"",user_address_id:""},formData1:{child:"",adults:4,flight_id:"",date:"",time:""},tabs:[{name:"去机场接您"},{name:"送您去机场"}],currentTab:0,flight:"",flight1:"",choosePeoples:!1,showChooseAddressModal:!1,showChooseSendAddressModal:!1,addressList:[]},(0,r.default)(t,"showChooseAddressModal",!1),(0,r.default)(t,"currentSelectAddressId",""),(0,r.default)(t,"deliveryInfo",{delivery:{address:"",username:"",mobile:"",deliveryTime:""}}),(0,r.default)(t,"address1",{address:"",username:"",mobile:"",deliveryTime:""}),(0,r.default)(t,"flightList",[]),(0,r.default)(t,"startDate",(new Date).toISOString().slice(0,10)),(0,r.default)(t,"endDate","9999-12-31"),(0,r.default)(t,"dateArray",[]),(0,r.default)(t,"timeArray",[]),(0,r.default)(t,"dateIndex",0),(0,r.default)(t,"timeIndex",0),t},onLoad:function(t){this.initDateTimeArrays()},onShow:function(){var t=uni.getStorageSync("flightFall"),e=uni.getStorageSync("flightRise");console.log("rise",e),console.log("fall",t),uni.setStorageSync("flightRise",""),uni.setStorageSync("flightFall",""),t&&(this.flight=JSON.parse(unescape(t)),this.formData.flight_id=this.flight.id),e&&(this.flight1=JSON.parse(unescape(e)),this.formData1.date=this.flight1.use_time.split(" ")[0],this.formData1.time=this.flight1.use_time.split(" ")[1],this.formData1.flight_id=this.flight1.id,console.log("flight1",this.dateArray,this.timeArray),this.dateIndex=-1==this.dateArray.indexOf(this.formData1.date)?0:this.dateArray.indexOf(this.formData1.date),this.updateTimeArray(),this.timeIndex=-1==this.timeArray.indexOf(this.formData1.time)?0:this.timeArray.indexOf(this.formData1.time),console.log("flight2",this.dateArray,this.timeArray))},onBackPress:function(t){if("backbutton"===t.from||"navigateBack"===t.from)return uni.redirectTo({url:"/pages/index/index"}),!0},methods:{choose:function(t){this.flight1=t,this.showDropoffPopup=!1},query:function(){var t=this;uni.showLoading(),(0,d.airportList)().then((function(e){uni.hideLoading(),t.flightList=e,0===t.flightList.length?uni.showModal({title:"提示",content:"暂无机场信息",showCancel:!1}):t.showDropoffPopup=!0})).catch((function(t){uni.hideLoading(),"请重新登录"==t.msg||uni.showModal({title:"提示",content:t.msg||"航班信息获取失败",showCancel:!1})}))},handleAddressClickEvent:function(t){var e=this.addressList[t];1===this.currentTab?(this.formData1.user_address_id=e.id,this.address1.address=e.address,this.address1.username=e.username,this.address1.mobile=e.mobile,this.currentSelectAddressId=e.id,this.formData1.longitude=Number(e.latitude),this.formData1.latitude=Number(e.longitude)):(this.formData.user_address_id=e.id,this.deliveryInfo.delivery.address=e.address,this.deliveryInfo.delivery.username=e.username,this.deliveryInfo.delivery.mobile=e.mobile,this.currentSelectAddressId=e.id,this.formData.longitude=Number(e.latitude),this.formData.latitude=Number(e.longitude))},getAddressList:function(){var t=this;if(1==this.loading)return!1;this.loading=!0,uni.showLoading(),(0,n.getUserAddressListApi)().then((function(e){uni.hideLoading(),t.loading=!1;var a=e.addresses;a&&(t.addressList=a.map((function(t){return{id:t.id,username:t.realname,mobile:t.mobile,sex:t.sex,address:t.address+t.number,number:t.number,longitude:t.location_x,latitude:t.location_y}})))})).catch((function(e){uni.hideLoading(),t.loading=!1,t.addressList=[],"请重新登录"==e.msg?t.isLogin=!1:uni.showModal({title:"提示",content:e.msg||"获取地址信息失败",showCancel:!1})}))},selectAddress:function(){this.getAddressList(),this.showChooseAddressModal=!0},addEditAddressEvent:function(){this.currentSelectAddressId="",this.showChooseAddressModal=!1},goto:function(t){if("/airportPickup/chooseCard"==t)if(1===this.currentTab){var e,a,i,s,r,o;if(""===this.address1.address)return uni.showModal({title:"提示",content:"请选择上车地址"}),!1;if(""===this.flight1)return uni.showModal({title:"提示",content:"请选择起飞机场"}),!1;if(""===this.formData1.date)return uni.showModal({title:"提示",content:"请选择用车时间"}),!1;this.formData1.order_type=1===this.currentTab?2:1,this.formData1.airport_name=this.flight1.arriveAirport,this.formData1.arriveAddress=this.address1.address,this.formData1.airportLatitude=Number(null!==(e=null===(a=this.flight1)||void 0===a||null===(i=a.airport_address)||void 0===i?void 0:i.location_x)&&void 0!==e?e:0),this.formData1.airportlongitude=Number(null!==(s=null===(r=this.flight1)||void 0===r||null===(o=r.airport_address)||void 0===o?void 0:o.location_y)&&void 0!==s?s:0),this.formData1.use_datetime=this.formData1.date+" "+this.formData1.time,this.formData1.airport_address_id=this.flight1.departAirportId,this.formData1.username=this.address1.username,this.formData1.mobile=this.address1.mobile,this.formData1.flight_id=this.flight1.id;var n=escape(JSON.stringify(this.formData1));uni.navigateTo({url:"/airportPickup/chooseCard?data="+n})}else{var d,l,c,u,f,h;if(""===this.flight)return uni.showModal({title:"提示",content:"请选择降落机场"}),!1;if(""===this.deliveryInfo.delivery.address)return uni.showModal({title:"提示",content:"请选择下车地址"}),!1;if(""===this.formData.child&&""===this.formData.adults)return uni.showModal({title:"提示",content:"请填写出行人数"}),!1;this.formData.order_type=1===this.currentTab?2:1,this.formData.date=this.flight.date,this.formData.time=this.flight.arriveTime,this.formData.arriveAirport=this.flight.arriveAirport,this.formData.arriveAddress=this.deliveryInfo.delivery.address,this.formData.airportLatitude=Number(null!==(d=null===(l=this.flight)||void 0===l||null===(c=l.airport_address)||void 0===c?void 0:c.location_x)&&void 0!==d?d:0),this.formData.airportlongitude=Number(null!==(u=null===(f=this.flight)||void 0===f||null===(h=f.airport_address)||void 0===h?void 0:h.location_y)&&void 0!==u?u:0),this.formData.username=this.deliveryInfo.delivery.username,this.formData.mobile=this.deliveryInfo.delivery.mobile;var m=escape(JSON.stringify(this.formData));uni.navigateTo({url:"/airportPickup/chooseCard?data="+m})}else uni.navigateTo({url:t})},changeTabs:function(t){this.currentTab=t},chooseDropoff:function(){},choosePickup:function(){},chooseAirport:function(){},chooseTime:function(){},choosePeople:function(){},onQuery:function(){},handleDateChange:function(t){this.formData1.date=t.detail.value},initDateTimeArrays:function(){for(var t=[],e=new Date,a=0;a<30;a++){var i=new Date(e);i.setDate(e.getDate()+a),t.push(i.toISOString().slice(0,10))}this.dateArray=t,this.updateTimeArray()},updateTimeArray:function(){for(var t=[],e=new Date,a=this.dateArray[this.dateIndex],i=a===e.toISOString().slice(0,10),s=i?e.getHours():0,r=i?30*Math.ceil(e.getMinutes()/30):0,o=s;o<24;o++)for(var n=0;n<60;n+=30)if(!(i&&o===s&&n1?arguments[1]:void 0)}})},85575:function(t,e,a){"use strict";a.r(e);var i=a("6e4f"),s=a("96f0");for(var r in s)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return s[t]}))}(r);a("10c1");var o=a("828b"),n=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,"5b5afedb",null,!1,i["a"],void 0);e["default"]=n.exports},"96f0":function(t,e,a){"use strict";a.r(e);var i=a("2e1a"),s=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=s.a},b0d0:function(t,e,a){var i=a("c86c");e=i(!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 */.bottom-modal[data-v-69544bca]{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:99998\n /* mask */\n /* close-btn */\n /* wrapper */}.bottom-modal__mask[data-v-69544bca]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);opacity:0;-webkit-animation:showMask-data-v-69544bca .25s ease .1s forwards;animation:showMask-data-v-69544bca .25s ease .1s forwards}.bottom-modal__mask.transparent[data-v-69544bca]{background-color:transparent}.bottom-modal__close-btn[data-v-69544bca]{position:absolute;top:%?30?%;right:%?30?%;z-index:99999}.bottom-modal__wrapper[data-v-69544bca]{position:absolute;left:0;bottom:0;width:100%;background-color:#fff;border-radius:%?20?% %?20?% %?0?% %?0?%;padding:%?40?%;padding-top:%?60?%;padding-bottom:%?40?%;padding-bottom:calc(constant(safe-area-inset-bottom) + %?40?%);padding-bottom:calc(env(safe-area-inset-bottom) + %?40?%);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-animation:showWrapper-data-v-69544bca .25s ease .1s forwards;animation:showWrapper-data-v-69544bca .25s ease .1s forwards;z-index:99999;overflow:hidden}.bottom-modal__wrapper.no-padding[data-v-69544bca]{padding:%?0?%;padding-bottom:%?40?%;padding-bottom:calc(constant(safe-area-inset-bottom) + %?40?%);padding-bottom:calc(env(safe-area-inset-bottom) + %?40?%)}@-webkit-keyframes showMask-data-v-69544bca{0%{opacity:0}100%{opacity:1}}@keyframes showMask-data-v-69544bca{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes showWrapper-data-v-69544bca{0%{-webkit-transform:scaleY(0);transform:scaleY(0)}100%{-webkit-transform:scaleY(1);transform:scaleY(1)}}@keyframes showWrapper-data-v-69544bca{0%{-webkit-transform:scaleY(0);transform:scaleY(0)}100%{-webkit-transform:scaleY(1);transform:scaleY(1)}}',""]),t.exports=e},c05a:function(t,e,a){"use strict";var i=a("db1f"),s=a.n(i);s.a},db04:function(t,e,a){"use strict";var i=a("bb80"),s=a("c435"),r=a("9e70"),o=a("f298"),n=a("862c"),d=i(o),l=i("".slice),c=Math.ceil,u=function(t){return function(e,a,i){var o,u,f=r(n(e)),h=s(a),m=f.length,p=void 0===i?" ":r(i);return h<=m||""===p?f:(o=h-m,u=d(p,c(o/p.length)),u.length>o&&(u=l(u,0,o)),t?f+u:u+f)}};t.exports={start:u(!1),end:u(!0)}},db1f:function(t,e,a){var i=a("b0d0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("967d").default;s("61c6eb68",i,!0,{sourceMap:!1,shadowMode:!1})},dc1f:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},computed:{themeBgColor:function(){return this.$isTheme()?"--theme-general-color":this.vuex_themeBgColor||""},themeOpacityBgColor:function(){return this.vuex_themeBgColor?"".concat(this.vuex_themeBgColor,"7F"):""},themeFontColor:function(){return this.$isTheme()?"--general-color-text":this.vuex_themeFontColor||""},themeBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.backgroundColor=this.vuex_themeBgColor),this.vuex_themeFontColor&&(t.color=this.vuex_themeFontColor),this.$isTheme()&&(t.backgroundColor="var(--theme-general-color)",t.color="--general-color-text"),t},themeLineBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.border="1rpx solid ".concat(this.vuex_themeBgColor),t.color=this.vuex_themeBgColor),this.$isTheme()&&(t.border="1rpx solid var(--theme-general-color)",t.color="var(--theme-general-color)"),t}}}},e2ed:function(t,e,a){var i=a("6131");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("967d").default;s("07075330",i,!0,{sourceMap:!1,shadowMode:!1})},e456:function(t,e,a){"use strict";a.r(e);var i=a("48073"),s=a("680d");for(var r in s)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return s[t]}))}(r);a("c05a");var o=a("828b"),n=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,"69544bca",null,!1,i["a"],void 0);e["default"]=n.exports},f298:function(t,e,a){"use strict";var i=a("497b"),s=a("9e70"),r=a("862c"),o=RangeError;t.exports=function(t){var e=s(r(this)),a="",n=i(t);if(n<0||n===1/0)throw new o("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(a+=e);return a}}}]);