From d3ca7202e16e97d76460f051b290ca0642e5d93b Mon Sep 17 00:00:00 2001 From: 26thE <962961353@qq.com> Date: Mon, 2 Jun 2025 18:58:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 13 +++++++------ screenshots/device/scroll1.png | Bin 135982 -> 111825 bytes screenshots/device/scroll2.png | Bin 166240 -> 144276 bytes screenshots/device/scroll3.png | Bin 242293 -> 195940 bytes screenshots/device/scroll_en1.png | Bin 152519 -> 129257 bytes screenshots/device/scroll_en2.png | Bin 196478 -> 174132 bytes screenshots/device/scroll_en3.png | Bin 276169 -> 225103 bytes 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 713a34a..d519768 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -45,8 +45,8 @@ struct NestedCeiling { }, }) @StorageLink('currentBreakpoint') curBp: string = CommonConstants.BREAK_POINT_SM; - @StorageProp('topRectHeight') - topRectHeight: number = 0; + @StorageProp('topRectHeight') topRectHeight: number = 0; + @StorageProp('bottomRectHeight') bottomRectHeight: number = 0; private scrollerForScroll: Scroller = new Scroller(); private scrollerForList: Scroller = new Scroller(); @@ -69,7 +69,7 @@ struct NestedCeiling { } @Builder - listBuilder(listName: ResourceStr, tabName: ResourceStr, index: number) { + listBuilder(listName: ResourceStr) { List({ scroller: this.scrollerForList }) { ForEach(listArr, (item: string, index: number) => { ListItem() { @@ -134,9 +134,9 @@ struct NestedCeiling { .width(this.curBp === 'sm' ? '100%' : 448) .margin({ bottom: $r('sys.float.padding_level6') }) if (this.currentIndex === 0) { - this.listBuilder($r('app.string.goods'), $r('app.string.Promotional'), 0) + this.listBuilder($r('app.string.goods')) } else { - this.listBuilder($r('app.string.Itinerary'), $r('app.string.Travel'), 1) + this.listBuilder($r('app.string.Itinerary')) } } } @@ -149,7 +149,8 @@ struct NestedCeiling { $r('sys.float.padding_level16')).getValue(this.curBp), right: new BreakpointType($r('sys.float.padding_level8'), $r('sys.float.padding_level12'), $r('sys.float.padding_level16')).getValue(this.curBp), - top: px2vp(this.topRectHeight) + top: px2vp(this.topRectHeight), + bottom: '155vp', }) .width(CommonConstants.FULL_WIDTH) .height(CommonConstants.FULL_HEIGHT) diff --git a/screenshots/device/scroll1.png b/screenshots/device/scroll1.png index 83d894877fa8e7d4a6df94a7a157ded27bbf1807..7cb9e6836610dc5c83ffc8abc39faad7a8ea1e79 100644 GIT binary patch literal 111825 zcmXV1byS
3OQ0eVAi==Eph`)KDZ#+JyMTfD_znRM`pdl5(hKzKouiV32u$S!
z(INEVqnWUrFbqshH1e|nEc6-CPEykm28Olk-{;*|W35#fn70BcF<})qy^{>s-@5(t
zzs f!6Y3>uT;NwAFIhdbo|CG;ZsC9RUq{)MEk$6zE
zCI w~izYLCT8Y+J=fwUn2S|rM
zbA1UAlu>`hi}Zd)0~_1eV9o0Wan19>nnnmoIH`QaF+M7ib5#<_*os1tEPJCSig09e
zuH(7RxhKx~2R3+J_L7B7FJ)eC*c5YNGq%dUMf|Z*{QmSeYHxTx(zx`u14q`}gzKXv
z^e;I!#S!CtDdXMSu)VpyNrAgHTT#6GHD?jSS~fo;b-r2N4qXTUnd#41?cU$d3O>y=
zho2%*Gs7=C1v`m(91EE!7eY~63g-I*xiQUrx h}5f9)xVAwD11wlcB$$V~s
zy#|_YkD}D;ocbIOGZo%tS12)=j$=#W4EuaNHC3(e1cz{Xh>+ZT*uGA*o40mXYdef7
z<>@|sAq6grsG9E%b=>BC;&|+J+67gb!eXu1$)ty35#U?bU2%XUO0*}(wz$M~L0pkv
z&vmq5eDv5(Irv)w`GbxK#UqG`R=sa@>AQH38mFl1U|l_mMep2|8|sg`vfF8cUX5X|
zR^4l9DY 1*BWmlwaeG!#P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