张善主

fix(18049):全域规则-人民日报客户端稿件评论开关关闭,号主动态列表,评论按钮不应展示

... ... @@ -60,20 +60,13 @@ export struct CarderInteraction {
})
}
Row() {
Image($r('app.media.CarderInteraction_comment'))
.width(18)
.height(18)
Text('评论')
.margin({ left: 4 })
.fontSize(14)
.fontColor('#666666')
if(this.contentDetailData.rmhInfo != null){
if(this.contentDetailData.shareInfo != null && 1 == this.contentDetailData.shareInfo.shareOpen && 1 == this.contentDetailData.rmhInfo.cnShareControl){
this.shareLayout()
}
}else{
this.shareLayout()
}
.justifyContent(FlexAlign.Center)
.onClick(() => {
ProcessUtils.processPage(this.contentDTO)
})
this.builderLike()
}
... ... @@ -87,6 +80,23 @@ export struct CarderInteraction {
.alignItems(VerticalAlign.Center)
}
@Builder
shareLayout() {
Row() {
Image($r('app.media.CarderInteraction_comment'))
.width(18)
.height(18);
Text('评论')
.margin({ left: 4 })
.fontSize(14)
.fontColor('#666666');
}
.justifyContent(FlexAlign.Center)
.onClick(() => {
ProcessUtils.processPage(this.contentDTO);
})
}
/**
* 点赞组件
*/
... ...