bug修改
This commit is contained in:
parent
47572ed703
commit
9e522c6eb3
|
|
@ -113,7 +113,8 @@
|
|||
{
|
||||
"path": "pages/YNEduApp/exam/exam",
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -67,7 +67,14 @@ export default {
|
|||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
onPullDownRefresh() {
|
||||
this.getList()
|
||||
setTimeout(() => {
|
||||
//800毫秒后关闭刷新
|
||||
uni.stopPullDownRefresh()
|
||||
}, 800)
|
||||
},
|
||||
getList() {
|
||||
const params = {
|
||||
userId: uni.getStorageSync('userId'),
|
||||
source: 1
|
||||
|
|
@ -145,7 +152,7 @@ export default {
|
|||
examCount: item.examCount, // 考试次数类型
|
||||
examCustom: item.examCustom, // 自定义考试次数
|
||||
score: item.score, // 总分
|
||||
passScore: item.passScore, // 及格分数
|
||||
passScore: item.passScore // 及格分数
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/YNEduApp/exam/beforeExam?params=${JSON.stringify(params)}`
|
||||
|
|
|
|||
|
|
@ -474,7 +474,7 @@ export default {
|
|||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
getList() {
|
||||
const params = {
|
||||
examId: this.examId,
|
||||
recordId: this.recordId
|
||||
|
|
@ -491,9 +491,15 @@ export default {
|
|||
},
|
||||
success: res => {
|
||||
res = res.data
|
||||
this.questionList = res.data.examPaperData
|
||||
}
|
||||
console.log('🚀 ~ getList ~ res:', res.data.examPaperData)
|
||||
if (res.code != 200) {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.questionList = res.data.examPaperData
|
||||
this.list = this.questionList
|
||||
this.list.forEach((item, index) => {
|
||||
if (index < 7) {
|
||||
|
|
@ -568,6 +574,11 @@ export default {
|
|||
this.wrongList = this.questionList.filter(item => item.isWrong)
|
||||
this.unAnsweredList = this.questionList.filter(item => item.isUnAnswered)
|
||||
},
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
handleTab(index) {
|
||||
console.log('🚀 ~ handleTab ~ index:', index)
|
||||
this.isActive = index
|
||||
|
|
|
|||
|
|
@ -115,7 +115,11 @@
|
|||
<div class="note">{{ content.studyName }}</div>
|
||||
</div>
|
||||
<div class="right-content">
|
||||
{{ content.practiceMsg && content.practiceMsg.recordId != null ? '未开始' : '已练习' }}
|
||||
{{
|
||||
content.practiceMsg && content.practiceMsg.alreadyNum == 0
|
||||
? '未开始'
|
||||
: '已练习'
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
</uni-list>
|
||||
|
|
|
|||
|
|
@ -670,14 +670,14 @@ export default {
|
|||
}
|
||||
})
|
||||
uni.reLaunch({
|
||||
url: '/pages/YNEduApp/learnProj/learnProjDetail?studyId=' + this.studyId
|
||||
url: '/pages/YNEduApp/learnProj/learnProjDetail?id=' + this.studyId
|
||||
})
|
||||
}
|
||||
this.showModal = false
|
||||
// uni.navigateBack()
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
url: '/pages/YNEduApp/prac/prac'
|
||||
})
|
||||
}
|
||||
this.showModal = false
|
||||
},
|
||||
// 打开题目选择弹框
|
||||
async openSelect() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue