普法考试
This commit is contained in:
@@ -35,7 +35,7 @@ export default {
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
uni.$once('update',(data)=> {
|
||||
uni.$on('update',(data)=> {
|
||||
this.currIndex = data.inx
|
||||
})
|
||||
if(this.currIndex == 0) {
|
||||
|
||||
@@ -100,6 +100,7 @@ export default {
|
||||
}).then(res=> {
|
||||
if(res?.data) {
|
||||
this.testList = res.data.records
|
||||
this.getStudyDuration()
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -110,18 +111,19 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
handleToTest({id, examination_duration: time, examinationType }) {
|
||||
console.log(time, examinationType);
|
||||
handleToTest({id, examinationDuration: time, examinationType }) {
|
||||
|
||||
console.log(time, examinationType,this.studyDuration);
|
||||
if(examinationType == 1) {
|
||||
if(this.studyDuration && this.studyDuration < time) {
|
||||
uni.showModal({
|
||||
return uni.showModal({
|
||||
title: '考试说明',
|
||||
content: `「考试认证」类考试,需要在线课堂中学习普法知识满足${time}分钟才能参加,考试通过并审核后可获取知法明理证书。`,
|
||||
confirmText: '去学习',
|
||||
confirmColor: '#2D7DFF',
|
||||
success: (res)=> {
|
||||
if (res.confirm) {
|
||||
this.$emit('toStudy')
|
||||
uni.$emit('update', { inx: 0 })
|
||||
} else if (res.cancel) {
|
||||
// 停留
|
||||
}
|
||||
|
||||
@@ -57,10 +57,6 @@ export default {
|
||||
handleToDetail(id) {
|
||||
this.$emit('toDetail',id)
|
||||
},
|
||||
// scrolltLower() {
|
||||
// this.current ++;
|
||||
// this.getList()
|
||||
// }
|
||||
},
|
||||
onReachBottom() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user