陈剑华

图片预览,评论跳转

@@ -133,7 +133,7 @@ export class ProcessUtils { @@ -133,7 +133,7 @@ export class ProcessUtils {
133 Logger.debug(TAG, `gotoWeb, ${content.objectId}`); 133 Logger.debug(TAG, `gotoWeb, ${content.objectId}`);
134 } 134 }
135 135
136 - private static gotoWeb(content: ContentDTO) { 136 + static gotoWeb(content: ContentDTO) {
137 let taskAction: Action = { 137 let taskAction: Action = {
138 type: 'JUMP_INNER_NEW_PAGE', 138 type: 'JUMP_INNER_NEW_PAGE',
139 params: { 139 params: {
@@ -143,7 +143,8 @@ export class ProcessUtils { @@ -143,7 +143,8 @@ export class ProcessUtils {
143 relType: content?.relType, 143 relType: content?.relType,
144 relId: content?.relId, 144 relId: content?.relId,
145 channelId: content?.channelId, 145 channelId: content?.channelId,
146 - sourcePage: '5' 146 + sourcePage: '5',
  147 + commentId: content?.commentInfo?.commentId
147 } as ExtraDTO 148 } as ExtraDTO
148 } as Params, 149 } as Params,
149 }; 150 };
@@ -15,4 +15,5 @@ export interface ExtraDTO extends ItemDTO { @@ -15,4 +15,5 @@ export interface ExtraDTO extends ItemDTO {
15 relType: string; 15 relType: string;
16 liveStreamType?: number; 16 liveStreamType?: number;
17 photoList: PhotoListBean[]; 17 photoList: PhotoListBean[];
  18 + commentId?: string;
18 } 19 }
@@ -3,5 +3,6 @@ export interface commentInfo { @@ -3,5 +3,6 @@ export interface commentInfo {
3 newsTitle: string, 3 newsTitle: string,
4 userName: string, 4 userName: string,
5 userHeaderUrl: string, 5 userHeaderUrl: string,
6 - publishTime: number 6 + publishTime: number,
  7 + commentId: string
7 } 8 }
1 -import { ContentDTO, FullColumnImgUrlDTO } from 'wdBean'; 1 +import { ContentDTO, FullColumnImgUrlDTO, PhotoListBean } from 'wdBean';
2 import { RmhTitle } from '../cardCommon/RmhTitle' 2 import { RmhTitle } from '../cardCommon/RmhTitle'
3 import { ProcessUtils } from 'wdRouter'; 3 import { ProcessUtils } from 'wdRouter';
4 import { CommonConstants } from 'wdConstant/Index'; 4 import { CommonConstants } from 'wdConstant/Index';
@@ -92,8 +92,17 @@ export struct Card19Component { @@ -92,8 +92,17 @@ export struct Card19Component {
92 } 92 }
93 // 图片-从无图到9图展示 93 // 图片-从无图到9图展示
94 createImg({ fullColumnImgUrls: this.contentDTO.fullColumnImgUrls }) 94 createImg({ fullColumnImgUrls: this.contentDTO.fullColumnImgUrls })
95 - .onClick((event: ClickEvent) => {  
96 - ProcessUtils.processPage(this.contentDTO) 95 + .onClick(() => {
  96 + const photoList: PhotoListBean[] = this.contentDTO.fullColumnImgUrls.map(item => {
  97 + const photo: PhotoListBean = {
  98 + width: item.weight,
  99 + height: item.height,
  100 + picPath: item.fullUrl,
  101 + picDesc: ''
  102 + }
  103 + return photo
  104 + })
  105 + ProcessUtils.gotoMultiPictureListPage(photoList)
97 }) 106 })
98 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 107 //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件
99 } 108 }
@@ -103,6 +112,9 @@ export struct Card19Component { @@ -103,6 +112,9 @@ export struct Card19Component {
103 top: $r('app.float.card_comp_pagePadding_tb'), 112 top: $r('app.float.card_comp_pagePadding_tb'),
104 bottom: $r('app.float.card_comp_pagePadding_tb') 113 bottom: $r('app.float.card_comp_pagePadding_tb')
105 }) 114 })
  115 + .onClick((event: ClickEvent) => {
  116 + ProcessUtils.processPage(this.contentDTO)
  117 + })
106 } 118 }
107 } 119 }
108 120
@@ -68,6 +68,9 @@ export struct ZhSingleRow06 { @@ -68,6 +68,9 @@ export struct ZhSingleRow06 {
68 .backgroundColor(0xf9f9f9) 68 .backgroundColor(0xf9f9f9)
69 .borderRadius(4) 69 .borderRadius(4)
70 .margin({bottom: 12}) 70 .margin({bottom: 12})
  71 + .onClick(() => {
  72 + ProcessUtils.gotoWeb(this.compDTO.operDataList[0])
  73 + })
71 74
72 Row() { 75 Row() {
73 Text(DateTimeUtils.getCommentTime(this.compDTO.operDataList[0]?.commentInfo?.publishTime)) 76 Text(DateTimeUtils.getCommentTime(this.compDTO.operDataList[0]?.commentInfo?.publishTime))
@@ -97,9 +100,6 @@ export struct ZhSingleRow06 { @@ -97,9 +100,6 @@ export struct ZhSingleRow06 {
97 .backgroundColor($r('app.color.white')) 100 .backgroundColor($r('app.color.white'))
98 .margin({ bottom: 8 }) 101 .margin({ bottom: 8 })
99 .height(251) 102 .height(251)
100 - .onClick(() => {  
101 - WDRouterRule.jumpWithPage(WDRouterPage.QualityCommentsPage)  
102 - })  
103 } 103 }
104 104
105 @Builder 105 @Builder
@@ -128,6 +128,9 @@ export struct ZhSingleRow06 { @@ -128,6 +128,9 @@ export struct ZhSingleRow06 {
128 .width(14) 128 .width(14)
129 .height(14) 129 .height(14)
130 } 130 }
  131 + .onClick(() => {
  132 + WDRouterRule.jumpWithPage(WDRouterPage.QualityCommentsPage)
  133 + })
131 } 134 }
132 .margin({bottom: 10}) 135 .margin({bottom: 10})
133 .justifyContent(FlexAlign.SpaceBetween) 136 .justifyContent(FlexAlign.SpaceBetween)