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