曲靖考试
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<OnlineClass ref="OnlineClass" :height="height" @to-detail="toDetail" v-show="currIndex == 0"></OnlineClass>
|
||||
<GeneralLawExam ref="GeneralLawExam" :height="height" @to-test="toTest" v-show="currIndex == 1"></GeneralLawExam>
|
||||
<GeneralLawExam ref="GeneralLawExam" :height="height" @to-study="toStudy" @to-test="toTest" v-show="currIndex == 1"></GeneralLawExam>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -77,6 +77,9 @@ export default {
|
||||
},
|
||||
toDetail(id) {
|
||||
uni.navigateTo({url: "./classDetail?id=" + id})
|
||||
},
|
||||
toStudy() {
|
||||
this.currIndex == 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,8 +110,25 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
handleToTest({id, examination_duration: time }) {
|
||||
console.log(time);
|
||||
handleToTest({id, examination_duration: time, examinationType }) {
|
||||
console.log(time, examinationType);
|
||||
if(examinationType == 1) {
|
||||
if(this.studyDuration && this.studyDuration < time) {
|
||||
uni.showModal({
|
||||
title: '考试说明',
|
||||
content: `「考试认证」类考试,需要在线课堂中学习普法知识满足${time}分钟才能参加,考试通过并审核后可获取知法明理证书。`,
|
||||
confirmText: '去学习',
|
||||
confirmColor: '#2D7DFF',
|
||||
success: (res)=> {
|
||||
if (res.confirm) {
|
||||
this.$emit('toStudy')
|
||||
} else if (res.cancel) {
|
||||
// 停留
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
if(!this.user.areaId) {
|
||||
this.showAuth = true;
|
||||
this.testId = id;
|
||||
|
||||
@@ -11,8 +11,11 @@
|
||||
<div class="card_list">
|
||||
<div class="pass">
|
||||
<div>结果</div>
|
||||
<div :class="[data.status==0? 'col_nopass':'col_pass']">
|
||||
<span v-if="data.status==0">未</span><span v-else>已</span>通过
|
||||
<div :class="[data.assessmentType ==3? 'col_nopass':'col_pass']">
|
||||
<span v-if="data.assessmentType==0">学富五车</span>
|
||||
<span v-if="data.assessmentType == 1">才高八斗</span>
|
||||
<span v-if="data.assessmentType == 2">合格</span>
|
||||
<span v-if="data.assessmentType == 3">不合格</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="time">
|
||||
|
||||
@@ -190,7 +190,7 @@ export default {
|
||||
this.$u.toast('提交成功')
|
||||
setTimeout(()=> {
|
||||
uni.navigateTo({
|
||||
url: `./result?status=${this.status}&time=${this.studyDuration}&rightCount=${this.rightCount}&examCount=${this.list.length}&score=${this.score}`
|
||||
url: `./result?assessmentType=${this.assessmentType}&time=${this.studyDuration}&rightCount=${this.rightCount}&examCount=${this.list.length}&score=${this.score}`
|
||||
})
|
||||
}, 600)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user