2 Commity 7e407f25e6 ... b378517c05

Autor SHA1 Wiadomość Data
  LiChengjin b378517c05 Merge remote-tracking branch 'origin/dev' into dev 3 miesięcy temu
  LiChengjin fbe423b6b4 opt:添加顾客信息页面,新用户直接跳转上传身份证照片 3 miesięcy temu
1 zmienionych plików z 10 dodań i 1 usunięć
  1. 10 1
      subpkg_checkin/addGuest/addGuest.vue

+ 10 - 1
subpkg_checkin/addGuest/addGuest.vue

@@ -618,6 +618,12 @@
 								showCancel: false,
 							})
 						}
+						if (!this.name) {
+							this.name = res.data.data.name
+						}
+						if (!this.idNumber) {
+							this.idNumber = res.data.data.cardNum
+						}
 						if (event.name === 'Front' && (res.data.data.cardNum != this.idNumber || res.data
 								.data.name != this.name)) {
 							uni.showModal({
@@ -1290,7 +1296,10 @@
 			} else {
 				this.isMainCustomer = false
 			}
-
+			//是主入住人且姓名和身份证号为空,判断为新用户,直接跳转至上传身份证照片页面
+			if (this.isMainCustomer && (!this.userInfo.name || !this.userInfo.idNumber)) {
+				this.step = 1
+			}
 			// #ifdef MP-WEIXIN
 			this.isVKSupport = wx.isVKSupport('v1')
 			if (!this.isVKSupport) {