Commit 08292bd5 authored by youjie's avatar youjie

优化选日期代码

parent 397fbdb3
......@@ -348,6 +348,7 @@
}
},
btnStart(val){
uni.hideLoading()
if(this.timeType ==1){//出行时间的选择
this.msg.StartTime = val.year+'/'+val.month+'/'+val.day+' '+val.hour+':'+val.minute+':00';
this.STime = val
......
......@@ -242,9 +242,11 @@
return age;
},
setBirthdayHandle(val){
uni.hideLoading()
this.current.BirthDay=`${val.year}/${val.month}/${val.day}`
},
setExpireHandle(val){
uni.hideLoading()
this.current.PassportExpired=`${val.year}/${val.month}/${val.day}`
},
createNewGuest(obj){
......@@ -281,6 +283,7 @@
})
},
setCountryHandle(val){
uni.hideLoading()
this.current.Country=this.countries[val[0]].Name
this.current.CountryId = this.countries[val[0]].ID
this.defaultCountry = val
......
......@@ -434,6 +434,7 @@
});
},
setSaleHandle(val){
uni.hideLoading()
this.createBy=this.sales[val[0]]
},
nativageToOrderHandle(){
......
......@@ -452,6 +452,7 @@ export default {
}
},
confirmOpenTime(r){
uni.hideLoading()
this.msg.LegalIdCardTime=r.year+"-"+r.month+"-"+r.day
},
newMsg(type){
......
......@@ -454,6 +454,7 @@
},
methods: {
setDateHandler(val){
uni.hideLoading();
this.busInfor.time = `${val.year}-${val.month}-${val.day} ${val.hour}:${val.minute}`
this.orderMsg.OrderDate = this.busInfor.time
this.getPrices()
......
......@@ -42,41 +42,37 @@
</label>
</view>
<template v-if="busInfor.CarType==1">
<view class="row items-center bus-input">
<view class="row items-center bus-input" @click="clickAirport">
<text class="bus-inputText"
:style="{color: busInfor.AirportName?'#080A09':'#BCBCBC'}"
@click="clickAirport">
:style="{color: busInfor.AirportName?'#080A09':'#BCBCBC'}">
{{busInfor.AirportName?busInfor.AirportName:busInfor.CarType==1?'出发地:选择机场':'目的地:选择机场'}}
</text>
</view>
<view class="row items-center bus-input">
<view class="row items-center bus-input" @click="getTheCar=1,citiesVisible=true">
<text class="bus-inputText"
:style="{color: busInfor.destination?'#080A09':'#BCBCBC'}"
@click="getTheCar=1,citiesVisible=true">
:style="{color: busInfor.destination?'#080A09':'#BCBCBC'}">
{{busInfor.destination?busInfor.destination:busInfor.CarType==1?'目的地:地址或酒店':'出发地:地址或酒店'}}
</text>
</view>
</template>
<template v-if="busInfor.CarType==2">
<view class="row items-center bus-input">
<view class="row items-center bus-input" @click="getTheCar=3,citiesVisible=true">
<text class="bus-inputText"
:style="{color: busInfor.startaddress?'#080A09':'#BCBCBC'}"
@click="getTheCar=3,citiesVisible=true">
:style="{color: busInfor.startaddress?'#080A09':'#BCBCBC'}">
{{busInfor.startaddress?busInfor.startaddress:busInfor.CarType==1?'目的地:地址或酒店':'出发地:地址或酒店'}}
</text>
</view>
<view class="row items-center bus-input">
<view class="row items-center bus-input" @click="clickAirport">
<text class="bus-inputText"
:style="{color: busInfor.AirportName?'#080A09':'#BCBCBC'}"
@click="clickAirport">
:style="{color: busInfor.AirportName?'#080A09':'#BCBCBC'}">
{{busInfor.AirportName?busInfor.AirportName:busInfor.CarType==1?'出发地:选择机场':'目的地:选择机场'}}
</text>
</view>
</template>
<view class="bus-input row-sbas-n" style="padding:36rpx 18rpx;">
<view class="row">
<text class="bus-inputText" :style="{color: busInfor.time?'#080A09':'#BCBCBC'}" @click="showDateHandle">
<view class="row" @click="showDateHandle">
<text class="bus-inputText" :style="{color: busInfor.time?'#080A09':'#BCBCBC'}">
{{busInfor.time?busInfor.time:'接载时间'}}
</text>
<u-icon name="arrow" :size="32" color="#000" style="position: relative;top: 2rpx;"></u-icon>
......@@ -100,17 +96,15 @@
</view>
</view>
</scroll-view>-->
<view class="row items-center bus-input">
<view class="row items-center bus-input" @click="getTheCar=3,citiesVisible=true">
<text class="bus-inputText"
:style="{color: busInfor.startaddress?'#080A09':'#BCBCBC'}"
@click="getTheCar=3,citiesVisible=true">
:style="{color: busInfor.startaddress?'#080A09':'#BCBCBC'}">
{{busInfor.startaddress?busInfor.startaddress:'出发地:地址或酒店'}}
</text>
</view>
<view class="row items-center bus-input">
<view class="row items-center bus-input" @click="getTheCar=2,citiesVisible=true">
<text class="bus-inputText"
:style="{color: busInfor.destination?'#080A09':'#BCBCBC'}"
@click="getTheCar=2,citiesVisible=true">
:style="{color: busInfor.destination?'#080A09':'#BCBCBC'}">
{{busInfor.destination?busInfor.destination:'目的地:地址或酒店'}}
</text>
</view>
......@@ -524,6 +518,7 @@
// this.getAirportList()
},
setDateHandler(val){
uni.hideLoading()
this.busInfor.time = `${val.year}-${val.month}-${val.day} ${val.hour}:${val.minute}`
this.dateVisible = false
},
......
......@@ -785,6 +785,7 @@
})
},
changeDown(e) {
uni.hideLoading()
let i = [e]
this.orderMsg.PhoneCode = this.countrys[i].PhoneCode
},
......@@ -809,6 +810,7 @@
},
//选择时间
confirm(val) {
uni.hideLoading()
if(!this.timeType){
this.busInfor.time = `${val.year}-${val.month}-${val.day} ${val.hour}:${val.minute}`
this.orderMsg.OrderDate = this.busInfor.time
......
......@@ -909,6 +909,7 @@ export default {
}
},
btnStart(val) {
uni.hideLoading();
if (this.timeType == 1) {
//出行时间的选择
this.msg.StartTime =
......
......@@ -215,7 +215,7 @@
);
},
btnStart(val){
uni.hideLoading()
if(this.timeType==1){
this.qutime=val.hour+":"+val.minute
this.STime.hour = val.hour;
......
......@@ -749,6 +749,7 @@
})
},
changeDown(e) {
uni.hideLoading();
let i = [e]
},
addGuest(index) {
......@@ -792,6 +793,7 @@
},
//选择时间
confirm(val) {
uni.hideLoading();
this.orderMsg.ArrivalTime = val.hour + ':' + val.minute;
},
//计算总价
......
......@@ -804,6 +804,7 @@
);
},
changeBranch(val) {
uni.hideLoading()
this.msg.companyId = this.branchList[val].BId
this.currentBrachName = this.branchList[val].BName
this.CityId = this.branchList[val].CityId;
......@@ -1011,6 +1012,7 @@
},
//获取日期
getStratDate(val) {
uni.hideLoading()
console.log(val, 'val');
},
lower(e) {
......
......@@ -368,6 +368,7 @@
);
},
btnStart(val) {
uni.hideLoading();
this.msg.FoundingTime = val.year+'-'+val.month+'-'+val.day;
},
},
......
......@@ -428,6 +428,7 @@
);
},
confirmOpenTime(r){
uni.hideLoading()
this.model.OpenTime=r.year+"-"+r.month+"-"+r.day
},
......
......@@ -380,6 +380,7 @@
);
},
btnStart(val) {
uni.hideLoading();
this.msg.FoundingTime = val.year + '-' + val.month + '-' + val.day;
},
},
......
......@@ -396,6 +396,7 @@
);
},
btnStart(val) {
uni.hideLoading();
this.msg.FoundingTime = val.year + '-' + val.month + '-' + val.day;
},
......
......@@ -208,6 +208,7 @@
);
},
choosesupplier(val){
uni.hideLoading();
this.msg.SupplierId = this.array[val].ID;
this.SupplierName = this.array[val].Name;
},
......@@ -217,7 +218,7 @@
this.showpicker = true;
},
dateconfirm(val){
uni.hideLoading();
if(this.datetype==1){
let StartTime = val.year +'-'+val.month +'-'+val.day;
......
......@@ -391,7 +391,7 @@ export default {
this.showExpress = true;
},
chosenExpressHandler(i) {
uni.hideLoading();
this.forms.ExpressId = this.expressList[i].ID;
this.forms.expressName = this.expressList[i].Name;
},
......
......@@ -229,6 +229,7 @@ export default {
this.research()
},
changeDown(e,type) {
uni.hideLoading()
let i = e[0]
this.showVisaType = false;
this.showEntryType = false
......
......@@ -1005,6 +1005,7 @@
}, err => {})
},
changeDown(e,type){
uni.hideLoading()
let i = [e]
if(type == 1){
this.customer.count = this.countrys[i].ID
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment