Showing
1 changed file
with
19 additions
and
3 deletions
| 1 | import measure from '@ohos.measure' | 1 | import measure from '@ohos.measure' |
| 2 | -import { ContentDetailDTO } from 'wdBean/Index' | 2 | +import { ContentDetailDTO, Params } from 'wdBean/Index' |
| 3 | import { DetailDialog } from './DetailDialog' | 3 | import { DetailDialog } from './DetailDialog' |
| 4 | -import { DateTimeUtils } from 'wdKit' | 4 | +import { DateTimeUtils, ToastUtils } from 'wdKit' |
| 5 | +import { WDRouterPage, WDRouterRule } from 'wdRouter' | ||
| 5 | 6 | ||
| 6 | const TAG = 'PlayerTitleView'; | 7 | const TAG = 'PlayerTitleView'; |
| 7 | 8 | ||
| @@ -174,7 +175,22 @@ export struct PlayerTitleView { | @@ -174,7 +175,22 @@ export struct PlayerTitleView { | ||
| 174 | if (this.getIcon()) { | 175 | if (this.getIcon()) { |
| 175 | Image(this.getIcon()).height(11).margin({ left: 4, top: 3 }) | 176 | Image(this.getIcon()).height(11).margin({ left: 4, top: 3 }) |
| 176 | } | 177 | } |
| 177 | - }.margin({ bottom: 8 }) | 178 | + } |
| 179 | + .zIndex(100) | ||
| 180 | + .margin({ bottom: 8 }) | ||
| 181 | + .onClick(() => { | ||
| 182 | + // console.log(TAG, '点击号主@信息') | ||
| 183 | + // 跳转到号主页 | ||
| 184 | + if (this.contentDetailData.rmhInfo?.cnMainControl === 1) { | ||
| 185 | + const params: Params = { | ||
| 186 | + creatorId: this.contentDetailData.rmhInfo.rmhId, | ||
| 187 | + pageID: '' | ||
| 188 | + } | ||
| 189 | + WDRouterRule.jumpWithPage(WDRouterPage.peopleShipHomePage, params) | ||
| 190 | + } else { | ||
| 191 | + ToastUtils.showToast("暂时无法查看该创作者主页", 2000); | ||
| 192 | + } | ||
| 193 | + }) | ||
| 178 | 194 | ||
| 179 | } | 195 | } |
| 180 | 196 |
-
Please register or login to post a comment