mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 09:56:45 +08:00
【bug:SZX-1217】移动端断点续学的问题。
This commit is contained in:
@@ -749,6 +749,17 @@ export default {
|
||||
})
|
||||
},
|
||||
loadDetail() {
|
||||
// 切换课程前重置当前学习记录,避免旧数据干扰
|
||||
this.curContent = Object.assign({}, this.curContent, {
|
||||
id: '',
|
||||
studyItemId: '',
|
||||
lastStudyTime: 0,
|
||||
status: 1,
|
||||
progress: 0
|
||||
})
|
||||
this.videoPlayingTime = 0
|
||||
this.preTime = -1
|
||||
|
||||
let $this = this;
|
||||
uni.showLoading({title: '加载中...'})
|
||||
apiCourseStudy.studyIndex(this.courseId).then(rs => {
|
||||
@@ -1181,9 +1192,6 @@ export default {
|
||||
}
|
||||
|
||||
}
|
||||
// 切换课程之后 studyItemId 没有及时清理, 导致 chrome 系列的浏览器
|
||||
// 切换课程之后不会重新计算观看时间位置
|
||||
this.curContent.studyItemId = ''
|
||||
},
|
||||
followUser(tea) {
|
||||
//实现关注处理
|
||||
|
||||
Reference in New Issue
Block a user