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
yangsunyue_wd
2024-04-25 18:05:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ce8ede1e353aa4ae778b50bfd7837ed915b3d5c7
ce8ede1e
1 parent
943aece3
no message
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/comment/model/PublishCommentModel.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/resources/base/media/comment_icon.png
sight_harmony/features/wdComponent/src/main/resources/base/media/comment_icon_number.png
sight_harmony/features/wdComponent/src/main/ets/components/comment/model/PublishCommentModel.ets
View file @
ce8ede1
...
...
@@ -17,7 +17,7 @@ export class publishCommentModel {
/*内容类别, 1:点播,2:直播,3:活动,4:广告,5:专题,6:链接,7:榜单,8:图文,9:组图,10:H5新闻,11:频道,12:组件,13:音频,14:动态(13和14为中文版新增) 页面必传*/
targetType: string = ''
/*评论总数*/
totalCommentNumer: string = ''
totalCommentNumer: string = '
0
'
//评论传参
/*评论图片url,多个逗号隔开*/
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentTabComponent.ets
View file @
ce8ede1
import { publishCommentModel } from '../model/PublishCommentModel'
@Preview
@Component
export struct CommentTabComponent {
@ObjectLink publishCommentModel: publishCommentModel
/*展示类型*/
@State type:number = 1
@State placeHolder: string = '说两句...'
build() {
Row(){
Stack({alignContent:Alignment.Start}){
Image($r('app.media.comment_img_input_hui')).width(151).height(30)
Text(this.placeHolder).fontSize(12).fontColor('#999999').margin({left:10})
}
}.width(151).height(30)
}
}
@Preview
@Component
export struct CommentIconComponent {
@ObjectLink publishCommentModel: publishCommentModel
/*展示类型*/
@State type:number = 1
build() {
Row(){
Stack({alignContent:Alignment.TopEnd}){
Image($r('app.media.comment_icon')).width(24).height(24)
// Stack({alignContent:Alignment.Start}) {
// Image($r('app.media.comment_icon_number')).objectFit(ImageFit.Fill).width(12).height(12)
Text(this.publishCommentModel.totalCommentNumer + '12345' +' ')
.fontSize(8)
.fontColor('#ffffff')
// .backgroundColor('#ED2800')
.height(12)
.margin({ left: 6 })
.backgroundImage($r('app.media.comment_icon_number'))
// }.width(25)
.offset({
x:12
})
}
}.width(24).height(24)
}
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/QualityCommentsComponent.ets
View file @
ce8ede1
...
...
@@ -196,8 +196,8 @@ export struct QualityCommentsComponent {
// alldata:[],
// scroller:this.scroller,
// customList:()=>{
// // this.listLayout()
// this.testLayout()
// this.listLayout()
// // this.testLayout()
// },
// onRefresh:(resolve)=>{
// this.currentPage = 1
...
...
@@ -269,7 +269,7 @@ export struct QualityCommentsComponent {
List({ space: 12, scroller:this.scroller }){
LazyForEach(this.allDatas, (item: commentItemModel, index: number) => {
ListItem() {
//
QualityCommentItem({ item: item, index: index }).margin({ left: 12, right: 12 })
QualityCommentItem({ item: item, index: index }).margin({ left: 12, right: 12 })
}
})
}
...
...
sight_harmony/features/wdComponent/src/main/resources/base/media/comment_icon.png
0 → 100644
View file @
ce8ede1
1.05 KB
sight_harmony/features/wdComponent/src/main/resources/base/media/comment_icon_number.png
0 → 100644
View file @
ce8ede1
934 Bytes
Please
register
or
login
to post a comment