Showing
2 changed files
with
33 additions
and
5 deletions
| @@ -249,7 +249,16 @@ export struct PlayerTitleView { | @@ -249,7 +249,16 @@ export struct PlayerTitleView { | ||
| 249 | } | 249 | } |
| 250 | }) | 250 | }) |
| 251 | if (this.isOverLines) { | 251 | if (this.isOverLines) { |
| 252 | - Span('... 全文') | 252 | + Span('... ') |
| 253 | + .fontColor(Color.White) | ||
| 254 | + .fontWeight(400) | ||
| 255 | + .fontFamily('PingFang SC-Regular') | ||
| 256 | + .fontSize(12) | ||
| 257 | + .onClick(() => { | ||
| 258 | + this.isOpenDetail = true | ||
| 259 | + this.dialogController?.open() | ||
| 260 | + }) | ||
| 261 | + Span('全文') | ||
| 253 | .fontColor('#99FFFFFF') | 262 | .fontColor('#99FFFFFF') |
| 254 | .fontWeight(400) | 263 | .fontWeight(400) |
| 255 | .fontFamily('PingFang SC-Regular') | 264 | .fontFamily('PingFang SC-Regular') |
| @@ -309,9 +318,18 @@ export struct PlayerTitleView { | @@ -309,9 +318,18 @@ export struct PlayerTitleView { | ||
| 309 | .fontWeight(600) | 318 | .fontWeight(600) |
| 310 | .fontFamily('PingFang SC-Regular') | 319 | .fontFamily('PingFang SC-Regular') |
| 311 | if (this.isTitleOverLines) { | 320 | if (this.isTitleOverLines) { |
| 312 | - Span('... 全文') | 321 | + Span('... ') |
| 322 | + .fontColor(Color.White) | ||
| 323 | + .fontWeight(400) | ||
| 324 | + .fontFamily('PingFang SC-Regular') | ||
| 325 | + .fontSize(12) | ||
| 326 | + .onClick(() => { | ||
| 327 | + this.isOpenDetail = true | ||
| 328 | + this.dialogController?.open() | ||
| 329 | + }) | ||
| 330 | + Span('全文') | ||
| 313 | .fontColor('#99FFFFFF') | 331 | .fontColor('#99FFFFFF') |
| 314 | - .fontWeight(600) | 332 | + .fontWeight(400) |
| 315 | .fontFamily('PingFang SC-Regular') | 333 | .fontFamily('PingFang SC-Regular') |
| 316 | .fontSize(12) | 334 | .fontSize(12) |
| 317 | .onClick(() => { | 335 | .onClick(() => { |
| @@ -101,6 +101,7 @@ struct Index { | @@ -101,6 +101,7 @@ struct Index { | ||
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | build() { | 103 | build() { |
| 104 | + Column(){ | ||
| 104 | Stack({ alignContent: Alignment.End }) { | 105 | Stack({ alignContent: Alignment.End }) { |
| 105 | Progress( | 106 | Progress( |
| 106 | { | 107 | { |
| @@ -115,7 +116,7 @@ struct Index { | @@ -115,7 +116,7 @@ struct Index { | ||
| 115 | .backgroundColor($r('app.color.white')) | 116 | .backgroundColor($r('app.color.white')) |
| 116 | .width("100%") | 117 | .width("100%") |
| 117 | .height(3) | 118 | .height(3) |
| 118 | - .margin({ top: 57 }) | 119 | + .margin({ top: 56 }) |
| 119 | .visibility(this.isExpand ? Visibility.Visible : Visibility.Hidden) | 120 | .visibility(this.isExpand ? Visibility.Visible : Visibility.Hidden) |
| 120 | Stack({ alignContent: Alignment.End }) { | 121 | Stack({ alignContent: Alignment.End }) { |
| 121 | Column() { //标题 时间 进度条 | 122 | Column() { //标题 时间 进度条 |
| @@ -166,7 +167,7 @@ struct Index { | @@ -166,7 +167,7 @@ struct Index { | ||
| 166 | left: 10, | 167 | left: 10, |
| 167 | right: 0 | 168 | right: 0 |
| 168 | }) | 169 | }) |
| 169 | - .width(243) | 170 | + .width(247) |
| 170 | .height(60) | 171 | .height(60) |
| 171 | .justifyContent(FlexAlign.Start) | 172 | .justifyContent(FlexAlign.Start) |
| 172 | // .onClick(() => { | 173 | // .onClick(() => { |
| @@ -255,6 +256,15 @@ struct Index { | @@ -255,6 +256,15 @@ struct Index { | ||
| 255 | ) | 256 | ) |
| 256 | ) | 257 | ) |
| 257 | .borderRadius(4) | 258 | .borderRadius(4) |
| 259 | + .shadow({ | ||
| 260 | + radius: vp2px(5), | ||
| 261 | + color: 'rgba(0, 0, 0, 0.10)', | ||
| 262 | + offsetX: 0, | ||
| 263 | + offsetY: 1 | ||
| 264 | + }) // 设 | ||
| 258 | .backgroundColor(Color.White) | 265 | .backgroundColor(Color.White) |
| 259 | } | 266 | } |
| 267 | + .padding(1) | ||
| 268 | + | ||
| 269 | + } | ||
| 260 | } | 270 | } |
-
Please register or login to post a comment