playerMusicTap:function(event){
var that = this;
//取得音樂播放狀態
wx.getBackgroundAudioPlayerState({
#成功:函數(res) {
const status = res.status;
if(status != 1){
wx.playBackgroundAudio({
dataUrl: newsData.initData[that.data.newsid].music.url,
title: newsData.initData[that.data.newsid].music.title,
coverImgUrl: ' '
})
that.setData({
isPlayer:true
})
}else{
wx.pauseBackgroundAudio();
that.setData({
#isPlayer: false
})
##}} })
##}
#