王士厅

fix: 图集底部顶部有文字时,添加蒙层

@@ -156,6 +156,7 @@ export struct MultiPictureDetailPageComponent { @@ -156,6 +156,7 @@ export struct MultiPictureDetailPageComponent {
156 @Builder 156 @Builder
157 rmh() { 157 rmh() {
158 if (!this.showDownload) { 158 if (!this.showDownload) {
  159 + Row(){
159 Row() { 160 Row() {
160 Row({ space: 8 }) { 161 Row({ space: 8 }) {
161 if (this.getImgUrl()) { 162 if (this.getImgUrl()) {
@@ -297,6 +298,16 @@ export struct MultiPictureDetailPageComponent { @@ -297,6 +298,16 @@ export struct MultiPictureDetailPageComponent {
297 TransitionEffect.translate({ x: 0, y: `-${this.topSafeHeight + 12}px` }) 298 TransitionEffect.translate({ x: 0, y: `-${this.topSafeHeight + 12}px` })
298 )) 299 ))
299 } 300 }
  301 + .width('100%')
  302 + .height(44 + px2vp(this.topSafeHeight))
  303 + .zIndex(10)
  304 + .linearGradient({
  305 + direction: GradientDirection.Top, // 渐变方向
  306 + colors: [['rgba(18, 18, 18, 0)', 0],
  307 + ['rgba(18, 18, 18, 1)', 1.0]] // 数组末尾元素占比小于1时满足重复着色效果
  308 + })
  309 + .opacity(0.5)
  310 + }
300 } 311 }
301 312
302 @Builder 313 @Builder
@@ -437,6 +448,12 @@ export struct MultiPictureDetailPageComponent { @@ -437,6 +448,12 @@ export struct MultiPictureDetailPageComponent {
437 .edgeEffect(EdgeEffect.None) 448 .edgeEffect(EdgeEffect.None)
438 .scrollBarWidth(0) 449 .scrollBarWidth(0)
439 .scrollBar(BarState.Off) 450 .scrollBar(BarState.Off)
  451 + .linearGradient({
  452 + direction: GradientDirection.Bottom, // 渐变方向
  453 + colors: [['rgba(18, 18, 18, 0)', 0],
  454 + ['rgba(18, 18, 18, 1)', 1.0]] // 数组末尾元素占比小于1时满足重复着色效果
  455 + })
  456 + .opacity(0.5)
440 457
441 OperRowListView({ 458 OperRowListView({
442 contentDetailData: this.contentDetailData, 459 contentDetailData: this.contentDetailData,