lrf402788946 před 3 roky
rodič
revize
1836bdaa2d
1 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. 6 2
      src/layout/main-layout.vue

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

@@ -14,7 +14,7 @@
           </el-main>
         </el-container>
       </el-container>
-      <bind :display="dialog" v-if="!$isBindWx()">
+      <bind :display="dialog">
         <el-col :span="24" style="text-align:center;font-size:1.25rem;padding-top:1rem;">
           绑定微信,开始您的招聘!
         </el-col>
@@ -44,6 +44,9 @@ export default {
     allowed: false,
   }),
   created() {},
+  mounted() {
+    this.checkBind();
+  },
   computed: {
     ...mapState(['user']),
     // is_allowed() {
@@ -54,11 +57,12 @@ export default {
     ...mapActions(['corpOperation']),
     async getInfo() {
       let { base } = await this.corpOperation({ type: 'search', data: { corpid: this.user.corpid } });
+      console.log(base);
       if (base.state === '已认证') return true;
     },
     async checkBind() {
       //平台未审核/审核拒绝,只能进入基本信息去复审
-      if (this.is_allowed) return;
+      if (this.allowed) return;
       this.allowed = (await this.getInfo()) || false;
       // sessionStorage.setItem('is_allowed', true);
       if (!this.$isBindWx()) this.dialog = true;