@@ -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,
});
@@ -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