Showing
3 changed files
with
8 additions
and
3 deletions
| @@ -42,8 +42,12 @@ export struct CompParser { | @@ -42,8 +42,12 @@ export struct CompParser { | ||
| 42 | aboutToAppear(): void { | 42 | aboutToAppear(): void { |
| 43 | // 轮播图屏蔽音频类型稿件 | 43 | // 轮播图屏蔽音频类型稿件 |
| 44 | if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) { | 44 | if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) { |
| 45 | - this.audioItems = this.compDTO.operDataList.filter(item => item.appStyle === '13') | ||
| 46 | - this.noneAudioItems = this.compDTO.operDataList.filter(item => item.appStyle !== '13') | 45 | + this.audioItems = this.compDTO.operDataList.filter(item => { |
| 46 | + return item.objectType === '13' || item.linkUrl.includes('audiotopic') | ||
| 47 | + }) | ||
| 48 | + this.noneAudioItems = this.compDTO.operDataList.filter(item => { | ||
| 49 | + return item.objectType !== '13' && !item.linkUrl.includes('audiotopic') | ||
| 50 | + }) | ||
| 47 | this.compDTO.operDataList = this.noneAudioItems; | 51 | this.compDTO.operDataList = this.noneAudioItems; |
| 48 | } | 52 | } |
| 49 | } | 53 | } |
| @@ -73,7 +73,7 @@ export struct OperRowListView { | @@ -73,7 +73,7 @@ export struct OperRowListView { | ||
| 73 | @Prop operationButtonList?: string[] = ['comment', 'collect', 'share'] // 组件展示条件 | 73 | @Prop operationButtonList?: string[] = ['comment', 'collect', 'share'] // 组件展示条件 |
| 74 | @State needLike: boolean = true | 74 | @State needLike: boolean = true |
| 75 | @ObjectLink publishCommentModel: publishCommentModel | 75 | @ObjectLink publishCommentModel: publishCommentModel |
| 76 | - @State styleType: number = 1 | 76 | + @State styleType: number = -1 |
| 77 | @State showCommentIcon: boolean = true | 77 | @State showCommentIcon: boolean = true |
| 78 | @State bgColor: ResourceColor = Color.White | 78 | @State bgColor: ResourceColor = Color.White |
| 79 | @State interactData: InteractDataDTO = {} as InteractDataDTO | 79 | @State interactData: InteractDataDTO = {} as InteractDataDTO |
| @@ -97,6 +97,7 @@ export struct DetailDialog { | @@ -97,6 +97,7 @@ export struct DetailDialog { | ||
| 97 | contentDetailData: this.contentDetailData, | 97 | contentDetailData: this.contentDetailData, |
| 98 | publishCommentModel: this.publishCommentModel, | 98 | publishCommentModel: this.publishCommentModel, |
| 99 | showCommentIcon: true, | 99 | showCommentIcon: true, |
| 100 | + styleType: 1, | ||
| 100 | onBack: () => { | 101 | onBack: () => { |
| 101 | WindowModel.shared.setWindowLayoutFullScreen(false) | 102 | WindowModel.shared.setWindowLayoutFullScreen(false) |
| 102 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) | 103 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) |
-
Please register or login to post a comment