Commit 831e2b4f authored by youjie's avatar youjie

no message

parent c652230a
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
获取手机号 获取手机号
</button> </button>
</template> </template>
</view> </view>
</view> </view>
...@@ -146,6 +145,7 @@ export default { ...@@ -146,6 +145,7 @@ export default {
}, },
// openid获取旅客信息是否填写意见调查 // openid获取旅客信息是否填写意见调查
QueryUsers(){ QueryUsers(){
console.log(this.msg,'----this.msg')
uni.showLoading({ uni.showLoading({
title: "加载中", title: "加载中",
mask: true, mask: true,
...@@ -157,7 +157,7 @@ export default { ...@@ -157,7 +157,7 @@ export default {
}, (res) => { }, (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.guestInfor = res.data; this.guestInfor = res.data;
if(this.guestInfor.guest&&this.guestInfor.guest.length==1){ if(this.guestInfor.guest&&this.guestInfor.guest.length){
this.isGuest = true this.isGuest = true
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;
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
}}, (error) => { }}, (error) => {
uni.hideLoading(); uni.hideLoading();
uni.showToast({ uni.showToast({
title: error.message, title: error.message+',无法填写',
icon: "none", icon: "none",
}); });
}) })
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
}, (res) => { }, (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
that.msg.Phone = res.data.phoneNumber; that.msg.Phone = res.data.phoneNumber;
if(that.guestInfor.guest&&that.guestInfor.guest.length==0)that.GuestByPhone() if(!that.guestInfor||(that.guestInfor.guest&&that.guestInfor.guest.length==0))that.GuestByPhone()
else if(that.guestInfor.guest&&that.guestInfor.guest.length==1) that.setRegister() else if(that.guestInfor.guest&&that.guestInfor.guest.length==1) that.setRegister()
else if(that.guestInfor.guest&&that.guestInfor.guest.length>1) that.goUrl() else if(that.guestInfor.guest&&that.guestInfor.guest.length>1) that.goUrl()
}}, (error) => { }}, (error) => {
......
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