Browse Source

opt:身份信息不完整时进入续住、退房页面提示完善身份信息

LiChengjin 3 months ago
parent
commit
a86af70e72
1 changed files with 12 additions and 0 deletions
  1. 12 0
      subpkg/extend/extend.vue

+ 12 - 0
subpkg/extend/extend.vue

@@ -244,6 +244,18 @@
 				// #endif
 			},
 			async getCheckinInfo() {
+				if (!this.userInfo.idNumber) {
+					uni.showModal({
+						title: '请完善身份信息',
+						showCancel: false,
+						success() {
+							uni.switchTab({
+								url: '/pages/my/my'
+							})
+						}
+					})
+					return
+				}
 				let res = await uni.$http.post('/checkinInfo/queryByCondition', {
 					userIdNumber: this.userInfo.idNumber,
 					status: 1,