Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-11-05 15:34:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
302f15f232697571e2e8be14c5233b7c2e4863ea
302f15f2
1 parent
69f6c22d
feat:优化早晚报语音播放问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
View file @
302f15f
...
...
@@ -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)=>{
...
...
Please
register
or
login
to post a comment