提交 81c7cb98 authored 作者: lihuihui's avatar lihuihui

updata

上级 f2af2f8d
...@@ -182,8 +182,8 @@ export default { ...@@ -182,8 +182,8 @@ export default {
} }
} }
let num = 1 let num = 1
const data = this.clone(this.questionsData) // const data = this.clone(this.questionsData)
data.questions.map(item => { this.questionsData.questions.map(item => {
item.question_list.map((c, index) => { item.question_list.map((c, index) => {
c.num = num + index c.num = num + index
if (Object.prototype.hasOwnProperty.call(this.requestData, item.id)) { if (Object.prototype.hasOwnProperty.call(this.requestData, item.id)) {
......
...@@ -11,10 +11,18 @@ ...@@ -11,10 +11,18 @@
<svg v-show="ratioNum!==0" class="w_svg" width="100%" height="100%" viewBox="0 0 100 100"> <svg v-show="ratioNum!==0" class="w_svg" width="100%" height="100%" viewBox="0 0 100 100">
<circle r="25" cx="50" cy="50" fill="none" stroke="#07cb78" stroke-width="50" :stroke-dasharray="ratio" /> <circle r="25" cx="50" cy="50" fill="none" stroke="#07cb78" stroke-width="50" :stroke-dasharray="ratio" />
</svg> </svg>
<div class="circle"> <template v-if="title === '模拟考试'">
<p class="p1">正确率</p> <div class="circle">
<p class="p2">{{ratioNum}}%</p> <p class="p1">得分</p>
</div> <p class="p2">{{questionsData.score}}</p>
</div>
</template>
<template v-else>
<div class="circle">
<p class="p1">正确率</p>
<p class="p2">{{ratioNum}}%</p>
</div>
</template>
</div> </div>
<div class="assess"> <div class="assess">
<div class="tit">测试评估:</div> <div class="tit">测试评估:</div>
...@@ -83,39 +91,6 @@ ...@@ -83,39 +91,6 @@
</ul> </ul>
</template> </template>
</div> </div>
<!-- <div class="question">
<template>
<div>
<ul>
<template v-for="(item, index) in dataList">
<template v-for="(cItem, cIndex) in item.question_list">
<template v-if="requestData[item.id]">
<template v-if="requestData[item.id][cItem.id]">
<template v-if="requestData[item.id][cItem.id].answer.length != 0">
<template v-if="questionsData.score_items[item.id]">
<li :key="index+'-'+cIndex" @click="go(cItem.id)" :data-id="cItem.id" :class="questionsData.score_items[item.id][cItem.id].is_right ? 'active1' : 'active2'">{{ cItem.num }}</li>
</template>
<template v-else>
<li :key="index+'-'+cIndex" @click="go(cItem.id)" :data-id="cItem.id" class="active3">{{ cItem.num }}</li>
</template>
</template>
<template v-else>
<li :key="index+'-'+cIndex" @click="go(cItem.id)" :data-id="cItem.id" class="active3">{{ cItem.num }}</li>
</template>
</template>
<template v-else>
<li :key="index+'-'+cIndex" @click="go(cItem.id)" :data-id="cItem.id" class="active3">{{ cItem.num }}</li>
</template>
</template>
<template v-else>
<li :key="index+'-'+cIndex" @click="go(cItem.id)" :data-id="cItem.id" class="active3">{{ cItem.num }}</li>
</template>
</template>
</template>
</ul>
</div>
</template>
</div> -->
</div> </div>
</div> </div>
<div :class="ratioNum == 100 ? 'st-btn cent' : 'st-btn'" v-if="title === '随堂小测' || title === '模拟考试' || title === '知识点小测'"> <div :class="ratioNum == 100 ? 'st-btn cent' : 'st-btn'" v-if="title === '随堂小测' || title === '模拟考试' || title === '知识点小测'">
...@@ -215,7 +190,6 @@ export default { ...@@ -215,7 +190,6 @@ export default {
go(id) { go(id) {
const param = this.$route.query const param = this.$route.query
param.id = id param.id = id
console.log(id)
this.$emit('cardChange', param) this.$emit('cardChange', param)
}, },
initData() { initData() {
...@@ -266,7 +240,6 @@ export default { ...@@ -266,7 +240,6 @@ export default {
}) })
num += item.question_list.length num += item.question_list.length
}) })
console.log(this.answerData)
} }
} }
} }
......
...@@ -169,7 +169,6 @@ export default { ...@@ -169,7 +169,6 @@ export default {
autoHeight: true, autoHeight: true,
on: { on: {
slideChangeTransitionStart: function() { slideChangeTransitionStart: function() {
_this.clickStatus = Date.parse(new Date())
_this.getIsSign() _this.getIsSign()
if (this.activeIndex === _this.questionsData.sheet.question_count) { if (this.activeIndex === _this.questionsData.sheet.question_count) {
_this.topicCard.isShow = true _this.topicCard.isShow = true
...@@ -193,6 +192,7 @@ export default { ...@@ -193,6 +192,7 @@ export default {
_this.swiperSign = _this.questionsData.sheet.question_count - 1 _this.swiperSign = _this.questionsData.sheet.question_count - 1
} }
if (this.activeIndex === _this.questionsData.sheet.question_count) { if (this.activeIndex === _this.questionsData.sheet.question_count) {
_this.clickStatus = Date.parse(new Date())
_this.requestData.answerPage = _this.questionsData.sheet.question_count - 1 _this.requestData.answerPage = _this.questionsData.sheet.question_count - 1
} }
} }
...@@ -506,7 +506,7 @@ export default { ...@@ -506,7 +506,7 @@ export default {
} }
} }
} }
this.clickStatus = Date.parse(new Date()) // this.clickStatus = Date.parse(new Date())
this.$forceUpdate() this.$forceUpdate()
}, },
// 多选事件 // 多选事件
...@@ -560,7 +560,7 @@ export default { ...@@ -560,7 +560,7 @@ export default {
} }
cData.opaVal2 = opaArr.toString().replace(new RegExp(',', 'g'), '') cData.opaVal2 = opaArr.toString().replace(new RegExp(',', 'g'), '')
}) })
this.clickStatus = Date.parse(new Date()) // this.clickStatus = Date.parse(new Date())
this.$forceUpdate() this.$forceUpdate()
}, },
// 页面过高局部滚动 // 页面过高局部滚动
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论