Commit 754021c6e57e20ad80d8e81459216531970f5acf
1 parent
5ce04fd9
样式优化
Showing
2 changed files
with
4 additions
and
2 deletions
src/pages/myGiftBox/myGiftBox.less
| @@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
| 5 | // padding-top: 25px; | 5 | // padding-top: 25px; |
| 6 | .gift_top{ | 6 | .gift_top{ |
| 7 | width: 100%; | 7 | width: 100%; |
| 8 | + height: auto; | ||
| 8 | background-color: #fff; | 9 | background-color: #fff; |
| 9 | position: fixed; | 10 | position: fixed; |
| 10 | left: 0; | 11 | left: 0; |
| @@ -59,9 +60,10 @@ | @@ -59,9 +60,10 @@ | ||
| 59 | } | 60 | } |
| 60 | .item_box{ | 61 | .item_box{ |
| 61 | height: 100vh; | 62 | height: 100vh; |
| 62 | - padding: 160px 0 40px 0; | 63 | + padding-bottom: 40px; |
| 63 | overflow-y: auto; | 64 | overflow-y: auto; |
| 64 | box-sizing: border-box; | 65 | box-sizing: border-box; |
| 66 | + overflow: hidden; | ||
| 65 | // padding-top: 120px; | 67 | // padding-top: 120px; |
| 66 | .giftItem_box:first-child{ | 68 | .giftItem_box:first-child{ |
| 67 | margin-top: 20px; | 69 | margin-top: 20px; |
src/pages/myGiftBox/myGiftBox.vue
| @@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
| 33 | <!--下拉刷新--> | 33 | <!--下拉刷新--> |
| 34 | <!-- <van-pull-refresh v-model="isLoading" @refresh="onRefresh"> --> | 34 | <!-- <van-pull-refresh v-model="isLoading" @refresh="onRefresh"> --> |
| 35 | <!--内容--> | 35 | <!--内容--> |
| 36 | - <div class="item_box"> | 36 | + <div class="item_box" :style="'padding-top: ' + ($parent.top.value+90) + 'px'"> |
| 37 | <div | 37 | <div |
| 38 | infinite-scroll-immediate-check="true" | 38 | infinite-scroll-immediate-check="true" |
| 39 | v-infinite-scroll="onInfiniteScroll" | 39 | v-infinite-scroll="onInfiniteScroll" |