diff --git a/pages/home/certificate/index.js b/pages/home/certificate/index.js index 44386d4..a95a96f 100644 --- a/pages/home/certificate/index.js +++ b/pages/home/certificate/index.js @@ -78,6 +78,7 @@ Page({ data.experienceTag = this.data.form.experienceTag updateUserInfo(data).then(result => { wx.hideLoading() + app.globalData.userInfo.isEnterpriseAuth = 1 if(!app.globalData.userInfo.isAuth){ util.showToast('企业验证成功') wx.redirectTo({ url: '/pages/home/idcard/index' }) diff --git a/pages/home/tab1/index.js b/pages/home/tab1/index.js index 616d884..bb8fbdf 100644 --- a/pages/home/tab1/index.js +++ b/pages/home/tab1/index.js @@ -43,6 +43,10 @@ Page({ } }, submitForm: function () { + if(util.isEmpty(this.data.identityTag)){ + util.showToast('请输入你的身份') + return + } this.setData({ requesting: true}) updateUserInfo({ identityTag: this.data.identityTag }).then(result => { this.setData({ requesting: false})