|
@@ -10,7 +10,7 @@
|
|
|
<icon type="cancel" style="float: right;color:#ff3535;" @click="closepopup" size="26" />
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
- <view class="video_box" v-if="!playVid">
|
|
|
+ <view class="video_box" v-if="!playVid||hideplayer">
|
|
|
<image :src="$method.splitImgHost(goodsData.coverUrl)" mode="widthFix"
|
|
|
style="width: 100%; height: 421rpx">
|
|
|
</image>
|
|
@@ -302,6 +302,7 @@
|
|
|
CountTo2: 0,
|
|
|
CountTo2Times: null,
|
|
|
reerrorcode:0,
|
|
|
+ hideplayer:false,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -1714,7 +1715,7 @@
|
|
|
}).then((res) => {});
|
|
|
},
|
|
|
timeupdate(time) {
|
|
|
- // console.log("🚀 ~ file: detail.vue:1498 ~ timeupdate ~ time:");
|
|
|
+ console.log("🚀 ~ file: detail.vue:1498 ~ timeupdate ~ time:"+time);
|
|
|
if (this.noticeShow) {
|
|
|
this.refPlv.playPause();
|
|
|
return;
|
|
@@ -1828,11 +1829,13 @@
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
+ this.hideplayer=true;//先隐藏播放器
|
|
|
uni.showModal({
|
|
|
title: "温馨提示",
|
|
|
content: "当前节视频已学完,继续学习下一节?",
|
|
|
success: async (res) => {
|
|
|
if (res.confirm) {
|
|
|
+ this.hideplayer=false;
|
|
|
this.videoCurrentTime=0;
|
|
|
this.moduleId = data.moduleId;
|
|
|
this.chapterId = data.chapterId;
|
|
@@ -1852,6 +1855,9 @@
|
|
|
}
|
|
|
this.updateChapterOpen(true);
|
|
|
}
|
|
|
+ else if(res.cancel){
|
|
|
+ this.hideplayer=false;
|
|
|
+ }
|
|
|
},
|
|
|
});
|
|
|
}
|