Browse Source

优化页面滚动问题

master
邓平艺 4 years ago
parent
commit
c0e96ddaa6
  1. 6
      pages/discover/discover.vue
  2. 5
      pages/index/index/index.vue

6
pages/discover/discover.vue

@ -1,6 +1,6 @@
<template>
<view>
<lf-nav :spreadOut="true" title="发现"></lf-nav>
<lf-nav :spreadOut="true" title="发现" @changeHeight="e => nav_height = e"></lf-nav>
<view>
<u-tabs :list="tab_list" active-color="#15716E" inactive-color='#777777' :is-scroll="true" :current="tab_current" @change="tabChange"></u-tabs>
</view>
@ -63,7 +63,7 @@
<text class="lf-iconfont icon-zhiding lf-font-50"></text>
</view>
</view>
<view style="height: 30rpx;"></view>
<!-- <view style="height: 30rpx;"></view> -->
<lf-tabbar></lf-tabbar>
</view>
</template>
@ -99,7 +99,7 @@
},
computed: {
autoHeight(){
return `calc(${this.scrollH}px - ${this.nav_height}px - 86rpx)`;
return `calc(${this.scrollH}px - ${this.nav_height}px - 130rpx - 86rpx)`;
}
},
onLoad(){

5
pages/index/index/index.vue

@ -137,9 +137,10 @@
</view>
</view>
</block>
<view class="author">
<view style="height: 20rpx;"></view>
<!-- <view class="author">
<image mode="widthFix" src="https://cdn.guojiang.club/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20200402115441.png"></image>
</view>
</view> -->
<!-- 生日有礼 -->
<view class="is_birthday" v-if="is_showBirth">
<!-- 生日有礼 -->

Loading…
Cancel
Save