Kaynağa Gözat

opt:新用户进入续住、退房、梯控和手机钥匙页面前验证身份证号完整性

Shu 3 ay önce
ebeveyn
işleme
49553e3e27
2 değiştirilmiş dosya ile 17 ekleme ve 12 silme
  1. 15 0
      pages/home/home.vue
  2. 2 12
      subpkg/extend/extend.vue

+ 15 - 0
pages/home/home.vue

@@ -120,6 +120,21 @@
 			...mapMutations('m_user', ['updateUserInfo']),
 			navigateTo(url) {
 				if (url !== "" && url !== null && url !== undefined) {
+					if (url !== "/subpkg_checkin/selectCheckinType/selectCheckinType") {
+						if (!this.userInfo.idNumber) {
+							uni.showModal({
+								title: '身份信息未完善',
+								content: '请至个人中心实名认证处完善个人信息',
+								showCancel: false,
+								success() {
+									uni.switchTab({
+										url: '/pages/my/my'
+									})
+								}
+							})
+							return
+						}
+					}
 					uni.navigateTo({
 						url: url,
 					});

+ 2 - 12
subpkg/extend/extend.vue

@@ -244,18 +244,6 @@
 				// #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,
@@ -333,7 +321,9 @@
 						this.checkinInfo = {}
 					}
 				} else {
+					// #ifdef MP-WEIXIN
 					uni.$showMsg('查询失败!')
+					// #endif
 				}
 			},
 			// #ifdef MP-ALIPAY