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-07 20:35:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f967e88affde601af2740c420d76311d7a8c8e01
f967e88a
1 parent
a7708570
fix:16550
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
38 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/DetailDialog.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerRightView.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/DetailDialog.ets
View file @
f967e88
...
...
@@ -8,31 +8,39 @@ export struct DetailDialog {
@Link isOpenDetail: boolean
build() {
Column() {
if (this.name) {
Text(`@${this.name}`)
.fontColor(Color.White)
.fontSize(14)
.fontWeight(600)
.lineHeight(17)
.margin({ top: 8 })
}
Scroll() {
Column() {
if (this.name) {
Text(`@${this.name}`)
.fontColor(Color.White)
.fontSize(14)
.fontWeight(600)
.lineHeight(17)
.margin({ top: 8 })
}
if (this.title) {
Text(this.title)
.fontColor(Color.White)
.fontSize(16)
.fontWeight(600)
.margin({ top: 8 })
.lineHeight(24)
}
if (this.title) {
Text(this.title)
.fontColor(Color.White)
.fontSize(16)
.fontWeight(600)
.margin({ top: 8 })
.lineHeight(24)
}
Text(this.summary)
.fontColor(Color.White)
.fontSize(14)
.fontWeight(400)
.margin({ top: 8 })
.lineHeight(21)
}
.alignItems(HorizontalAlign.Start)
Text(this.summary)
.fontColor(Color.White)
.fontSize(14)
.fontWeight(400)
.margin({ top: 8 })
.lineHeight(21)
}
.height(200)
Row() {
Image($r('app.media.ic_close'))
...
...
@@ -47,12 +55,18 @@ export struct DetailDialog {
}
.width('100%')
.alignItems(HorizontalAlign.Start)
.backgroundColor('#80000000')
//
.backgroundColor('#80000000')
// .linearGradient({
// direction: GradientDirection.Top, // 渐变方向
// repeating: false, // 渐变颜色是否重复
// colors: [['rgba(0, 0, 0, 0.1)', 0.0], ['rgba(0, 0, 0, 0)', 1.0]] // 数组末尾元素占比小于1时满足重复着色效果
// })
.padding({ top: 20, bottom: 30, left: 16, right: 16 })
.padding({
top: 20,
bottom: 30,
left: 16,
right: 16
})
}
}
\ No newline at end of file
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerRightView.ets
View file @
f967e88
...
...
@@ -263,10 +263,7 @@ export struct PlayerRightView {
Image(this.transLikeStyle().url)
.width(32)
.aspectRatio(1)
.onClick(() => {
// TODO:点赞动画
this.toggleLikeStatus()
})
Text(this.transNum2String('likeNum') || this.transLikeStyle().name)
.width('100%')
.fontWeight(500)
...
...
@@ -279,6 +276,10 @@ export struct PlayerRightView {
}
.margin({ bottom: 20 })
.visibility(this.likesStyle !== 4 ? Visibility.Visible : Visibility.None)
.onClick(() => {
// TODO:点赞动画
this.toggleLikeStatus()
})
}
/**
...
...
@@ -291,9 +292,7 @@ export struct PlayerRightView {
$r(`app.media.ic_collect_uncheck`))
.width(32)
.aspectRatio(1)
.onClick(() => {
this.toggleCollectStatus()
})
Text(this.transNum2String('collectNum') || '收藏')
.width('100%')
.fontWeight(500)
...
...
@@ -303,8 +302,12 @@ export struct PlayerRightView {
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.margin({ top: 2 })
}
.margin({ bottom: 20 })
.onClick(() => {
this.toggleCollectStatus()
})
}
/**
...
...
@@ -316,9 +319,7 @@ export struct PlayerRightView {
Image($r(`app.media.ic_comment`))
.width(32)
.aspectRatio(1)
.onClick((event: ClickEvent) => {
ToastUtils.showToast('评论为公共方法,待开发', 1000);
})
Text(this.transNum2String('commentNum') || '抢首评')
.width('100%')
.fontWeight(500)
...
...
@@ -330,6 +331,9 @@ export struct PlayerRightView {
.margin({ top: 2 })
}
.margin({ bottom: 20 })
.onClick((event: ClickEvent) => {
ToastUtils.showToast('评论为公共方法,待开发', 1000);
})
}
/**
...
...
@@ -341,11 +345,7 @@ export struct PlayerRightView {
Image($r(`app.media.ic_share`))
.width(32)
.aspectRatio(1)
.onClick((event: ClickEvent) => {
ToastUtils.showToast('分享为公共方法,待开发', 1000);
this.share()
})
Text('分享')
.width('100%')
.fontWeight(500)
...
...
@@ -357,6 +357,9 @@ export struct PlayerRightView {
.margin({ top: 2 })
}
.margin({ bottom: 20 })
.onClick((event: ClickEvent) => {
this.share()
})
}
share() {
...
...
Please
register
or
login
to post a comment