wangliang_wd

feat:优化早晚报语音播放问题

... ... @@ -147,6 +147,21 @@ export struct MorningEveningPaperComponent {
console.log(TAG, 'this.currentStatus', val)
this.currentStatus = val
const newsInfo = this.AudioSuspension.newsInfo();
if (newsInfo) {
const parsedInfo: newsInfo = JSON.parse(newsInfo);
const url = parsedInfo.url;
let hasURl = false
this.compInfoBean?.compList[0].audioDataList.forEach((item,index)=>{
if (item.audioUrl === url) {
hasURl = true
}
})
///如果当前播放的不是早晚报列表的,则不需要继续播放
if (!hasURl) return
}
if (this.currentStatus === 5) {
let audioIndex = 0
this.compInfoBean?.compList[0].audioDataList.forEach((item,index)=>{
... ...