Showing
1 changed file
with
6 additions
and
2 deletions
| @@ -17,6 +17,8 @@ import TrackingPageBrowseUtils from '../../utils/TrackingPageBrowseUtils' | @@ -17,6 +17,8 @@ import TrackingPageBrowseUtils from '../../utils/TrackingPageBrowseUtils' | ||
| 17 | import { TrackConstants, TrackingButton, TrackingContent, TrackParamConvert } from 'wdTracking/Index'; | 17 | import { TrackConstants, TrackingButton, TrackingContent, TrackParamConvert } from 'wdTracking/Index'; |
| 18 | 18 | ||
| 19 | import { PeopleShipMainViewModel } from '../../viewmodel/PeopleShipMainViewModel'; | 19 | import { PeopleShipMainViewModel } from '../../viewmodel/PeopleShipMainViewModel'; |
| 20 | +import { router } from '@kit.ArkUI'; | ||
| 21 | + | ||
| 20 | @Entry | 22 | @Entry |
| 21 | @Component | 23 | @Component |
| 22 | struct MyCollectionListPage { | 24 | struct MyCollectionListPage { |
| @@ -148,7 +150,10 @@ struct MyCollectionListPage { | @@ -148,7 +150,10 @@ struct MyCollectionListPage { | ||
| 148 | .scrollBar(BarState.Off) | 150 | .scrollBar(BarState.Off) |
| 149 | .height(CommonConstants.FULL_PARENT) | 151 | .height(CommonConstants.FULL_PARENT) |
| 150 | .edgeEffect(EdgeEffect.None) // 必须设置列表为滑动到边缘无效果 | 152 | .edgeEffect(EdgeEffect.None) // 必须设置列表为滑动到边缘无效果 |
| 151 | - .margin({ | 153 | + .margin(router.getState().name === 'MyCollectionListPage' ? { |
| 154 | + left: 6, | ||
| 155 | + right: 6 | ||
| 156 | + } : { | ||
| 152 | left: 16, | 157 | left: 16, |
| 153 | right: 16 | 158 | right: 16 |
| 154 | }) | 159 | }) |
| @@ -167,7 +172,6 @@ struct MyCollectionListPage { | @@ -167,7 +172,6 @@ struct MyCollectionListPage { | ||
| 167 | } | 172 | } |
| 168 | Column() { | 173 | Column() { |
| 169 | BigPicCardComponent({compDTO:new CompDTO,contentDTO:compDTO,pageId:TrackConstants.PageName.My_Collect,pageName:TrackConstants.PageName.My_Collect}) | 174 | BigPicCardComponent({compDTO:new CompDTO,contentDTO:compDTO,pageId:TrackConstants.PageName.My_Collect,pageName:TrackConstants.PageName.My_Collect}) |
| 170 | - Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }); | ||
| 171 | } | 175 | } |
| 172 | }.onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { | 176 | }.onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { |
| 173 | if (isVisible && !this.isEditState) { | 177 | if (isVisible && !this.isEditState) { |
-
Please register or login to post a comment