Commit 0f0ccc58 authored by youjie's avatar youjie

no message

parent f0bc32ea
......@@ -357,10 +357,22 @@
},
setType(type){
if(type) {
if(this.busInfor.CarType!=type){
this.busInfor.CarType = type
this.busInfor.startaddress = ''
this.busInfor.destination = ''
this.busInfor.AirportId = null
this.busInfor.AirportName = ''
}
this.getPlaceList()
}else {
if(this.busInfor.CarType!=this.current ){
this.busInfor.CarType = this.current
this.busInfor.startaddress = ''
this.busInfor.destination = ''
this.busInfor.AirportId = null
this.busInfor.AirportName = ''
}
this.getAirportList()
}
},
......@@ -409,8 +421,15 @@
})
},
radioChange(e){
if(this.current!=e){
this.busInfor.CarType = e
this.current = e
this.busInfor.startaddress = ''
this.busInfor.destination = ''
this.busInfor.AirportId = null
this.busInfor.AirportName = ''
}
},
searchHandle(){
if(this.busInfor.CarType<3){
......@@ -428,9 +447,14 @@
}
}
if(this.busInfor.CarType==3){
if(!this.busInfor.CountryId){
if(this.busInfor.startaddress==''){
return uni.showToast({
title: '请选择出发地',
icon: 'none'
})
}else if(this.busInfor.destination==''){
return uni.showToast({
title: '请选择需要包车的国家',
title: '请选择目的地',
icon: 'none'
})
}
......
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