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