Commit 1c501b3d by 陈超

A

parent 9736a923
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
</div> </div>
<div class="testPaperBotm"> <div class="testPaperBotm">
<div class="box"> <div class="box">
<span class="testPaperNum">2/19</span> <span class="testPaperNum">{{current}}/{{totalQuestion}}</span>
<p class="testPaperLei flex1">(单选题)</p> <p class="testPaperLei flex1">(单选题)</p>
<img class="testPaperColl" src="__THEME__/img/collect0.png"> <img class="testPaperColl" src="__THEME__/img/collect0.png">
<!-- <img class="testPaperColl" src="../img/collect1.png"> --> <!-- <img class="testPaperColl" src="../img/collect1.png"> -->
...@@ -410,9 +410,19 @@ ...@@ -410,9 +410,19 @@
return { return {
info: {}, info: {},
temp: {}, temp: {},
current: 1,
paperOptions: {}, paperOptions: {},
countDown: "00:00:00" countDown: "00:00:00"
} }
},
computed: {
totalQuestion: function() {
return this.paperOptions.questions_count
},
currentQuestion: function() {
let type = this.paperOptions.options_type[this.current]
}
}, },
created: function() { created: function() {
this.info = {:json_encode($paper)}; this.info = {:json_encode($paper)};
......
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