首页展示学校
This commit is contained in:
parent
79f38ad18f
commit
45b93b8980
|
@ -11,12 +11,13 @@
|
|||
</template>
|
||||
<div class="head-aside">
|
||||
<ul >
|
||||
<li :class="computedregistertype==1 || computedregistertype==3?'auth-li':'auth-li pointer-events'" @click="onUserTo('/schoolCertification')" >
|
||||
<li :class="computedregistertype==1 || computedregistertype==3?'auth-li':'auth-li pointer-events'" @click="onUserTo('/schoolCertification')" >
|
||||
<i class="iconfont icon-renzheng-"></i>
|
||||
<span class="mlr-5">学校认证</span>
|
||||
<span class="gray">未认证</span>
|
||||
<span class="mlr-5" v-if="computedregistertype!=4">学校认证</span>
|
||||
<span class="mlr-5" v-else>{{ userStore.DeptInfo.register.schoolName }}</span>
|
||||
<span class="gray" v-if="computedregistertype!=4">未认证</span>
|
||||
</li>
|
||||
<li :class="computedregistertype==1 || computedregistertype==2 ? '':'pointer-events'" @click="onUserTo('/joinSchool')">加入学校</li>
|
||||
<li v-if="computedregistertype!=4" :class="computedregistertype==1 || computedregistertype==2 ? '':'pointer-events'" @click="onUserTo('/joinSchool')">加入学校</li>
|
||||
<li @click="onUserTo('/profile')">个人中心</li>
|
||||
<li @click="onUserTo('/schoolManagement')">学校管理</li>
|
||||
<li @click="onUserTo('/class')">班级中心</li>
|
||||
|
@ -111,9 +112,18 @@ const sideBottomMenu = [
|
|||
|
||||
const computedregistertype = computed(() => {
|
||||
const type =userStore.DeptInfo?.register?.type ??0
|
||||
if(type==0 || userStore.DeptInfo?.register?.auditStatus!=0){
|
||||
console.log(userStore.DeptInfo?.register)
|
||||
if(type==0 || userStore.DeptInfo?.register?.auditStatus!=0 && userStore.DeptInfo?.register?.auditStatus!=1){
|
||||
return 1
|
||||
}
|
||||
// 加入成功
|
||||
if(type==3 && userStore.DeptInfo.register.auditStatus==1){
|
||||
console.log(1111)
|
||||
return 4
|
||||
}
|
||||
if(type==4 && userStore.DeptInfo.register.auditStatus==1){
|
||||
return 4
|
||||
}
|
||||
// 加入学校 待审核
|
||||
if(type==3 && userStore.DeptInfo.register.auditStatus==0){
|
||||
return 2
|
||||
|
|
Loading…
Reference in New Issue