Showing
1 changed file
with
16 additions
and
8 deletions
| @@ -61,10 +61,14 @@ export struct ZhSingleRow02 { | @@ -61,10 +61,14 @@ export struct ZhSingleRow02 { | ||
| 61 | if (this.moreWidth > this.initMoreWidth * 2) { | 61 | if (this.moreWidth > this.initMoreWidth * 2) { |
| 62 | if (this.compDTO?.objectType === '11') { | 62 | if (this.compDTO?.objectType === '11') { |
| 63 | ProcessUtils.jumpChannelTab(this.compDTO.objectId, this.compDTO.pageId as string, this.compDTO.objectTitle) | 63 | ProcessUtils.jumpChannelTab(this.compDTO.objectId, this.compDTO.pageId as string, this.compDTO.objectTitle) |
| 64 | - } else if (this.compDTO?.objectType === '5') { | ||
| 65 | - ProcessUtils._gotoSpecialTopic(this.compDTO.linkUrl) | ||
| 66 | - } else if (this.compDTO?.objectType === '6') { | ||
| 67 | - ProcessUtils._gotoDefaultWeb(this.compDTO.linkUrl) | 64 | + } else { |
| 65 | + const contentDTO: ContentDTO = { | ||
| 66 | + objectId: this.compDTO.objectId, | ||
| 67 | + objectType: this.compDTO.objectType, | ||
| 68 | + linkUrl: this.compDTO.linkUrl, | ||
| 69 | + pageId: this.compDTO.pageId | ||
| 70 | + } as ContentDTO | ||
| 71 | + ProcessUtils.processPage(contentDTO) | ||
| 68 | } | 72 | } |
| 69 | } | 73 | } |
| 70 | } | 74 | } |
| @@ -181,10 +185,14 @@ export struct ZhSingleRow02 { | @@ -181,10 +185,14 @@ export struct ZhSingleRow02 { | ||
| 181 | .onClick(() => { | 185 | .onClick(() => { |
| 182 | if (this.compDTO?.objectType === '11') { | 186 | if (this.compDTO?.objectType === '11') { |
| 183 | ProcessUtils.jumpChannelTab(this.compDTO.objectId, this.compDTO.pageId as string, this.compDTO.objectTitle) | 187 | ProcessUtils.jumpChannelTab(this.compDTO.objectId, this.compDTO.pageId as string, this.compDTO.objectTitle) |
| 184 | - } else if (this.compDTO?.objectType === '5') { | ||
| 185 | - ProcessUtils._gotoSpecialTopic(this.compDTO.linkUrl) | ||
| 186 | - } else if (this.compDTO?.objectType === '6') { | ||
| 187 | - ProcessUtils._gotoDefaultWeb(this.compDTO.linkUrl) | 188 | + } else { |
| 189 | + const contentDTO: ContentDTO = { | ||
| 190 | + objectId: this.compDTO.objectId, | ||
| 191 | + objectType: this.compDTO.objectType, | ||
| 192 | + linkUrl: this.compDTO.linkUrl, | ||
| 193 | + pageId: this.compDTO.pageId | ||
| 194 | + } as ContentDTO | ||
| 195 | + ProcessUtils.processPage(contentDTO) | ||
| 188 | } | 196 | } |
| 189 | }) | 197 | }) |
| 190 | } | 198 | } |
-
Please register or login to post a comment