Commit 831e2b4f authored by youjie's avatar youjie

no message

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