xugenyuan

ref |> 修复子评论 查看更多和收起交互UI

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
... ... @@ -422,12 +422,13 @@ struct footerExpandedView {
build() {
Row() {
if (this.item.expanded) {
if (this.item.childsHasMore) {
Row() {
Text().backgroundColor($r('app.color.color_EDEDED')).width(24).height(1)
Text('查看更多回复').fontColor($r('app.color.color_222222')).fontSize(14).margin({ left: 6 })
if (this.item.childsHasMore) {
Row() {
Text('查看更多回复').fontColor($r('app.color.color_222222')).fontSize(14)
Image($r('app.media.comment_unfold')).width(12).height(12)
}.margin({ left: 53 })
}.margin({ left: 6 })
.onClick(() => {
if (this.item.isLoading) {
return
... ... @@ -439,13 +440,14 @@ struct footerExpandedView {
Row() {
Text('收起').fontColor($r('app.color.color_222222')).fontSize(14)
Image($r('app.media.comment_pickUp')).width(12).height(12)
}.margin({ left: this.item.childsHasMore ? 32 : 213 })
}.margin({ left: 6 })
.onClick(() => {
this.item.pageNum = 1
this.item.expanded = false
this.item.childComments = []
this.item.childCommentsLazyDataSource.clear()
})
}.margin({ left: 53 })
} else {
Row() {
Text().backgroundColor($r('app.color.color_EDEDED')).width(24).height(1)
... ...
... ... @@ -12,7 +12,7 @@ export default struct NoMoreLayout {
Text($r('app.string.footer_text'))
.fontSize(RefreshConstants.NoMoreLayoutConstant_TITLE_FONT)
.textAlign(TextAlign.Center)
.fontColor('#CCCCCC')
.fontColor('#999999')
.margin({bottom:40})
}
.width(RefreshConstants.FULL_WIDTH)
... ...