Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
xugenyuan
2024-05-08 18:41:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
171266e0c61e9ff1687fbeecde041e15e3fe3a88
171266e0
1 parent
fa16818d
ref |> 修复评论输入框相关UI缺陷
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
3 deletions
sight_harmony/features/wdComponent/src/main/ets/components/comment/model/PublishCommentModel.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentTabComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/QualityCommentsComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/model/PublishCommentModel.ets
View file @
171266e
...
...
@@ -35,7 +35,7 @@ export class publishCommentModel {
//可选
placeHolderText: string = "
优质评论会获得最佳评论人的称号
"
placeHolderText: string = "
说两句...
"
//最新发布的评论
lastCommentModel: commentItemModel = new commentItemModel()
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
View file @
171266e
...
...
@@ -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();
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentTabComponent.ets
View file @
171266e
...
...
@@ -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 = "优质评论会获得最佳评论人的称号"
this.publishCommentModel.placeHolderText = "说两句..."
if (this.contentDetail.bestNoticer === 1) {
this.publishCommentModel.placeHolderText = "优质评论会获得最佳评论人的称号"
}
this.dialogController?.open();
})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/QualityCommentsComponent.ets
View file @
171266e
...
...
@@ -71,6 +71,7 @@ export struct QualityCommentsComponent {
dx: 0,
dy: -20
},
backgroundColor: "#50000000",
})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
View file @
171266e
...
...
@@ -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)
...
...
Please
register
or
login
to post a comment