airportPickup-chooseFlight.639517c8.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["airportPickup-chooseFlight"],{"26e0":function(t,i,a){"use strict";a.d(i,"b",(function(){return e})),a.d(i,"c",(function(){return n})),a.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{staticClass:"container"},[a("v-uni-view",{staticClass:"card"},[1===t.activeTab?a("v-uni-view",{staticClass:"tab-content"},[a("v-uni-view",{staticClass:"row"},[a("v-uni-view",{staticClass:"col"},[a("v-uni-text",{staticClass:"label"},[t._v("航班号")]),a("v-uni-input",{staticClass:"value",attrs:{type:"text",placeholder:"FM863","placeholder-style":"font-weight:400;font-size: 16px;"},on:{input:function(i){arguments[0]=i=t.$handleEvent(i),t.flightNumber=i.target.value.toUpperCase()}},model:{value:t.flightNumber,callback:function(i){t.flightNumber=i},expression:"flightNumber"}})],1)],1),a("v-uni-view",{staticClass:"row date-row"},[a("v-uni-text",{staticClass:"label"},[t._v("起飞日期(当地时间)")]),a("v-uni-picker",{attrs:{mode:"date",value:t.flightDate,start:t.startDate,end:t.endDate},on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.handleFlightDateChange.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"date",style:{color:t.flightDate?"black":"#808080",fontWeight:t.flightDate?"600":"400"}},[t._v(t._s(t.flightDate||"请选择日期"))])],1)],1),a("v-uni-button",{staticClass:"query-btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.query.apply(void 0,arguments)}}},[t._v("查询")])],1):t._e()],1),a("v-uni-view",{staticClass:"tips"},[a("v-uni-view",[t._v("①如有中转,请填写未班航班的信息")]),a("v-uni-view",[t._v("②降落的机场由航班信息获取,便于司机根据航班动态信息准时接送您")])],1),t.showDropoffPopup?a("v-uni-view",{staticClass:"popup-mask"},[a("v-uni-view",{staticClass:"popup-content"},[a("v-uni-view",{staticClass:"popup-navbar"},[a("v-uni-image",{staticStyle:{width:"40rpx",height:"40rpx"},attrs:{src:t.statics.close},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.showDropoffPopup=!1}}}),a("v-uni-text",{staticClass:"popup-title"},[t._v("选择机场")])],1),a("v-uni-view",{staticStyle:{padding:"24rpx"}},[a("v-uni-view",{staticClass:"mb15 ml4 flex alcenter"},[t._v(t._s(t.flightNumber)),a("span",{staticStyle:{color:"#dbdbdb",margin:"0px 10px 3px 10px"}},[t._v("|")]),t._v(t._s(t.flightDate))]),t._l(t.flightList,(function(i,e){return a("v-uni-view",{key:e,staticClass:"flight-card",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.choose(i)}}},[a("v-uni-view",{staticClass:"flight-header"},[a("v-uni-text",{staticClass:"flight-company"},[t._v(t._s(i.airline)+" "+t._s(i.flightNo))])],1),a("v-uni-view",{staticClass:"flight-info"},[a("v-uni-view",{staticClass:"flight-col"},[a("v-uni-text",{staticClass:"flight-airport"},[t._v(t._s(i.departAirport))]),a("v-uni-text",{staticClass:"flight-time"},[t._v(t._s(i.departTime))])],1),a("v-uni-image",{staticStyle:{height:"10rpx",width:"130rpx"},attrs:{src:t.statics.longArrows}}),a("v-uni-view",{staticClass:"flight-col"},[a("v-uni-text",{staticClass:"flight-airport"},[t._v(t._s(i.arriveAirport))]),a("v-uni-text",{staticClass:"flight-time"},[t._v(t._s(i.arriveTime))])],1)],1)],1)}))],2)],1)],1):t._e()],1)},n=[]},"2f18":function(t,i,a){var e=a("a3fce");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("967d").default;n("7c3cad3d",e,!0,{sourceMap:!1,shadowMode:!1})},"5c0b":function(t,i,a){"use strict";a("6a54");var e=a("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.transferList=i.transferEdit=i.submitAndPay=i.getVehicle=i.getFlight=i.getDetail=i.getAirportPickupListApi=i.dict=i.airportList=void 0;var n=e(a("7653"));i.getVehicle=function(t){return n.default.post("api/user.airportTransfer.query/vehicle",t)};i.transferList=function(t){return n.default.post("api/user.traveler/transferList",t)};i.transferEdit=function(t){return n.default.post("api/user.traveler/transferEdit",t)};i.dict=function(t){return n.default.post("api/user.airportTransfer.order/dict",t)};i.submitAndPay=function(t){return n.default.post("api/user.airportTransfer.order/submitAndPay",t)};i.getFlight=function(t){return n.default.post("api/user.airportTransfer.query/flight",t)};i.getDetail=function(t){return n.default.post("api/user.airportTransfer.order/detail",t)};i.getAirportPickupListApi=function(t){return n.default.post("api/user.airportTransfer.order/list",t)};i.airportList=function(t){return n.default.post("api/user.airportTransfer.query/airportList",t)}},"72c5":function(t,i,a){"use strict";a("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,a("f7a5"),a("d4b5");a("419c");var e=a("5c0b"),n=a("e0a2"),r={data:function(){return{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"},loading:!1,activeTab:1,flightNumber:"",showDropoffPopup:!1,flightDate:"",startDate:(new Date).toISOString().slice(0,10),endDate:"9999-12-31",flightList:[]}},onLoad:function(){},methods:{choose:function(t){var i=escape(JSON.stringify(t));uni.redirectTo({url:"/airportPickup/index?item="+i})},query:function(){var t=this;return 1!=this.loading&&(""===this.flightNumber?(uni.showModal({title:"提示",content:"请输入航班号"}),!1):""===this.flightDate?(uni.showModal({title:"提示",content:"请选择航班日期"}),!1):(this.loading=!0,uni.showLoading(),void(0,e.getFlight)({flight_no:this.flightNumber,query_type:1,query_date:this.flightDate}).then((function(i){uni.hideLoading(),t.flightList=i,0===t.flightList.length?uni.showModal({title:"提示",content:"暂无相关航班信息",showCancel:!1,success:function(){t.loading=!1}}):(t.showDropoffPopup=!0,t.loading=!1)})).catch((function(i){uni.hideLoading(),t.loading=!1,"请重新登录"==i.msg||uni.showModal({title:"提示",content:i.msg||"航班信息获取失败",showCancel:!1})}))))},handleFlightDateChange:function(t){this.flightDate=t.detail.value}}};i.default=r},"742c":function(t,i,a){"use strict";a.r(i);var e=a("72c5"),n=a.n(e);for(var r in e)["default"].indexOf(r)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(r);i["default"]=n.a},a3fce:function(t,i,a){var e=a("c86c");i=e(!1),i.push([t.i,'.container[data-v-e0744626]{background:#f8f8f8;min-height:100vh;padding:%?20?%}.card[data-v-e0744626]{background:#fff;border-radius:%?20?%;box-shadow:0 %?4?% %?24?% rgba(0,0,0,.03);margin-bottom:%?32?%}.tab-bar[data-v-e0744626]{display:flex;background:#fff;border-radius:%?16?% %?16?% 0 0;overflow:hidden}.tab[data-v-e0744626]{flex:1;text-align:center;padding:%?24?% 0;font-size:%?32?%;color:#888;background:#fff;position:relative;font-weight:400}.tab.active[data-v-e0744626]{color:#222;font-weight:700}.tab.active[data-v-e0744626]::after{content:"";display:block;width:%?60?%;height:%?8?%;background:#ffd43c;border-radius:%?4?%;margin:0 auto;margin-top:%?8?%}.tab-content[data-v-e0744626]{padding:%?32?% %?24?% %?24?% %?24?%}.row[data-v-e0744626]{display:flex;align-items:center;margin-bottom:%?32?%;padding-bottom:%?32?%;justify-content:space-between;border-bottom:1px solid #f0f0f0}.col[data-v-e0744626]{display:flex;flex-direction:column;align-items:flex-start}.icon[data-v-e0744626]{width:%?48?%;height:%?48?%}.label[data-v-e0744626]{font-size:%?28?%;color:#888;margin-bottom:%?8?%}.value[data-v-e0744626]{font-size:%?36?%;color:#222;font-weight:700}.date-row[data-v-e0744626]{flex-direction:column;align-items:flex-start;border-bottom:none;margin-bottom:0;padding-bottom:0}.date[data-v-e0744626]{font-size:%?32?%;color:grey;margin-top:%?8?%}.query-btn[data-v-e0744626]{width:100%;margin:%?48?% auto 0 auto;background:#ffd43c;color:#222;font-size:%?36?%;font-weight:700;border-radius:%?16?%;height:%?88?%;line-height:%?88?%;display:block;box-shadow:0 %?8?% %?24?% rgba(255,212,60,.15);border:none}.tips[data-v-e0744626]{margin:%?48?% %?32?% 0 %?32?%;color:#888;font-size:%?26?%;line-height:1.8}\r\n/* 弹窗样式 */.popup-mask[data-v-e0744626]{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.15);z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.popup-content[data-v-e0744626]{width:100vw;background:#f8f8f8;min-height:100vh;position:relative}.popup-navbar[data-v-e0744626]{display:flex;align-items:center;height:%?88?%;padding:0 %?32?%;background:#fff;border-bottom:%?1?% solid #eee}.popup-title[data-v-e0744626]{flex:1;text-align:center;font-size:%?36?%;font-weight:700}.popup-card[data-v-e0744626]{margin:%?32?% auto 0 auto;width:92vw;background:#f2f2f2;border-radius:%?40?%;display:flex;align-items:center;padding:0 %?24?%;height:%?80?%}.dot[data-v-e0744626]{width:%?16?%;height:%?16?%;background:#f80;border-radius:50%;margin-right:%?18?%}.city-input[data-v-e0744626]{flex:1;background:transparent;border:none;font-size:%?30?%;color:#888}.divider[data-v-e0744626]{width:%?2?%;height:%?36?%;background:#e0e0e0;margin:0 %?18?%}.address-input[data-v-e0744626]{flex:2;background:transparent;border:none;font-size:%?30?%;color:#888}.flight-card[data-v-e0744626]{margin-top:%?24?%;background:#fff;border-radius:%?20?%;box-shadow:0 %?4?% %?24?% rgba(0,0,0,.08);padding:%?24?%}.flight-header[data-v-e0744626]{display:flex;align-items:center;margin-bottom:%?24?%}.flight-logo[data-v-e0744626]{width:%?48?%;height:%?48?%;margin-right:%?16?%}.flight-company[data-v-e0744626]{font-size:%?32?%;font-weight:700}.flight-info[data-v-e0744626]{display:flex;align-items:center;justify-content:space-between}.flight-col[data-v-e0744626]{display:flex;flex-direction:column;align-items:flex-start}.flight-airport[data-v-e0744626]{font-size:%?24?%;color:#222;margin-bottom:%?8?%}.flight-time[data-v-e0744626]{font-size:%?42?%;font-weight:600}.flight-arrow[data-v-e0744626]{flex:1;display:flex;font-size:%?32?%;color:#888;margin:0 %?16?%}',""]),t.exports=i},a68d:function(t,i,a){"use strict";var e=a("2f18"),n=a.n(e);n.a},d3be:function(t,i,a){"use strict";a.r(i);var e=a("26e0"),n=a("742c");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(r);a("a68d");var s=a("828b"),o=Object(s["a"])(n["default"],e["b"],e["c"],!1,null,"e0744626",null,!1,e["a"],void 0);i["default"]=o.exports}}]);