Commit 2be931c5 authored by youjie's avatar youjie

修复

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