Showing
1 changed file
with
6 additions
and
2 deletions
| @@ -41,8 +41,12 @@ export struct CompParser { | @@ -41,8 +41,12 @@ export struct CompParser { | ||
| 41 | aboutToAppear(): void { | 41 | aboutToAppear(): void { |
| 42 | // 轮播图屏蔽音频类型稿件 | 42 | // 轮播图屏蔽音频类型稿件 |
| 43 | if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) { | 43 | if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) { |
| 44 | - this.audioItems = this.compDTO.operDataList.filter(item => item.appStyle === '13') | ||
| 45 | - this.noneAudioItems = this.compDTO.operDataList.filter(item => item.appStyle !== '13') | 44 | + this.audioItems = this.compDTO.operDataList.filter(item => { |
| 45 | + return item.objectType === '13' || item.linkUrl.includes('audiotopic') | ||
| 46 | + }) | ||
| 47 | + this.noneAudioItems = this.compDTO.operDataList.filter(item => { | ||
| 48 | + return item.objectType !== '13' && !item.linkUrl.includes('audiotopic') | ||
| 49 | + }) | ||
| 46 | this.compDTO.operDataList = this.noneAudioItems; | 50 | this.compDTO.operDataList = this.noneAudioItems; |
| 47 | } | 51 | } |
| 48 | } | 52 | } |
-
Please register or login to post a comment