提交 68913c6e 编写于 作者: guangjun.yang's avatar guangjun.yang

提交答案等

上级 0066a287
...@@ -142,6 +142,7 @@ export default { ...@@ -142,6 +142,7 @@ export default {
// 提交答案 // 提交答案
commitAnswer(isMulti) { commitAnswer(isMulti) {
this.checkTokenForNative((isMulti) => {
let params = { let params = {
commitKind: this.commonConfig.commitKind, // 答题来源 1:错题集 2:收藏 3:题库 commitKind: this.commonConfig.commitKind, // 答题来源 1:错题集 2:收藏 3:题库
directoryId: this.currentQuestion.directoryId, // 题库ID directoryId: this.currentQuestion.directoryId, // 题库ID
...@@ -155,7 +156,6 @@ export default { ...@@ -155,7 +156,6 @@ export default {
setEntry: true, setEntry: true,
token: this.userInfo.userToken, token: this.userInfo.userToken,
}; };
// 计算是否答对了题目(只有多选题,才做相应处理) // 计算是否答对了题目(只有多选题,才做相应处理)
if(isMulti) { if(isMulti) {
let cList = this.currentQuestion, option = {}, isRight = true; let cList = this.currentQuestion, option = {}, isRight = true;
...@@ -178,6 +178,9 @@ export default { ...@@ -178,6 +178,9 @@ export default {
// this.handlerPractiseData(data.practiseTitleModelList); // this.handlerPractiseData(data.practiseTitleModelList);
console.log("onlineexam/practise/commit", data); console.log("onlineexam/practise/commit", data);
}); });
});
} }
} }
}; };
......
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
}, },
data() { data() {
return { return {
// token: "", // mixns里有 token: "",
directoryId: "", directoryId: "",
cardType: 3, cardType: 3,
goodsType: 3, goodsType: 3,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册