Commit e41cb573 by kyle

修改app不能监测到总时长,修改柱状图不显示

parent b3a0d43b
......@@ -420,7 +420,7 @@
}, 20 * 1000)
}
},
pause() {
pause(e) {
// 暂停播放
if (this.timer) {
clearInterval(this.timer)
......@@ -432,7 +432,7 @@
this.saveVideoPlayback();
}
},
ended() {
ended(e) {
// 播放到末尾
if (this.timer) {
clearInterval(this.timer)
......@@ -440,6 +440,7 @@
this.saveVideoPlayback();
},
timeupdate(e) {
this.totalTime = e.detail.duration;
// 播放进度变化
this.viewTime = e.detail.currentTime > this.totalTime ? this.totalTime : e.detail.currentTime;
if (this.courseInfo.status === 1) {
......
......@@ -162,11 +162,12 @@
categories.push(this.studyInfos[j].month.split('-')[1]);
data.push({value:this.studyInfos[j]['studyTime'],color:'#9EB4FF'});
}
this.currentDate = this.month = this.studyInfos[this.studyInfos.length - 1].month;
this.month = this.studyInfos[this.studyInfos.length - 1].month;
this.currentDate = new Date(this.month).toDateString();
}
this.chartData.categories = categories;
this.chartData.series = [{name:'月',data:data}];
this.userStudyTime()
this.userStudyTime();
}
})
},
......@@ -217,7 +218,7 @@
this.userStudyTime();
}
},
onLoad() {
mounted() {
this.userStudyCount()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment