提交
This commit is contained in:
@@ -88,11 +88,18 @@
|
||||
this.subject=op.subject
|
||||
this.allRightList=storage.get(`rightList_subject${this.subject}`) || []
|
||||
this.allWrongList=storage.get(`wrongList_subject${this.subject}`) || []
|
||||
this.percent=(((this.allRightList.length+this.wrongList.length) / this.orderQuestion.length)*100).toFixed(0)
|
||||
this.percent=(((this.allRightList.length+this.wrongList.length) / this[`orderQuestion_subject${this.subject}`].length)*100).toFixed(0)
|
||||
}
|
||||
},
|
||||
onUnload() {
|
||||
//#ifdef MP-WEIXIN
|
||||
uni.reLaunch({
|
||||
url:"/pages/index/index"
|
||||
})
|
||||
//#endif
|
||||
},
|
||||
computed: {
|
||||
...mapState(useQuestionStore, ["orderQuestion_subject1","orderQuestion_subject1"]), //映射函数,取出tagslist
|
||||
...mapState(useQuestionStore, ["orderQuestion_subject1","orderQuestion_subject4"]), //映射函数,取出tagslist
|
||||
getNotDoNum(){
|
||||
return this[`orderQuestion_subject${this.subject}`].length-(this.allRightList.length+this.allWrongList.length)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user