曲靖考试
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user