Commit 34b4a7d3 authored by youjie's avatar youjie

酒店列表

parent 202f43a3
...@@ -157,12 +157,8 @@ export default { ...@@ -157,12 +157,8 @@ export default {
}, (res) => { }, (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.guestInfor = res.data; this.guestInfor = res.data;
if(this.guestInfor.guest.length==1){ if(this.guestInfor.guest&&this.guestInfor.guest.length==1){
this.isGuest = true this.isGuest = true
}
if(this.guestInfor.guest&&
this.guestInfor.guest.length>0&&
this.guestInfor.guest.length==1){
this.msg.Id = this.guestInfor.guest[0].Id; this.msg.Id = this.guestInfor.guest[0].Id;
this.msg.OrderId = this.guestInfor.guest[0].OrderId; this.msg.OrderId = this.guestInfor.guest[0].OrderId;
this.msg.Phone = this.guestInfor.guest[0].MobilePhone; this.msg.Phone = this.guestInfor.guest[0].MobilePhone;
......
...@@ -444,9 +444,9 @@ ...@@ -444,9 +444,9 @@
}, },
sureAddress(msg){ sureAddress(msg){
this.showCityList = false; this.showCityList = false;
if(this.parameters.CityCode2!=msg.CityCode2){ if(this.parameters.CityCode!=msg.CityCode2){
this.parameters.GName = msg.GName this.parameters.GName = msg.GName
this.parameters.CityCode2 = msg.CityCode2 this.parameters.CityCode = this.parameters.CityCode2 = msg.CityCode2
this.getRegion() this.getRegion()
this.city = this.parameters.CityName = msg.CityName this.city = this.parameters.CityName = msg.CityName
this.research() this.research()
......
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