|
@@ -772,6 +772,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
+ console.log('index:--onLoad')
|
|
|
this.courseId = Number(option.id) || '';
|
|
|
this.goodsId = Number(option.goodsId);
|
|
|
this.orderGoodsId = Number(option.orderGoodsId) || '';
|
|
@@ -787,16 +788,25 @@ export default {
|
|
|
|
|
|
this.$store.getters.dictObj;
|
|
|
},
|
|
|
+ onReady() {
|
|
|
+ console.log('index:--onReady')
|
|
|
+ },
|
|
|
onShow() {
|
|
|
+ console.log('index:--onShow')
|
|
|
if (this.$method.isGoLogin()) { // 从公众号消息进来的没登录需要跳到登录页,登录后返回
|
|
|
return;
|
|
|
}
|
|
|
this.courseCourseList();
|
|
|
},
|
|
|
onUnload() {
|
|
|
+ console.log('index:--onUnload')
|
|
|
this.originUnload()
|
|
|
},
|
|
|
+ onHide() {
|
|
|
+ console.log('index:--onHide')
|
|
|
+ },
|
|
|
mounted() {
|
|
|
+ console.log('index:--mounted')
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations(["updateChapterOpen","updateLiveLast"]),
|
|
@@ -989,9 +999,9 @@ export default {
|
|
|
this.getGoodsDetail();
|
|
|
this.getAnswerList();
|
|
|
this.studyRecordMenuAllList();
|
|
|
- this.answerTimer = setInterval(() => {
|
|
|
- this.getAnswerList();
|
|
|
- }, 5000);
|
|
|
+ // this.answerTimer = setInterval(() => {
|
|
|
+ // this.getAnswerList();
|
|
|
+ // }, 5000);
|
|
|
let noteSecond = Number(this.option.noteSecond);
|
|
|
console.log('noteSecondnoteSecond:', noteSecond, this.option)
|
|
|
if (noteSecond > 0) {
|
|
@@ -1779,6 +1789,7 @@ export default {
|
|
|
return {};
|
|
|
},
|
|
|
loadedmetadata(e) {
|
|
|
+ console.log('999999999999999999999');
|
|
|
var polyvPlayerContext = this.selectComponent("#playerVideo");
|
|
|
this.hasStart = true;
|
|
|
uni.$off('playPause')
|