Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-09-14 17:31:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ad249056b4f5c5676de2f04a548c03377541bb1c
ad249056
1 parent
946ecabf
fix: 修复沉浸式视频、动态视频式详情页点击号主头像正常进入号主的主页
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerTitleView.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerTitleView.ets
View file @
ad24905
import measure from '@ohos.measure'
import { ContentDetailDTO } from 'wdBean/Index'
import { ContentDetailDTO
, Params
} from 'wdBean/Index'
import { DetailDialog } from './DetailDialog'
import { DateTimeUtils } from 'wdKit'
import { DateTimeUtils, ToastUtils } from 'wdKit'
import { WDRouterPage, WDRouterRule } from 'wdRouter'
const TAG = 'PlayerTitleView';
...
...
@@ -174,7 +175,22 @@ export struct PlayerTitleView {
if (this.getIcon()) {
Image(this.getIcon()).height(11).margin({ left: 4, top: 3 })
}
}.margin({ bottom: 8 })
}
.zIndex(100)
.margin({ bottom: 8 })
.onClick(() => {
// console.log(TAG, '点击号主@信息')
// 跳转到号主页
if (this.contentDetailData.rmhInfo?.cnMainControl === 1) {
const params: Params = {
creatorId: this.contentDetailData.rmhInfo.rmhId,
pageID: ''
}
WDRouterRule.jumpWithPage(WDRouterPage.peopleShipHomePage, params)
} else {
ToastUtils.showToast("暂时无法查看该创作者主页", 2000);
}
})
}
...
...
Please
register
or
login
to post a comment