This commit is contained in:
binbin_pan 2024-09-14 18:12:16 +08:00
parent e1ec96b5d1
commit 7934c43ecd
4 changed files with 19 additions and 7 deletions

View File

@ -132,7 +132,8 @@
{
"path": "pages/YNEduApp/prac/prac",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"enablePullDownRefresh": true
}
},
{

View File

@ -520,6 +520,9 @@ export default {
option.isRight = option.optionIdent === item.correctGrade
})
} else {
if (item.selectAnswer == '对' || item.selectAnswer == '错') {
item.selectAnswer = item.selectAnswer === '对' ? 'A' : 'B'
}
if (item.correctGrade === item.selectAnswer) {
this.rightCount++
//

View File

@ -3,15 +3,15 @@
<div class="top-time">已用时间 {{ usedTime }}</div>
<div class="num-wrapper">
<div class="correct">
<u-icon name="/static/images/true.png" size="15" />
<u-icon name="/static/images/true.png" size="18" />
<div class="num">{{ trueNum }}</div>
</div>
<div class="error">
<u-icon name="/static/images/error.png" size="15" />
<u-icon name="/static/images/error.png" size="18" />
<div class="num">{{ falseNum }}</div>
</div>
<div class="total" @click="openSelect">
<u-icon name="/static/images/quanbufenlei.png" size="15" />
<u-icon name="/static/images/quanbufenlei.png" size="18" />
<div class="num">{{ nowNum }}/{{ allNum }}</div>
</div>
</div>
@ -999,7 +999,7 @@ export default {
text-align: center;
font-size: 13px;
color: #fff;
padding-top: 50px;
padding-top: 60px;
}
.num-wrapper {

View File

@ -39,7 +39,7 @@
<script>
import { getStudentPracticeList } from '@/api/eduApp'
import config from '@/config';
import config from '@/config'
export default {
data() {
@ -59,7 +59,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
@ -80,6 +87,7 @@ export default {
},
data: params,
success: res => {
this.activeIndex = 0
res = res.data
console.log('🚀 ~ getList ~ res:', res)
this.list = this.allList = res.data