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-26 10:30:26 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
9fbe8616b515b03de66ee829c188cf28d9ff0515
9fbe8616
2 parents
6d29778d
8e18e980
Merge branch 'main' of
http://192.168.1.42/developOne/harmonyPool
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
sight_harmony/commons/wdKit/oh-package.json5
sight_harmony/products/phone/src/main/ets/pages/detail/MultiPictureDetailPage.ets
sight_harmony/products/phone/src/main/ets/pages/view/MultiPictureDetailPageComponent.ets
sight_harmony/commons/wdKit/oh-package.json5
View file @
9fbe861
...
...
@@ -8,7 +8,7 @@
"version"
:
"1.0.0"
,
"dependencies"
:
{
"@tingyun/harmonyos"
:
"file:./src/main/ets/tingyunAPM/tingyun_0.0.6.har"
,
"@umeng/common"
:
"^1.0.
2
1"
,
"@umeng/common"
:
"^1.0.
3
1"
,
"@umeng/analytics"
:
"^1.0.19"
,
"@mpaas/udid"
:
"0.0.2"
,
"@mpaas/upgrade"
:
"0.0.2"
,
...
...
sight_harmony/products/phone/src/main/ets/pages/detail/MultiPictureDetailPage.ets
View file @
9fbe861
...
...
@@ -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 @
9fbe861
...
...
@@ -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