提交 804056a7 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 b2a64547
......@@ -120,7 +120,8 @@ Page({
this.data.progress.cpt = cpt
}
// 是否显示背景播放按钮
this.setData({ hasBackgroundAudio: this.data.progress.progress === 100 })
const hasBackgroundAudio = this.data.progress.progress === 100
this.setData({ hasBackgroundAudio })
// 跳转播放进度
const player = this.selectComponent('#player')
if (player) {
......@@ -128,6 +129,10 @@ Page({
this.setData({ 'progress.cpt': startTime })
player.seek(startTime)
console.log(startTime)
// 退出背景播放
if (!hasBackgroundAudio) {
player.onExitBackgroundPlayback()
}
}
this.setData({ 'progress.loaded': true })
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论