陈剑华

fix: 直播预约卡大图border

@@ -23,9 +23,11 @@ export struct LiveBigImage01Component { @@ -23,9 +23,11 @@ export struct LiveBigImage01Component {
23 @State clicked: boolean = false; 23 @State clicked: boolean = false;
24 index: number = 0 24 index: number = 0
25 @State isLoadingAttention: boolean = false 25 @State isLoadingAttention: boolean = false
  26 + @State curRouter: string = ''
26 27
27 async aboutToAppear() { 28 async aboutToAppear() {
28 const curRouter = router.getState().name; 29 const curRouter = router.getState().name;
  30 + this.curRouter = curRouter;
29 this.clicked = hasClicked(this.contentDTO.objectId, curRouter) 31 this.clicked = hasClicked(this.contentDTO.objectId, curRouter)
30 this.loadImg = await onlyWifiLoadImg(); 32 this.loadImg = await onlyWifiLoadImg();
31 } 33 }
@@ -38,7 +40,7 @@ export struct LiveBigImage01Component { @@ -38,7 +40,7 @@ export struct LiveBigImage01Component {
38 .aspectRatio(16 / 9) 40 .aspectRatio(16 / 9)
39 .backgroundColor(this.loadImg ? $r('app.color.color_B0B0B0') : $r('app.color.color_33A3A3A3')) 41 .backgroundColor(this.loadImg ? $r('app.color.color_B0B0B0') : $r('app.color.color_33A3A3A3'))
40 .objectFit(ImageFit.Contain) 42 .objectFit(ImageFit.Contain)
41 - .borderWidth(0.5) 43 + .borderWidth(this.curRouter !== 'ReserveMorePage' ? 0.5 : 0)
42 .borderColor($r('app.color.color_0D000000')) 44 .borderColor($r('app.color.color_0D000000'))
43 .borderRadius({ 45 .borderRadius({
44 topLeft: '4vp', 46 topLeft: '4vp',