Showing
2 changed files
with
15 additions
and
1 deletions
| @@ -2,7 +2,7 @@ import { Action, ContentDTO, Params, PhotoListBean, commentInfo } from 'wdBean'; | @@ -2,7 +2,7 @@ import { Action, ContentDTO, Params, PhotoListBean, commentInfo } from 'wdBean'; | ||
| 2 | import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'; | 2 | import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'; |
| 3 | import { Logger } from 'wdKit'; | 3 | import { Logger } from 'wdKit'; |
| 4 | import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils'; | 4 | import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils'; |
| 5 | -import { WDRouterRule } from '../router/WDRouterRule'; | 5 | +import { WDRouterRule, WDRouterPage } from '../../../../Index'; |
| 6 | import { ContentConstants } from 'wdConstant'; | 6 | import { ContentConstants } from 'wdConstant'; |
| 7 | import { common, Want } from '@kit.AbilityKit'; | 7 | import { common, Want } from '@kit.AbilityKit'; |
| 8 | import { BusinessError } from '@kit.BasicServicesKit'; | 8 | import { BusinessError } from '@kit.BasicServicesKit'; |
| @@ -398,4 +398,14 @@ export class ProcessUtils { | @@ -398,4 +398,14 @@ export class ProcessUtils { | ||
| 398 | public static jumpChannelTab(channelId: string, pageId: string) { | 398 | public static jumpChannelTab(channelId: string, pageId: string) { |
| 399 | HomeChannelUtils.jumpChannelTab(channelId, pageId) | 399 | HomeChannelUtils.jumpChannelTab(channelId, pageId) |
| 400 | } | 400 | } |
| 401 | + | ||
| 402 | + /** | ||
| 403 | + * 跳转人民号主页 | ||
| 404 | + *@params creatorId 创作者id | ||
| 405 | + */ | ||
| 406 | + public static gotoPeopleShipHomePage(creatorId: string) { | ||
| 407 | + let params = {'creatorId': creatorId} as Record<string, string>; | ||
| 408 | + WDRouterRule.jumpWithPage(WDRouterPage.peopleShipHomePage, params) | ||
| 409 | + } | ||
| 410 | + | ||
| 401 | } | 411 | } |
| @@ -145,6 +145,10 @@ function handleJsCallAppInnerLinkMethod(data: Message) { | @@ -145,6 +145,10 @@ function handleJsCallAppInnerLinkMethod(data: Message) { | ||
| 145 | content.objectType = ContentConstants.TYPE_FOURTEEN | 145 | content.objectType = ContentConstants.TYPE_FOURTEEN |
| 146 | ProcessUtils.processPage(content) | 146 | ProcessUtils.processPage(content) |
| 147 | break; | 147 | break; |
| 148 | + case 'owner_page': | ||
| 149 | + let creatorId = urlParams.get('creatorId') || '' | ||
| 150 | + ProcessUtils.gotoPeopleShipHomePage(creatorId) | ||
| 151 | + break; | ||
| 148 | default: | 152 | default: |
| 149 | break; | 153 | break; |
| 150 | } | 154 | } |
-
Please register or login to post a comment