|
@@ -982,7 +982,7 @@ export default {
|
|
|
this.courseId = Number(option.id) || "";
|
|
|
this.goodsId = Number(option.goodsId);
|
|
|
this.orderGoodsId = Number(option.orderGoodsId) || "";
|
|
|
- this.gradeId = option.gradeId;
|
|
|
+ this.gradeId = Number(option.gradeId);
|
|
|
this.option = option;
|
|
|
// 公众号模板消息的数据埋点
|
|
|
option.informId && this.clickOfficial(option.informId);
|
|
@@ -2593,7 +2593,7 @@ export default {
|
|
|
}
|
|
|
// #endif
|
|
|
|
|
|
- this.recordObj = { videoCurrentTime: item.noteSecond };
|
|
|
+ this.recordObj = { videoCurrentTime: item.noteSecond};
|
|
|
if (this.recordObj.videoCurrentTime) {
|
|
|
this.needSeek = true; //需要跳转到播放记录
|
|
|
}
|
|
@@ -2645,6 +2645,9 @@ export default {
|
|
|
orderGoodsId: this.orderGoodsId,
|
|
|
};
|
|
|
this.$api.recordLast(data).then((res) => {
|
|
|
+ if(res.data.data.videoCurrentTime>3){
|
|
|
+ res.data.data.videoCurrentTime-=3
|
|
|
+ }
|
|
|
resolve(res.data.data);
|
|
|
});
|
|
|
});
|
|
@@ -3165,6 +3168,7 @@ export default {
|
|
|
}
|
|
|
if (this.needSeek) {
|
|
|
// var polyvPlayerContext = this.selectComponent("#playerVideo");
|
|
|
+
|
|
|
if (this.recordObj.videoCurrentTime) {
|
|
|
polyvPlayerContext.seek(this.recordObj.videoCurrentTime);
|
|
|
this.seekTime = this.$method.secondToDate(
|
|
@@ -3606,8 +3610,7 @@ export default {
|
|
|
if (self.goodsData.buyNote) {
|
|
|
this.baseHandoutTipList();
|
|
|
}
|
|
|
- console.log(this.goodsData, 798);
|
|
|
- self.gradeId = self.goodsData.gradeId;
|
|
|
+ !self.gradeId && (self.gradeId = self.goodsData.gradeId);
|
|
|
self.erJianErZao = self.goodsData.erJianErZao;
|
|
|
self.jjShiGongYuan = self.goodsData.jjShiGongYuan;
|
|
|
this.courseBusiness(this.goodsData.businessId);
|