提交 90beb7ef 编写于 作者: guangjun.yang's avatar guangjun.yang

点击购买时,关闭弹框

多选可以取消
上级 718d4a8b
......@@ -110,10 +110,10 @@ export default {
// 选择选项
selectOption(index) {
if (this.currentQuestion.commitFlag) return;
// 只记录当前选项,不提交答案
this.currentQuestion.options[index].isSelected = true;
// 重新设置答案(myAnswer)
// 多选题 -- 重新设置答案(myAnswer)
if (this.currentQuestion.typeId == 2) {
// 只记录当前选项,不提交答案
this.currentQuestion.options[index].isSelected = !this.currentQuestion.options[index].isSelected;
let myAnswer = "";
this.currentQuestion.options.forEach((item, index) => {
if (item.isSelected) {
......@@ -123,6 +123,7 @@ export default {
myAnswer = myAnswer.split("").join(",");
this.currentQuestion.myAnswer = myAnswer;
} else {
this.currentQuestion.options[index].isSelected = true;
// 单选题或者判断题直接设置commitFlag
if (this.currentQuestion.options[index].isCorrect) {
this.currentQuestion.commitFlag = 1;
......
......@@ -251,6 +251,7 @@ export default {
return;
}
this.experienceDialog = false;
// 直接传入学科ID(secondSubjectId)
let pageUrl = getWebPageUrl(
`/profexam/#/question-bank?id=${this.secondSubjectId}&secondSubjectId=${this.secondSubjectId}`
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册