Commit 2be931c5 authored by youjie's avatar youjie

修复

parent f22973b2
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<template v-if="guestInfor.code==0&&guestInfor.IsEnd==0"> <template v-if="guestInfor.code==0&&guestInfor.IsEnd==0">
去填写 去填写
</template> </template>
<template v-if="guestInfor.code==1"> <template v-if="(guestInfor.code==0||guestInfor.code==1)&&guestInfor.IsEnd==1">
查看 查看
</template> </template>
<button v-if="guestInfor.code==0&&guestInfor.IsEnd==0" <button v-if="guestInfor.code==0&&guestInfor.IsEnd==0"
...@@ -173,7 +173,14 @@ export default { ...@@ -173,7 +173,14 @@ export default {
Phone: this.msg.Phone, Phone: this.msg.Phone,
}, (res) => { }, (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
// this.goUrl() this.guestInfor = res.data;
if(this.guestInfor.guest&&
this.guestInfor.guest.length>0&&
this.guestInfor.guest.length==1){
this.msg.Id = this.guestInfor.guest[0].Id;
this.msg.OrderId = this.guestInfor.guest[0].OrderId;
}
this.setRegister()
}}, (error) => { }}, (error) => {
uni.hideLoading(); uni.hideLoading();
uni.showToast({ uni.showToast({
...@@ -198,7 +205,8 @@ export default { ...@@ -198,7 +205,8 @@ export default {
}, (res) => { }, (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
that.msg.Phone = res.data.phoneNumber; that.msg.Phone = res.data.phoneNumber;
that.setRegister() if(this.guestInfor.guest.length==0)that.GuestByPhone()
else that.setRegister()
}}, (error) => { }}, (error) => {
uni.hideLoading(); uni.hideLoading();
uni.showToast({ uni.showToast({
......
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