首页展示学校

This commit is contained in:
zhangxuelin 2024-11-06 17:30:31 +08:00
parent 79f38ad18f
commit 45b93b8980
1 changed files with 15 additions and 5 deletions

View File

@ -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