Kaynağa Gözat

企业认证

lrf402788946 5 yıl önce
ebeveyn
işleme
c8239aae0b
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4 2
      src/layout/main-layout.vue

+ 4 - 2
src/layout/main-layout.vue

@@ -52,13 +52,15 @@ export default {
       let { base } = await this.corpOperation({ type: 'search', data: { corpid: this.user.corpid } });
       let { base } = await this.corpOperation({ type: 'search', data: { corpid: this.user.corpid } });
       if (base.state === '已认证') return true;
       if (base.state === '已认证') return true;
     },
     },
-    checkBind() {
+    async checkBind() {
       //平台未审核/审核拒绝,只能进入基本信息去复审
       //平台未审核/审核拒绝,只能进入基本信息去复审
-      if (this.getInfo()) {
+      if (!(await this.getInfo())) {
+        console.log('in function:');
         this.$message.error('您的企业还未通过审核,请检查您的信息');
         this.$message.error('您的企业还未通过审核,请检查您的信息');
         this.$router.push({ path: '/info/base/index' });
         this.$router.push({ path: '/info/base/index' });
         return;
         return;
       }
       }
+      console.log('in function:else');
       if (!this.$isBindWx()) this.dialog = true;
       if (!this.$isBindWx()) this.dialog = true;
     },
     },
     toLogin() {
     toLogin() {