xugenyuan

ref |> 修复评论输入框相关UI缺陷

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
... ... @@ -35,7 +35,7 @@ export class publishCommentModel {
//可选
placeHolderText: string = "优质评论会获得最佳评论人的称号"
placeHolderText: string = "说两句..."
//最新发布的评论
lastCommentModel: commentItemModel = new commentItemModel()
... ...
... ... @@ -12,6 +12,7 @@ import { ifaa } from '@kit.OnlineAuthenticationKit';
import { HttpUrlUtils, HttpUtils } from 'wdNetwork/Index';
import NoMoreLayout from '../../page/NoMoreLayout';
import { WDRouterPage, WDRouterRule } from 'wdRouter/Index';
import { ColorUtils } from '../../../utils/ColorUtils';
const TAG = 'CommentComponent';
... ... @@ -66,6 +67,7 @@ export struct CommentComponent {
dx: 0,
dy: -20
},
backgroundColor: "#50000000",
})
this.getData();
... ...
... ... @@ -2,11 +2,13 @@ import { DisplayUtils, EmitterEventId, EmitterUtils } from 'wdKit/Index'
import { publishCommentModel } from '../model/PublishCommentModel'
import { CommentCustomDialog } from './CommentCustomDialog'
import measure from '@ohos.measure'
import { ContentDetailDTO } from 'wdBean/Index'
@Preview
@Component
export struct CommentTabComponent {
@ObjectLink publishCommentModel: publishCommentModel
@Prop contentDetail: ContentDetailDTO
/*展示类型*/
@State type: number = 1
@State placeHolder: string = '说两句...'
... ... @@ -32,6 +34,7 @@ export struct CommentTabComponent {
dx: 0,
dy: -20
},
backgroundColor: "#50000000",
})
}
... ... @@ -47,7 +50,11 @@ export struct CommentTabComponent {
this.publishCommentModel.rootCommentId = '-1';
this.publishCommentModel.parentId = '-1';
this.publishCommentModel.placeHolderText = "说两句..."
if (this.contentDetail.bestNoticer === 1) {
this.publishCommentModel.placeHolderText = "优质评论会获得最佳评论人的称号"
}
this.dialogController?.open();
})
}
... ...
... ... @@ -71,6 +71,7 @@ export struct QualityCommentsComponent {
dx: 0,
dy: -20
},
backgroundColor: "#50000000",
})
}
... ...
... ... @@ -147,7 +147,9 @@ export struct OperRowListView {
builderComment() {
Column() {
if (this.publishCommentModel?.targetId) {
CommentTabComponent({ publishCommentModel: this.publishCommentModel })
CommentTabComponent({ publishCommentModel: this.publishCommentModel,
contentDetail: this.contentDetailData
})
}
}
.flexGrow(1)
... ...