xugenyuan

ref |> 解决精选评论列表点击无法进入相应详情页问题

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
... ... @@ -88,6 +88,9 @@ export class ProcessUtils {
return;
}
let type = content.objectType;
if (typeof type == "number") {
type = `${type}`
}
console.log(TAG, 'objectType', `${JSON.stringify(content)}`);
switch (type) {
case ContentConstants.TYPE_NONE:
... ...
... ... @@ -105,6 +105,9 @@ export class commentItemModel {
targetRelObjectId: string = '';
targetRelType: string = '';
targetType: string = '';
h5Url: string = '';
pageId: string = '';
topicType: string = '';
visitorComment: string = '';
shareInfo: commentItemShareInfoModel = new commentItemShareInfoModel;
api_commentId: string = '';
... ...
... ... @@ -9,7 +9,8 @@ import { EmptyComponent, WDViewDefaultType } from '../../view/EmptyComponent'
import NoMoreLayout from '../../page/NoMoreLayout'
import { CommentCustomDialog } from './CommentCustomDialog'
import { publishCommentModel } from '../model/PublishCommentModel'
import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'
import { ProcessUtils, WDRouterPage, WDRouterRule } from 'wdRouter/Index'
import { ContentDTO } from 'wdBean/Index'
const TAG = 'QualityCommentsComponent';
... ... @@ -355,6 +356,9 @@ struct QualityCommentItem {
Image($r('app.media.more')).width(12).height(12)
}.width('100%').height(40).justifyContent(FlexAlign.SpaceBetween)
.onClick(() => {
this.jumpToDetail()
})
}
.backgroundColor('#F9F9F9')
... ... @@ -418,6 +422,22 @@ struct QualityCommentItem {
}
}
jumpToDetail() {
// programInfoModel.api_isCommentAction = YES;
let program: ContentDTO = {
objectId: this.item.targetId,
objectType: this.item.targetType,
relId: this.item.targetRelId,
relType: this.item.targetRelType,
// objectLevel: this.item.topicType,
pageId: this.item.pageId,
linkUrl: this.item.h5Url,
} as ContentDTO
ProcessUtils.processPage(program)
}
}
function commentLikeChange(item: commentItemModel) {
... ...