This commit is contained in:
shijing 2022-11-28 10:45:56 +08:00
parent 5dbc18041f
commit 821fb53ae9
1 changed files with 3 additions and 3 deletions

View File

@ -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()