mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-12 04:16:48 +08:00
Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/mobile
This commit is contained in:
@@ -179,6 +179,7 @@
|
|||||||
//console.log(this.paper.items);
|
//console.log(this.paper.items);
|
||||||
let totalScore=0;
|
let totalScore=0;
|
||||||
this.paper.items.forEach(item => {
|
this.paper.items.forEach(item => {
|
||||||
|
item.score=parseInt(item.score);
|
||||||
totalScore+=item.score;//加到总分中
|
totalScore+=item.score;//加到总分中
|
||||||
if(item.type != 102){
|
if(item.type != 102){
|
||||||
item.userAnswer='';
|
item.userAnswer='';
|
||||||
@@ -214,8 +215,14 @@
|
|||||||
}
|
}
|
||||||
let allRight = true;
|
let allRight = true;
|
||||||
item.options.forEach(it =>{
|
item.options.forEach(it =>{
|
||||||
if(it.answer && item.userAnswer.indexOf(it.id)==-1) {
|
if(it.answer){ //正确答案
|
||||||
|
if(item.userAnswer.indexOf(it.id)==-1){
|
||||||
allRight=false;
|
allRight=false;
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if(item.userAnswer.indexOf(it.id)>-1){
|
||||||
|
allRight=false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(allRight){
|
if(allRight){
|
||||||
|
|||||||
Reference in New Issue
Block a user