Showing
5 changed files
with
49 additions
and
1 deletions
| @@ -171,6 +171,17 @@ export class ProcessUtils { | @@ -171,6 +171,17 @@ export class ProcessUtils { | ||
| 171 | Logger.debug(TAG, `gotoMultiPictureListPage`); | 171 | Logger.debug(TAG, `gotoMultiPictureListPage`); |
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | + public static _gotoSpecialTopic(linkUrl: string) { | ||
| 175 | + let taskAction: Action = { | ||
| 176 | + type: 'JUMP_INNER_NEW_PAGE', | ||
| 177 | + params: { | ||
| 178 | + url: linkUrl, | ||
| 179 | + pageID: 'SPACIAL_TOPIC_PAGE', | ||
| 180 | + } as Params, | ||
| 181 | + }; | ||
| 182 | + WDRouterRule.jumpWithAction(taskAction) | ||
| 183 | + } | ||
| 184 | + | ||
| 174 | public static gotoSpecialTopic(content: ContentDTO) { | 185 | public static gotoSpecialTopic(content: ContentDTO) { |
| 175 | let taskAction: Action = { | 186 | let taskAction: Action = { |
| 176 | type: 'JUMP_INNER_NEW_PAGE', | 187 | type: 'JUMP_INNER_NEW_PAGE', |
| @@ -182,6 +193,16 @@ export class ProcessUtils { | @@ -182,6 +193,16 @@ export class ProcessUtils { | ||
| 182 | WDRouterRule.jumpWithAction(taskAction) | 193 | WDRouterRule.jumpWithAction(taskAction) |
| 183 | } | 194 | } |
| 184 | 195 | ||
| 196 | + public static _gotoDefaultWeb(linkUrl: string) { | ||
| 197 | + let taskAction: Action = { | ||
| 198 | + type: 'JUMP_H5_BY_WEB_VIEW', | ||
| 199 | + params: { | ||
| 200 | + url: linkUrl, | ||
| 201 | + } as Params, | ||
| 202 | + }; | ||
| 203 | + WDRouterRule.jumpWithAction(taskAction) | ||
| 204 | + } | ||
| 205 | + | ||
| 185 | public static gotoDefaultWeb(content: ContentDTO) { | 206 | public static gotoDefaultWeb(content: ContentDTO) { |
| 186 | let taskAction: Action = { | 207 | let taskAction: Action = { |
| 187 | type: 'JUMP_H5_BY_WEB_VIEW', | 208 | type: 'JUMP_H5_BY_WEB_VIEW', |
| @@ -34,4 +34,7 @@ export interface CompDTO { | @@ -34,4 +34,7 @@ export interface CompDTO { | ||
| 34 | * 组件内容源类型 (LIVE_HORIZONTAL_CARD\LIVE_RESERVATION\LIVE_LARGE_CARD\LIVE_END\LIVE_MONTHLY_RANKING ) | 34 | * 组件内容源类型 (LIVE_HORIZONTAL_CARD\LIVE_RESERVATION\LIVE_LARGE_CARD\LIVE_END\LIVE_MONTHLY_RANKING ) |
| 35 | */ | 35 | */ |
| 36 | dataSourceType: string; | 36 | dataSourceType: string; |
| 37 | + | ||
| 38 | + pageId?: string; | ||
| 39 | + objectType?: string; | ||
| 37 | } | 40 | } |
| @@ -65,7 +65,11 @@ export struct ZhGridLayout03 { | @@ -65,7 +65,11 @@ export struct ZhGridLayout03 { | ||
| 65 | } | 65 | } |
| 66 | .width('100%') | 66 | .width('100%') |
| 67 | .onClick((event: ClickEvent) => { | 67 | .onClick((event: ClickEvent) => { |
| 68 | - ProcessUtils.processPage(item) | 68 | + if (item.objectType === '11') { |
| 69 | + ProcessUtils.jumpChannelTab(item.objectId, item.pageId) | ||
| 70 | + } else { | ||
| 71 | + ProcessUtils.processPage(item) | ||
| 72 | + } | ||
| 69 | }) | 73 | }) |
| 70 | } | 74 | } |
| 71 | } | 75 | } |
| @@ -36,6 +36,15 @@ export struct ZhSingleRow04 { | @@ -36,6 +36,15 @@ export struct ZhSingleRow04 { | ||
| 36 | .width(14) | 36 | .width(14) |
| 37 | .height(14) | 37 | .height(14) |
| 38 | } | 38 | } |
| 39 | + .onClick(() => { | ||
| 40 | + if (this.compDTO?.objectType === '11') { | ||
| 41 | + ProcessUtils.jumpChannelTab(this.compDTO.objectId, this.compDTO.pageId as string) | ||
| 42 | + } else if (this.compDTO?.objectType === '5') { | ||
| 43 | + ProcessUtils._gotoSpecialTopic(this.compDTO.linkUrl) | ||
| 44 | + } else if (this.compDTO?.objectType === '6') { | ||
| 45 | + ProcessUtils._gotoDefaultWeb(this.compDTO.linkUrl) | ||
| 46 | + } | ||
| 47 | + }) | ||
| 39 | } | 48 | } |
| 40 | .justifyContent(FlexAlign.SpaceBetween) | 49 | .justifyContent(FlexAlign.SpaceBetween) |
| 41 | .margin({ top: 8, bottom: 8 }) | 50 | .margin({ top: 8, bottom: 8 }) |
| @@ -29,6 +29,17 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { | @@ -29,6 +29,17 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { | ||
| 29 | .width(14) | 29 | .width(14) |
| 30 | .height(14) | 30 | .height(14) |
| 31 | } | 31 | } |
| 32 | + .visibility(this.compDTO?.objectType === '0' ? Visibility.None : Visibility.Visible) | ||
| 33 | + .onClick(() => { | ||
| 34 | + if (this.compDTO?.objectType === '11') { | ||
| 35 | + ProcessUtils.jumpChannelTab(this.compDTO.objectId, this.compDTO.pageId as string) | ||
| 36 | + } else if (this.compDTO?.objectType === '5') { | ||
| 37 | + ProcessUtils._gotoSpecialTopic(this.compDTO.linkUrl) | ||
| 38 | + } else if (this.compDTO?.objectType === '6') { | ||
| 39 | + ProcessUtils._gotoDefaultWeb(this.compDTO.linkUrl) | ||
| 40 | + } | ||
| 41 | + }) | ||
| 42 | + | ||
| 32 | }.justifyContent(FlexAlign.SpaceBetween) | 43 | }.justifyContent(FlexAlign.SpaceBetween) |
| 33 | .padding({ left: 16, right: 16 }) | 44 | .padding({ left: 16, right: 16 }) |
| 34 | .margin({ top: 8, bottom: 8 }) | 45 | .margin({ top: 8, bottom: 8 }) |
-
Please register or login to post a comment