Commit 0f0ccc58 authored by youjie's avatar youjie

no message

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