Showing
3 changed files
with
15 additions
and
1 deletions
| @@ -83,7 +83,7 @@ export struct MorningEveningPaperComponent { | @@ -83,7 +83,7 @@ export struct MorningEveningPaperComponent { | ||
| 83 | @State currentStatus: number | string |undefined = 0; | 83 | @State currentStatus: number | string |undefined = 0; |
| 84 | 84 | ||
| 85 | @State dailyPaperTopicPageId: string = '' | 85 | @State dailyPaperTopicPageId: string = '' |
| 86 | - | 86 | + @State isPlayArticleDetails: boolean = false |
| 87 | private audioDataList: AudioDataList[] = [] | 87 | private audioDataList: AudioDataList[] = [] |
| 88 | private playerController: WDPlayerController = new WDPlayerController(); | 88 | private playerController: WDPlayerController = new WDPlayerController(); |
| 89 | simpleAudioDialog: CustomDialogController = new CustomDialogController({ | 89 | simpleAudioDialog: CustomDialogController = new CustomDialogController({ |
| @@ -143,7 +143,16 @@ export struct MorningEveningPaperComponent { | @@ -143,7 +143,16 @@ export struct MorningEveningPaperComponent { | ||
| 143 | this.fetchData() | 143 | this.fetchData() |
| 144 | } | 144 | } |
| 145 | } | 145 | } |
| 146 | + | ||
| 147 | + EmitterUtils.receiveEvent(EmitterEventId.AUDIO_ARTICLE_DETAILS,()=>{ | ||
| 148 | + this.isPlayArticleDetails = true | ||
| 149 | + this.currentStatus = 3 | ||
| 150 | + }) | ||
| 151 | + | ||
| 146 | EmitterUtils.receiveEvent(EmitterEventId.AUDIO_CHANGE_STATUS, (val: number | string | undefined) => { | 152 | EmitterUtils.receiveEvent(EmitterEventId.AUDIO_CHANGE_STATUS, (val: number | string | undefined) => { |
| 153 | + | ||
| 154 | + if (this.isPlayArticleDetails) return | ||
| 155 | + | ||
| 147 | console.log(TAG, 'this.currentStatus', val) | 156 | console.log(TAG, 'this.currentStatus', val) |
| 148 | this.currentStatus = val | 157 | this.currentStatus = val |
| 149 | 158 | ||
| @@ -479,6 +488,7 @@ export struct MorningEveningPaperComponent { | @@ -479,6 +488,7 @@ export struct MorningEveningPaperComponent { | ||
| 479 | // dialog.open() | 488 | // dialog.open() |
| 480 | // this.playerController.firstPlay(this.audioPlayUrl, this.audioTitle) | 489 | // this.playerController.firstPlay(this.audioPlayUrl, this.audioTitle) |
| 481 | // SPHelper.default.save(SpConstants.APP_NEWS_INFO_DATA_MODEL, JSON.stringify(this.compInfoBean)) | 490 | // SPHelper.default.save(SpConstants.APP_NEWS_INFO_DATA_MODEL, JSON.stringify(this.compInfoBean)) |
| 491 | + this.isPlayArticleDetails = false | ||
| 482 | this.AudioSuspension.setPlayerUrl(this.audioPlayUrl, this.audioTitle) | 492 | this.AudioSuspension.setPlayerUrl(this.audioPlayUrl, this.audioTitle) |
| 483 | // console.log(TAG, "this.audioPlayUrl = " + this.audioPlayUrl) | 493 | // console.log(TAG, "this.audioPlayUrl = " + this.audioPlayUrl) |
| 484 | // console.log("TAG", "cj compInfoBean onClick2 = " + this.isAudioPlaying) | 494 | // console.log("TAG", "cj compInfoBean onClick2 = " + this.isAudioPlaying) |
| @@ -410,6 +410,7 @@ export struct OperRowListView { | @@ -410,6 +410,7 @@ export struct OperRowListView { | ||
| 410 | .gesture( | 410 | .gesture( |
| 411 | TapGesture() | 411 | TapGesture() |
| 412 | .onAction((event: GestureEvent) => { | 412 | .onAction((event: GestureEvent) => { |
| 413 | + EmitterUtils.sendEvent(EmitterEventId.AUDIO_ARTICLE_DETAILS) | ||
| 413 | this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle, this.contentDetailData.newsId + "", this.contentDetailData.newsSourceName) | 414 | this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle, this.contentDetailData.newsId + "", this.contentDetailData.newsSourceName) |
| 414 | TrackingButton.click('suspendedWindow',this.pageId,this.pageName) | 415 | TrackingButton.click('suspendedWindow',this.pageId,this.pageName) |
| 415 | })) | 416 | })) |
-
Please register or login to post a comment