只有一个音频播放不完整。。。。
wx.playBackgroundAudio({
dataUrl: thatData.imgServer + thatData.pages[thatData.current - 1].mp3Url,
title: thatData.pages[thatData.current - 1].songname,
coverImgUrl: thatData.songImg,
success: function (res) {
that.setData({
isok: true
})
console.log(thatData.imgServer + thatData.pages[thatData.current - 1].mp3Url)
wx.onBackgroundAudioStop(function () {
console.log("thatData.isStop---" + thatData.isStop);
//console.log("thatData.isSomeRead---" + thatData.isSomeRead);
if (!thatData.isStop) {
if (!thatData.isSomeRead) {
//setTimeout(function () {
that.turnpage();
// }, 2000)
}
}
})
}
})
可以看一下是否跟这个问题一致: