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 | 5 | // padding-top: 25px; |
| 6 | 6 | .gift_top{ |
| 7 | 7 | width: 100%; |
| 8 | + height: auto; | |
| 8 | 9 | background-color: #fff; |
| 9 | 10 | position: fixed; |
| 10 | 11 | left: 0; |
| ... | ... | @@ -59,9 +60,10 @@ |
| 59 | 60 | } |
| 60 | 61 | .item_box{ |
| 61 | 62 | height: 100vh; |
| 62 | - padding: 160px 0 40px 0; | |
| 63 | + padding-bottom: 40px; | |
| 63 | 64 | overflow-y: auto; |
| 64 | 65 | box-sizing: border-box; |
| 66 | + overflow: hidden; | |
| 65 | 67 | // padding-top: 120px; |
| 66 | 68 | .giftItem_box:first-child{ |
| 67 | 69 | margin-top: 20px; | ... | ... |
src/pages/myGiftBox/myGiftBox.vue
| ... | ... | @@ -33,7 +33,7 @@ |
| 33 | 33 | <!--下拉刷新--> |
| 34 | 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 | 37 | <div |
| 38 | 38 | infinite-scroll-immediate-check="true" |
| 39 | 39 | v-infinite-scroll="onInfiniteScroll" | ... | ... |