wangliang_wd

feat:优化早晚报 编辑资料

... ... @@ -15,7 +15,7 @@ export struct InteractMComponent {
build() {
Row(){
Image(this.messageModel.InteractMsubM.headUrl)
.alt($r('app.media.default_head'))
.alt(this.messageModel.InteractMsubM.userType === '1'?$r('app.media.default_head'):$r('app.media.AccountOwner_DefaultIcon'))
.width(36)
.height(36)
.borderRadius(18)
... ...
... ... @@ -169,9 +169,13 @@ export struct SingleColumn999Component {
*/
@Builder
buildPaperItem(item: ContentDTO, index: number) {
///屏蔽早晚报 音频
if (item.objectType != '13'){
PaperSingleColumn999CardView({
item: item,
index: index,
})
}
}
}
\ No newline at end of file
... ...
... ... @@ -542,11 +542,19 @@ export struct PaperSingleColumn999CardView {
if (this.item) {
Row() {
Row() {
if (this.item.corner.length > 0){
Text(this.item.corner)
.fontSize(12)
.fontColor('#ED2800')
.margin({ left: 16 })
}
if (this.buildSourceString().length > 0) {
Text(this.buildSourceString())
.fontSize(12)
.fontColor('#B0B0B0')
.margin({ left: 16 })
.margin({ left: this.item.corner.length > 0?10:16 })
///不显示时间或者不显示评论
if (this.getPublishTime().length > 0 || this.item.objectType != '2' && this.interactData && this.interactData.commentNum && Number(this.interactData.commentNum) > 0) {
... ...
... ... @@ -114,6 +114,7 @@ struct MyCollectionListPage {
.height(CommonConstants.FULL_HEIGHT)
}
}
.backgroundColor('#FFFFFF')
.width(CommonConstants.FULL_WIDTH)
.height(CommonConstants.FULL_HEIGHT)
}
... ...