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
yangchenggong1_wd
2024-09-26 10:11:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
80f4f88f1d20465c9967be9718430efb869d70f5
80f4f88f
1 parent
3f4438e8
fix |> 18815 互动消息-点击历史评论,鸿蒙版视频和图集详情页无法直接跳转到对应详情页的评论区
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
sight_harmony/products/phone/src/main/ets/pages/detail/MultiPictureDetailPage.ets
sight_harmony/products/phone/src/main/ets/pages/view/MultiPictureDetailPageComponent.ets
sight_harmony/products/phone/src/main/ets/pages/detail/MultiPictureDetailPage.ets
View file @
80f4f88
...
...
@@ -23,13 +23,17 @@ struct MultiPictureDetailPage {
@Provide pageName: string = TrackConstants.PageName.Atlas_Detail
@Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
@Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
action: Action = {} as Action
build() {
Row() {
Column() {
MultiPictureDetailPageComponent({
relId: this.relId,
contentId: this.contentId,
relType: this.relType
relType: this.relType,
action: this.action
})
}
...
...
@@ -53,13 +57,15 @@ struct MultiPictureDetailPage {
Logger.info(TAG, 'aboutToDisappear');
let par:Action = router.getParams() as Action;
let params = par?.params;
let action:Action = router.getParams() as Action;
let params = action?.params;
this.relId = params?.extra?.relId || '';
this.relType = params?.extra?.relType || '';
this.contentId = params?.contentID || '';
Logger.info(TAG, 'aboutToAppear');
Logger.info(TAG, 'params', JSON.stringify(params));
this.action = action
}
onBackPress() {
...
...
sight_harmony/products/phone/src/main/ets/pages/view/MultiPictureDetailPageComponent.ets
View file @
80f4f88
...
...
@@ -7,7 +7,8 @@ import {
PhotoListBean,
postBatchAttentionStatusParams,
postInteractAccentionOperateParams,
postInteractBrowsOperateParams
postInteractBrowsOperateParams,
Action
} from 'wdBean';
import { DateTimeUtils } from 'wdKit/Index';
import { WDRouterPage, WDRouterRule } from 'wdRouter/Index';
...
...
@@ -65,6 +66,7 @@ export struct MultiPictureDetailPageComponent {
@State isScrollerTop: boolean = false;
@Provide duration: number = 0
@State executedStartTime: number = new Date().getTime()
action: Action = {} as Action
//watch监听页码回调
onCurrentPageNumUpdated(): void {
...
...
@@ -97,6 +99,12 @@ export struct MultiPictureDetailPageComponent {
// })
this.getDetail()
this.contentTrackingDict()
if(this.action.params?.targetLayout == "comment"){
setTimeout(() => {
this.showCommentList = true
}, 1000)
}
}
contentTrackingDict() {
...
...
Please
register
or
login
to post a comment