|
@@ -50,7 +50,6 @@
|
|
|
mode="widthFix"
|
|
|
></image>
|
|
|
<view class="toggle_name">切换课程</view>
|
|
|
- <!-- courseTotal -->
|
|
|
<view class="numbers">共{{ goodsTeacher.length }}门</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -108,7 +107,7 @@
|
|
|
<view v-if="current == 3">
|
|
|
<answer-box :userId="userInfo ? userInfo.userId : 0"></answer-box>
|
|
|
</view>
|
|
|
- <!--目录 -->
|
|
|
+ <!--重修目录 -->
|
|
|
<view v-if="current == 4">
|
|
|
<course-tree
|
|
|
v-if="sectionItem.id || sectionItem.sectionId"
|
|
@@ -379,11 +378,9 @@ export default {
|
|
|
computed: {
|
|
|
...mapGetters(["userInfo", "playSectionId", "config"]),
|
|
|
playSecIsLearn() {
|
|
|
- return false;
|
|
|
return this.sectionItem.learning != 1;
|
|
|
},
|
|
|
orderNum() {
|
|
|
- return 0;
|
|
|
return this.goodsData.goodsLearningOrder;
|
|
|
},
|
|
|
list() {
|
|
@@ -571,7 +568,6 @@ export default {
|
|
|
orderGoodsId: this.orderGoodsId,
|
|
|
},
|
|
|
}).then((res) => {
|
|
|
- console.log("🚀 ~ file: detail.vue:859 ~ getUserWatchLast ~ res:", res);
|
|
|
if (res.data.code == 200 && res.data.data) {
|
|
|
this.courseId = res.data.data.courseId;
|
|
|
}
|
|
@@ -980,10 +976,10 @@ export default {
|
|
|
if (!data.sectionId) {
|
|
|
data = this.menuAllList[0];
|
|
|
}
|
|
|
- // if (data.learning == 1 && this.orderNum == 2) {
|
|
|
- // let next = this.menuAllList.find((e) => e.studyStatus != 1);
|
|
|
- // next && (data = next);
|
|
|
- // }
|
|
|
+ if (data.learning == 1 && this.orderNum == 2) {
|
|
|
+ let next = this.menuAllList.find((e) => e.studyStatus != 1);
|
|
|
+ next && (data = next);
|
|
|
+ }
|
|
|
this.initPlayVideo(data);
|
|
|
});
|
|
|
},
|
|
@@ -1131,7 +1127,6 @@ export default {
|
|
|
},
|
|
|
loadedmetadata(event) {
|
|
|
this.refPlv = this.$refs.player;
|
|
|
- // this.openCamera()
|
|
|
},
|
|
|
getPhotoLastRecord() {
|
|
|
let { chapterId, sectionId, moduleId } = this.sectionItem;
|
|
@@ -1241,7 +1236,6 @@ export default {
|
|
|
},
|
|
|
// 随机前后五分钟
|
|
|
commonConfig(totalVideoTime, fixS) {
|
|
|
- console.log("🚀 ~ file: detail.vue:2407 ~ commonConfig ~ fixS:", fixS);
|
|
|
let photoList = [0];
|
|
|
// 固定间隔时间取
|
|
|
if (fixS) {
|
|
@@ -1316,8 +1310,8 @@ export default {
|
|
|
moduleId: moduleId || 0,
|
|
|
};
|
|
|
this.$api.recordLast(data).then((res) => {
|
|
|
- if(res.data.data.videoCurrentTime>3){
|
|
|
- res.data.data.videoCurrentTime-=3
|
|
|
+ if (res.data.data.videoCurrentTime > 3) {
|
|
|
+ res.data.data.videoCurrentTime -= 3;
|
|
|
}
|
|
|
resolve(res.data.data);
|
|
|
});
|
|
@@ -1459,7 +1453,6 @@ export default {
|
|
|
this.configPhoto(time);
|
|
|
this.isReach = false;
|
|
|
const index = this.photoList.findIndex((e) => e < time && e > time - 8);
|
|
|
- console.log(index, time, this.photoHistoryList, 789);
|
|
|
if (index != -1 && !this.photoHistoryList[index]) {
|
|
|
this.photoIndex = index;
|
|
|
// 拍照
|
|
@@ -1509,7 +1502,6 @@ export default {
|
|
|
this.refPlv.exitFullScreen();
|
|
|
},
|
|
|
pause() {
|
|
|
- uni.$emit("playEnd");
|
|
|
this.erJianErZaoPauseTip();
|
|
|
clearInterval(this.studyTimer);
|
|
|
},
|
|
@@ -1525,7 +1517,7 @@ export default {
|
|
|
this.nextSection();
|
|
|
},
|
|
|
playerError() {
|
|
|
- console.log(46546);
|
|
|
+ console.log("播放错误");
|
|
|
},
|
|
|
//播放下一节
|
|
|
nextSection() {
|
|
@@ -1664,7 +1656,7 @@ export default {
|
|
|
this.erJianErZao && (await this.userConfirmInfoDetail());
|
|
|
this.option.periodWaitTime && (await this.checkFinishRequiredCourse());
|
|
|
this.goodsData.buyNote && this.baseHandoutTipList();
|
|
|
- this.gradeId = this.goodsData.gradeId;
|
|
|
+ !this.gradeId && (this.gradeId = this.goodsData.gradeId);
|
|
|
if (this.goodsData.goodsPlayConfig) {
|
|
|
this.goodsPlayConfig = JSON.parse(this.goodsData.goodsPlayConfig);
|
|
|
if (this.goodsPlayConfig.autoPlay > 0) {
|