|
@@ -2439,7 +2439,7 @@ export default {
|
|
|
isLastVideo() {
|
|
|
try {
|
|
|
let { sectionId, chapterId } = this.sectionItem;
|
|
|
- let lastVideo =this.allVideoList.slice(-1)[0];
|
|
|
+ let lastVideo = this.allVideoList.slice(-1)[0];
|
|
|
return (
|
|
|
sectionId == lastVideo.sectionId && chapterId == lastVideo.chapterId
|
|
|
);
|
|
@@ -2529,13 +2529,13 @@ export default {
|
|
|
...mapMutations(["getCartCount"]),
|
|
|
...mapActions(["getUserInfo"]),
|
|
|
pauseVideo() {
|
|
|
- let _p = this.player
|
|
|
+ let _p = this.player;
|
|
|
if (document.visibilityState === "hidden") {
|
|
|
- _p && _p .j2s_pauseVideo();
|
|
|
+ _p && _p.j2s_pauseVideo();
|
|
|
} else {
|
|
|
if (_p) {
|
|
|
- if(parseInt(_p .j2s_getCurrentTime())<_p .j2s_getDuration()){
|
|
|
- this.player.j2s_resumeVideo();
|
|
|
+ if (parseInt(_p.j2s_getCurrentTime()) < _p.j2s_getDuration()) {
|
|
|
+ this.player.j2s_resumeVideo();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -4435,9 +4435,7 @@ export default {
|
|
|
goodsType: 1, // 商品类型 1视频2题库 3补考 4前培 5虚拟赠送题库 6直播
|
|
|
orderGoodsId: this.orderGoodsId,
|
|
|
},
|
|
|
- }).then((res) => {
|
|
|
-
|
|
|
- });
|
|
|
+ }).then((res) => {});
|
|
|
},
|
|
|
/**
|
|
|
* 点击节
|
|
@@ -4780,7 +4778,7 @@ export default {
|
|
|
chapterId: parseInt(self.chapterId),
|
|
|
moduleId: parseInt(self.moduleId),
|
|
|
};
|
|
|
- this.$request.getPhotoLastRecord(data).then((res) => {;
|
|
|
+ this.$request.getPhotoLastRecord(data).then((res) => {
|
|
|
//清空历史数据
|
|
|
self.photoHistoryList = [];
|
|
|
this.photoIndex = 0;
|
|
@@ -4872,8 +4870,8 @@ export default {
|
|
|
|
|
|
//配置随机拍照时间
|
|
|
configPhoto() {
|
|
|
- if(this.photoList.length){
|
|
|
- return
|
|
|
+ if (this.photoList.length) {
|
|
|
+ return;
|
|
|
}
|
|
|
var polyvPlayerContext = this.player;
|
|
|
let totalVideoTime = polyvPlayerContext.j2s_getDuration();
|