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