This commit is contained in:
@fawn-nine
2024-10-16 11:10:03 +08:00
parent bc7656e5ed
commit 2b43488ee9
3 changed files with 15 additions and 8 deletions

View File

@@ -69,7 +69,7 @@
<!-- {{selfStudyCertificate.length}}-{{classInfo.id}}-{{classInfo.state}}- -->
<!-- 自考入口 没有加入班级的时候暴漏入口-->
<view class="selfStudyBox"
v-if="librayList[curIndex] && (!classInfo.id || classInfo.state == '2' || selfStudyCertificate.length >= 0)">
v-if="course.canzk == '1' && librayList[curIndex] && (!classInfo.id || classInfo.state == '2' || selfStudyCertificate.length >= 0)">
<view style="padding: 20rpx;"
v-if="(selfStudyCertificate.length == 0 || selfStudyPaperList.length > 0 && !testingPaper.id) && (!classInfo.id || classInfo.state == '2')">
<view class="">
@@ -672,8 +672,7 @@
// #ifdef APP-PLUS
plus.screen.unlockOrientation();
plus.screen.lockOrientation("portrait-primary");
// #endif
this.getLinkClassList()
// #endif
await this.request()
},
@@ -724,6 +723,9 @@
}
})
}
if(this.classCertificate.length <= 0){ // 已经在班级内获得证书就不再检查班级的情况了
this.getLinkClassList()
}
var historyPaper = await this.getingPaper()
console.log('historyPaper正在考试的信息', historyPaper);
if (historyPaper && historyPaper.id && historyPaper.type == '2' && historyPaper.relationId == this
@@ -746,6 +748,10 @@
this.testingPaper = {}
this.showCountDown = false
}
if(this.course.canzk == '0'){ // 如果没有开启自考,就不走自考相关的逻辑
console.log('没有打开自考开关');
return
}
var selfStudyPaperList = await this.getSelfStudyPaperList()
this.selfStudyPaperList = selfStudyPaperList
console.log('selfStudyPaperList', selfStudyPaperList);