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
yanlu
2024-05-14 09:32:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7d3719c2f9e3a1511bd20db3e020f3b8d522fde6
7d3719c2
1 parent
4584570c
fix:17474 我的预约下的视频图标鸿蒙与安卓不一致
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
sight_harmony/features/wdComponent/src/main/ets/components/reserveMore/ReserveMorePage.ets
sight_harmony/features/wdComponent/src/main/resources/base/media/reserve_new_icon.png
sight_harmony/features/wdComponent/src/main/resources/base/media/reserve_play_icon.png
sight_harmony/features/wdComponent/src/main/ets/components/reserveMore/ReserveMorePage.ets
View file @
7d3719c
...
...
@@ -127,7 +127,7 @@ struct ReserveMorePage {
buildItem(item: ContentDTO, index: number) {
Column() {
Stack() {
Image(item.fullColumnImgUrls[0].url)
Image(item.fullColumnImgUrls[0]
?
.url)
.width('100%')
.height(196)
.borderRadius(4)
...
...
@@ -139,8 +139,9 @@ struct ReserveMorePage {
Text(item.newsTitle)
.fontSize(17)
.maxLines(2)
.lineHeight(25)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.margin({ top:
16
, left: 12, right: 12 })
.margin({ top:
8
, left: 12, right: 12 })
.alignSelf(ItemAlign.Start)
Row() {
Row() {
...
...
@@ -148,6 +149,7 @@ struct ReserveMorePage {
.width(20)
.height(20)
.margin({ left: 10, top: 2, bottom: 2, right: 6 })
// Text(DateTimeUtils.formatDate(item.liveInfo.liveStartTime, "MM月dd日 HH:mm"))
Text(this.getReserveDate(item.liveInfo.liveStartTime, 1))
.fontSize(12)
...
...
@@ -256,6 +258,9 @@ struct ReserveMorePage {
.height(24)
.objectFit(ImageFit.Auto)
.id("back_icon")
.margin({
left: '16vp'
})
.alignRules({
center: { anchor: "__container__", align: VerticalAlign.Center },
left: { anchor: "__container__", align: HorizontalAlign.Start }
...
...
@@ -267,10 +272,10 @@ struct ReserveMorePage {
Text(this.title)// .height('42lpx')
.maxLines(1)
.id("title")
.fontSize('
35lpx
')
.fontSize('
18vp
')
.fontWeight(400)
.fontColor($r('app.color.color_222222'))
.lineHeight('
42lpx
')
.lineHeight('
22vp
')
.alignRules({
center: { anchor: "__container__", align: VerticalAlign.Center },
middle: { anchor: "__container__", align: HorizontalAlign.Center }
...
...
@@ -284,11 +289,14 @@ struct ReserveMorePage {
@Builder
LiveImage() {
Row() {
Image($r('app.media.reserve_icon'))
.width(22)
.height(18)
Image($r('app.media.reserve_new_icon'))
.width(14)
.height(14)
.margin({
right: 3
})
Text('预约')
.fontSize('1
1f
p')
.fontSize('1
2v
p')
.fontWeight(400)
.fontColor(Color.White)
}
...
...
sight_harmony/features/wdComponent/src/main/resources/base/media/reserve_new_icon.png
0 → 100644
View file @
7d3719c
2.09 KB
sight_harmony/features/wdComponent/src/main/resources/base/media/reserve_play_icon.png
View file @
7d3719c
342 Bytes
|
W:
|
H:
936 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
Please
register
or
login
to post a comment