Commit 281e8684 authored by liujiangnan's avatar liujiangnan

feat: 上报本节课的完成

parent f1e39bae
...@@ -255,6 +255,15 @@ export default class NewClass extends middleLayerBase { ...@@ -255,6 +255,15 @@ export default class NewClass extends middleLayerBase {
} else { } else {
// 所有课件都完成的庆祝动画 // 所有课件都完成的庆祝动画
this.showAllFinish(); this.showAllFinish();
// 上报一个本节课完成
this.callNetworkApiPost(`/api/kyxq/v1/user/saveend`, {
syllabus_id: lastCurse.pid,
}, (res) => {
if (res.code != 200) {
this.showTips(`保存结束状态失败 [${res.msg}]`);
return;
}
});
} }
} }
} }
......
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