examTest
This commit is contained in:
parent
5dbc18041f
commit
821fb53ae9
|
@ -89,8 +89,6 @@
|
||||||
this.scollHeight = res.windowHeight*ratio - 230;
|
this.scollHeight = res.windowHeight*ratio - 230;
|
||||||
this.currentExam = uni.getStorageSync('currentExam');
|
this.currentExam = uni.getStorageSync('currentExam');
|
||||||
this.initQuestion();
|
this.initQuestion();
|
||||||
this.getpaperDetail();
|
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSubmit(){
|
handleSubmit(){
|
||||||
|
@ -139,6 +137,7 @@
|
||||||
this.currentOptions = options_
|
this.currentOptions = options_
|
||||||
},
|
},
|
||||||
nextQ(){
|
nextQ(){
|
||||||
|
this.showAns = false;
|
||||||
let index = this.currentIndex + 1
|
let index = this.currentIndex + 1
|
||||||
if(index<this.currentExam.questions_.length){
|
if(index<this.currentExam.questions_.length){
|
||||||
this.currentIndex = index
|
this.currentIndex = index
|
||||||
|
@ -146,7 +145,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
previousQ(){
|
previousQ(){
|
||||||
let index = this.currentIndex - 1
|
this.showAns = false;
|
||||||
|
let index = this.currentIndex - 1;
|
||||||
if(index >= 0){
|
if(index >= 0){
|
||||||
this.currentIndex = index
|
this.currentIndex = index
|
||||||
this.initQuestion()
|
this.initQuestion()
|
||||||
|
|
Loading…
Reference in New Issue