王士厅
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 "version": "1.0.0", 8 "version": "1.0.0",
9 "dependencies": { 9 "dependencies": {
10 "@tingyun/harmonyos": "file:./src/main/ets/tingyunAPM/tingyun_0.0.6.har", 10 "@tingyun/harmonyos": "file:./src/main/ets/tingyunAPM/tingyun_0.0.6.har",
11 - "@umeng/common": "^1.0.21", 11 + "@umeng/common": "^1.0.31",
12 "@umeng/analytics": "^1.0.19", 12 "@umeng/analytics": "^1.0.19",
13 "@mpaas/udid": "0.0.2", 13 "@mpaas/udid": "0.0.2",
14 "@mpaas/upgrade": "0.0.2", 14 "@mpaas/upgrade": "0.0.2",
@@ -23,13 +23,17 @@ struct MultiPictureDetailPage { @@ -23,13 +23,17 @@ struct MultiPictureDetailPage {
23 @Provide pageName: string = TrackConstants.PageName.Atlas_Detail 23 @Provide pageName: string = TrackConstants.PageName.Atlas_Detail
24 @Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 24 @Provide bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
25 @Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 25 @Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
  26 + action: Action = {} as Action
  27 +
  28 +
26 build() { 29 build() {
27 Row() { 30 Row() {
28 Column() { 31 Column() {
29 MultiPictureDetailPageComponent({ 32 MultiPictureDetailPageComponent({
30 relId: this.relId, 33 relId: this.relId,
31 contentId: this.contentId, 34 contentId: this.contentId,
32 - relType: this.relType 35 + relType: this.relType,
  36 + action: this.action
33 }) 37 })
34 } 38 }
35 39
@@ -53,13 +57,15 @@ struct MultiPictureDetailPage { @@ -53,13 +57,15 @@ struct MultiPictureDetailPage {
53 57
54 Logger.info(TAG, 'aboutToDisappear'); 58 Logger.info(TAG, 'aboutToDisappear');
55 59
56 - let par:Action = router.getParams() as Action;  
57 - let params = par?.params; 60 + let action:Action = router.getParams() as Action;
  61 + let params = action?.params;
58 this.relId = params?.extra?.relId || ''; 62 this.relId = params?.extra?.relId || '';
59 this.relType = params?.extra?.relType || ''; 63 this.relType = params?.extra?.relType || '';
60 this.contentId = params?.contentID || ''; 64 this.contentId = params?.contentID || '';
61 Logger.info(TAG, 'aboutToAppear'); 65 Logger.info(TAG, 'aboutToAppear');
62 Logger.info(TAG, 'params', JSON.stringify(params)); 66 Logger.info(TAG, 'params', JSON.stringify(params));
  67 +
  68 + this.action = action
63 } 69 }
64 70
65 onBackPress() { 71 onBackPress() {
@@ -7,7 +7,8 @@ import { @@ -7,7 +7,8 @@ import {
7 PhotoListBean, 7 PhotoListBean,
8 postBatchAttentionStatusParams, 8 postBatchAttentionStatusParams,
9 postInteractAccentionOperateParams, 9 postInteractAccentionOperateParams,
10 - postInteractBrowsOperateParams 10 + postInteractBrowsOperateParams,
  11 + Action
11 } from 'wdBean'; 12 } from 'wdBean';
12 import { DateTimeUtils } from 'wdKit/Index'; 13 import { DateTimeUtils } from 'wdKit/Index';
13 import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; 14 import { WDRouterPage, WDRouterRule } from 'wdRouter/Index';
@@ -65,6 +66,7 @@ export struct MultiPictureDetailPageComponent { @@ -65,6 +66,7 @@ export struct MultiPictureDetailPageComponent {
65 @State isScrollerTop: boolean = false; 66 @State isScrollerTop: boolean = false;
66 @Provide duration: number = 0 67 @Provide duration: number = 0
67 @State executedStartTime: number = new Date().getTime() 68 @State executedStartTime: number = new Date().getTime()
  69 + action: Action = {} as Action
68 70
69 //watch监听页码回调 71 //watch监听页码回调
70 onCurrentPageNumUpdated(): void { 72 onCurrentPageNumUpdated(): void {
@@ -97,6 +99,12 @@ export struct MultiPictureDetailPageComponent { @@ -97,6 +99,12 @@ export struct MultiPictureDetailPageComponent {
97 // }) 99 // })
98 this.getDetail() 100 this.getDetail()
99 this.contentTrackingDict() 101 this.contentTrackingDict()
  102 +
  103 + if(this.action.params?.targetLayout == "comment"){
  104 + setTimeout(() => {
  105 + this.showCommentList = true
  106 + }, 1000)
  107 + }
100 } 108 }
101 109
102 contentTrackingDict() { 110 contentTrackingDict() {