bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section class="AppOnlineAnswer">
|
||||
<div class="page" v-if="list.length">
|
||||
<img src="static/img/answer-bg.png" alt="" class="bg-img">
|
||||
<img src="./static/img/answer-bg.png" alt="" class="bg-img">
|
||||
<div class="subject-content" v-if="!showAnwser">
|
||||
<div class="btn" v-if="showTopBtn" @click="confirm()">{{ topBtnText }}</div>
|
||||
<div class="bg-fff pad-b48">
|
||||
@@ -18,8 +18,8 @@
|
||||
<div v-if="list[index].type == 1">
|
||||
<div class="item" v-for="(item, i) in list[index].items" :key="i" @click="itemClick(i)"
|
||||
:class="{ 'item-click': clickIndex === i, 'item-success': showAnalysis && item.checked == 1, 'item-error': showAnalysis && clickIndex == i && item.checked == 0}">
|
||||
<img src="static/img/success-icon.png" alt="" v-if="showAnalysis && item.checked == 1">
|
||||
<img src="static/img/error-icon.png" alt=""
|
||||
<img src="./static/img/success-icon.png" alt="" v-if="showAnalysis && item.checked == 1">
|
||||
<img src="./static/img/error-icon.png" alt=""
|
||||
v-if="showAnalysis && clickIndex == i && item.checked == 0">
|
||||
{{ item.sort }} {{ item.content }}
|
||||
</div>
|
||||
@@ -28,8 +28,8 @@
|
||||
<div v-if="list[index].type == 2">
|
||||
<div class="item" v-for="(item, i) in list[index].items" :key="i" @click="itemClick(i)"
|
||||
:class="{ 'item-click': item.isCheked, 'item-success': showAnalysis && item.checked == 1, 'item-error': showAnalysis && item.isCheked && item.checked == 0}">
|
||||
<img src="static/img/success-icon.png" alt="" v-if="showAnalysis && item.checked == 1">
|
||||
<img src="static/img/error-icon.png" alt=""
|
||||
<img src="./static/img/success-icon.png" alt="" v-if="showAnalysis && item.checked == 1">
|
||||
<img src="./static/img/error-icon.png" alt=""
|
||||
v-if="showAnalysis && clickIndex == i && item.checked == 0">
|
||||
{{ item.sort }} {{ item.content }}
|
||||
</div>
|
||||
@@ -54,7 +54,7 @@
|
||||
</div>
|
||||
<div class="subject-content" v-else>
|
||||
<div class="bg-fff pad-b48">
|
||||
<img src="static/img/answer-head.png" alt="" class="head-img">
|
||||
<img src="./static/img/answer-head.png" alt="" class="head-img">
|
||||
<div class="head-content">
|
||||
<p>本次答对题目数</p>
|
||||
<div>{{ resultInfo.right }}</div>
|
||||
@@ -100,6 +100,9 @@ export default {
|
||||
this.createdTime = Date.parse(new Date())
|
||||
this.getList()
|
||||
},
|
||||
onShow() {
|
||||
document.title = '在线答题'
|
||||
},
|
||||
methods: {
|
||||
itemClick(i) {
|
||||
if (this.showAnalysis) return
|
||||
@@ -209,7 +212,7 @@ export default {
|
||||
this.showTopBtn = false
|
||||
this.topBtnText = ''
|
||||
this.showAnalysis = false
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user