|
@@ -2795,13 +2795,14 @@ export default {
|
|
|
if (status > 0) {
|
|
|
data.status = status;
|
|
|
}
|
|
|
- console.log(data,'记录参数')
|
|
|
+ console.log(data, "记录参数");
|
|
|
return new Promise((resolve, reject) => {
|
|
|
this.$api
|
|
|
.studyRecord(data)
|
|
|
.then((res) => {
|
|
|
- console.log(res,'记录返回')
|
|
|
- if (res.data.code == 200) {
|
|
|
+ console.log(res, "记录返回");
|
|
|
+ let { code } = res.data;
|
|
|
+ if (code == 200) {
|
|
|
if (status > 0) {
|
|
|
this.studyRecordMenuAllList();
|
|
|
let moduleId = this.moduleId || 0;
|
|
@@ -2821,10 +2822,12 @@ export default {
|
|
|
icon: "none",
|
|
|
title: res.data.msg,
|
|
|
});
|
|
|
- if (this.erJianErZao && res.data.code == 559) {
|
|
|
+ if (this.erJianErZao && code == 559) {
|
|
|
this.isReach = true;
|
|
|
this.openPhoto();
|
|
|
- reject('中断执行');
|
|
|
+ }
|
|
|
+ if (code == 559 || code == 588) {
|
|
|
+ reject("中断执行");
|
|
|
}
|
|
|
}
|
|
|
resolve();
|
|
@@ -3119,7 +3122,7 @@ export default {
|
|
|
},
|
|
|
//播放下一节
|
|
|
nextSection() {
|
|
|
- console.log("播放下一节")
|
|
|
+ console.log("播放下一节");
|
|
|
if (!this.menuAllList.length) {
|
|
|
return;
|
|
|
}
|
|
@@ -3334,14 +3337,13 @@ export default {
|
|
|
this.photoHistoryList.push(this.photoIndex);
|
|
|
// console.log('拍照确定提交', this.photoHistoryList);
|
|
|
this.postStudyRecord(); //提交记录
|
|
|
- console.log(this.erJianErZao , this.isReach)
|
|
|
if (this.erJianErZao && this.isReach) {
|
|
|
await this.postStudyRecord(1);
|
|
|
this.photoPopup = false;
|
|
|
this.uploadLock = false;
|
|
|
this.enableAutoRotation = true;
|
|
|
this.nextSection();
|
|
|
- return
|
|
|
+ return;
|
|
|
}
|
|
|
//恢复播放
|
|
|
// #ifdef MP-WEIXIN
|