ios真机调试
This commit is contained in:
@@ -206,14 +206,21 @@
|
||||
|
||||
// 拖动进度条
|
||||
sliderChange(data) {
|
||||
|
||||
|
||||
// console.log(data,'拖动进度条',data)
|
||||
|
||||
|
||||
|
||||
if(this.$bgm._options.src == ''){
|
||||
this.$music.playBgm({mute:false})
|
||||
// this.$bgm.pause()
|
||||
}else{
|
||||
this.$bgm.play()
|
||||
}
|
||||
console.log('拖动')
|
||||
this.$bgm.seek(data.detail.value) //获取秒数
|
||||
console.log('拖动',data.detail.value)
|
||||
uni.getBackgroundAudioManager().seek(data.detail.value)
|
||||
// this.$bgm.seek(data.detail.value) //获取秒数
|
||||
|
||||
},
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
<!-- 暂时去掉关闭按钮 -->
|
||||
<!-- <u-icon name="close" color="#61e781" size="20" style="background-color: #fff;border-radius: 100%;" v-if="!showBig" @click="closePlayer"></u-icon> -->
|
||||
<u-icon name="close" color="#61e781" size="20" style="background-color: #fff;border-radius: 100%;" v-if="!showBig" @click="closePlayer"></u-icon>
|
||||
|
||||
<!-- 暂时去掉关闭按钮 -->
|
||||
|
||||
@@ -79,8 +79,11 @@
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.$music.playBgm({mute:false})
|
||||
|
||||
this.$music.playBgm({mute:false})
|
||||
|
||||
|
||||
|
||||
},
|
||||
created() {
|
||||
// this.fengImg = this.$music.getCoverImg()
|
||||
|
||||
Reference in New Issue
Block a user