Commit e12bb7e5 by 陈超

A

parent 724d6f11
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="layout_v" style="padding-bottom: 5rem;"> <div class="layout_v" style="padding-bottom: 5rem;">
<van-sticky> <van-sticky>
<div class="course_detail_video_container" > <div class="course_detail_video_container" >
<van-image height="100%" width="100%" src="{:getCover($data['cover'] ,580 , 320 )}" fit="cover" ></van-image>
</div> </div>
<van-tabs <van-tabs
:line-width="24" :line-width="24"
......
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
</div> </div>
<div v-if="current > 1" class="testPaperBtns box"> <div v-if="current > 1" class="testPaperBtns box">
<p @click="onPreviousQuestion" class="testPaperBtn">上一题</p> <p @click="onPreviousQuestion" class="testPaperBtn">上一题</p>
<p @click="onNextQuestion" class="testPaperBtn testPaperBtn1">{{ review ? 下一题 : (下一题 / 交卷) }}</p> <p @click="onNextQuestion" class="testPaperBtn testPaperBtn1">{{nextButton}}</p>
</div> </div>
<!-- 解析 --> <!-- 解析 -->
<div class="testPaperJiedaPage"> <div class="testPaperJiedaPage">
...@@ -413,6 +413,15 @@ ...@@ -413,6 +413,15 @@
} }
}, },
computed: { computed: {
//computed
nextButton: function() {
if(this.review) {
return this.current == this.totalQuestion ? '返回' : '下一题'
} else {
return this.current == this.totalQuestion ? '交卷' : '下一题'
}
},
totalQuestion: function() { totalQuestion: function() {
let count = 0 let count = 0
let data = this.paperOptions.options_questions_data let data = this.paperOptions.options_questions_data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment