2023.09.01

This commit is contained in:
@fawn-nine
2023-09-01 18:04:41 +08:00
parent ef6c52c0d4
commit 7b9044f4df
13 changed files with 1135 additions and 260 deletions

View File

@@ -121,13 +121,19 @@
loading: true, //锁 加载
audioMannager:null ,// 背景音乐
saveInterVal:null,
fengImg:''
fengImg:'',
}
},
created() {
this.libLIst = this.$bgm.musicList
this.fengImg = this.userInfo.fengImg
this.fengImg = this.userInfo.fengImg
this.userInfo.playTimes ? this.setUserInfo({'currentTime': this.userInfo.playTimes}) : ''
console.log(this.userInfo.currentTime,'组件读到的历史记录')
},
computed: {
...mapState(['userInfo']),
timer() {
@@ -195,33 +201,6 @@
},
// 存储听书进度
saveListenRate(){
console.log('存储听书进度')
this.$emit('saveRate',this.currentTime)
},
// 顺序播放
orderPlay(val){
// console.log(val)
if(val){
uni.showToast({
title:'开启顺序播放',
icon:'none'
})
this.orderPlayBtn = true
}else{
uni.showToast({
title:'关闭顺序播放',
icon:'none'
})
this.orderPlayBtn = false
}
},
// 显示播放列表
showLib(){
this.LibVisible = true
@@ -236,18 +215,7 @@
}else{
this.$bgm.play()
}
console.log('拖动')
//此处滑动进度条--开始播放
// if (this.slideYes && !this.succes) {
// //#ifdef H5
// this.videoContext.play()
// //#endif
// //#ifndef H5
// this.videoContext.play()
// //#endif
// this.succes = true
// }
console.log('拖动')
this.$bgm.seek(data.detail.value) //获取秒数
},