Commit d175907d authored by liujiangnan's avatar liujiangnan

feat

parent 35ec0342
......@@ -7,6 +7,14 @@ window.air.hideAirClassLoading(key,data); //页面加载完成时,必须调
*/
const callServerMethod = (method, data, callback) => {
window.courseware.onEvent(method, (result, next) => {
callback && callback(result);
next();
}, key);
window.courseware.sendEvent(method, data, key);
}
//对应模板的名称,这个可以不写,但是最好是能写上,同时开发多个模板的情况下如果不写这个,本地缓存可能会存在混乱
var key = "AI_QUESTION_CHOSE";
......@@ -147,6 +155,7 @@ new Vue({
// 延迟重置选择,让用户看到错误信息
setTimeout(() => {
this.resetAnswer();
callServerMethod('finished', {});
}, 2000);
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment