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
zhenghy
2024-05-14 20:51:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0cead6702af86dd439b46e77a8d18d0165825424
0cead670
1 parent
7c77f7af
评论输入框背景色
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
8 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MultiPictureDetailPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentTabComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
sight_harmony/features/wdComponent/src/main/resources/base/media/comment_img_input_hui1.png
sight_harmony/features/wdDetailPlayShortVideo/src/main/resources/base/media/comment_img_input_hui1.png
sight_harmony/features/wdComponent/src/main/ets/components/MultiPictureDetailPageComponent.ets
View file @
0cead67
...
...
@@ -366,8 +366,8 @@ export struct MultiPictureDetailPageComponent {
publishCommentModel: this.publishCommentModel,
operationButtonList: this.operationButtonList,
styleType: 2,
componentType:5,
MultiPictureComponentType:1
componentType: 5,
pageComponentType: 3
})
}
.transition(TransitionEffect.OPACITY.animation({ duration: this.duration, curve: Curve.Ease }).combine(
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentTabComponent.ets
View file @
0cead67
...
...
@@ -12,7 +12,6 @@ export struct CommentTabComponent {
@ObjectLink publishCommentModel: publishCommentModel
@Prop contentDetail: ContentDetailDTO
@Prop pageComponentType: number = -1 //1:视频详情页 2:竖屏直播页
@Prop MultiPictureComponentType?: number = -1 // 1:图集详情页
/*展示类型*/
@State type: number = 1
@State placeHolder: string = '说两句...'
...
...
@@ -44,6 +43,17 @@ export struct CommentTabComponent {
}
getCommentInputBackImg() {
if (this.pageComponentType === 2) {
return $r('app.media.comment_img_input_black')
} else if (this.pageComponentType === 3) {
return $r('app.media.comment_img_input_hui1')
} else {
return $r('app.media.comment_img_input_hui')
}
}
build() {
Row() {
Stack({ alignContent: Alignment.Start }) {
...
...
@@ -68,8 +78,7 @@ export struct CommentTabComponent {
})
.id("RowBg")
} else {
Image(this.pageComponentType === 2 || this.MultiPictureComponentType === 1 ? $r('app.media.comment_img_input_black') :
$r('app.media.comment_img_input_hui'))
Image(this.getCommentInputBackImg())
.objectFit(ImageFit.Fill)
.resizable({
slice: {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/OperRowListView.ets
View file @
0cead67
...
...
@@ -62,8 +62,7 @@ export struct OperRowListView {
* 7:图集详情页
*/
@Prop componentType: number = 1 //1: 底部栏目样式 2: 新闻页中间位置样式 3:动态Tab内容下的互动入口
@Prop pageComponentType?: number = -1 //1:视频详情页 2竖屏直播页
@Prop MultiPictureComponentType?: number = -1 // 1:图集详情页
@Prop pageComponentType?: number = -1 //1:视频详情页 2:竖屏直播页 3:图集
@State likesStyle: number = this.contentDetailData.likesStyle // 赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空
@Prop operationButtonList?: string[] = ['comment', 'collect', 'share'] // 组件展示条件
@State needLike: boolean = true
...
...
@@ -194,7 +193,6 @@ export struct OperRowListView {
contentDetail: this.contentDetailData,
onCommentFocus: this.onCommentFocus,
pageComponentType: this.pageComponentType,
MultiPictureComponentType: this.MultiPictureComponentType
})
}
}
...
...
sight_harmony/features/wdComponent/src/main/resources/base/media/comment_img_input_hui1.png
0 → 100644
View file @
0cead67
891 Bytes
sight_harmony/features/wdDetailPlayShortVideo/src/main/resources/base/media/comment_img_input_hui1.png
0 → 100644
View file @
0cead67
891 Bytes
Please
register
or
login
to post a comment