修复bug

This commit is contained in:
weicw
2023-09-22 16:25:23 +08:00
parent 030c4a9c69
commit 4cec8b47d8
3 changed files with 68 additions and 49 deletions

View File

@@ -8,7 +8,7 @@
</template>
</u-navbar>
<!-- 搜索 -->
<u-sticky offset-top="5" zIndex="999">
<u-sticky :offset-top="stickyTop" zIndex="999">
<view class="search-fix fixed" v-if="scrollTop < 30">
<view class="search">
<u-notice-bar bgColor="#ffffff" direction="column" :text="hotKeywords" speed="250" @click="onNoticeBar"></u-notice-bar>
@@ -32,7 +32,7 @@
</u-sticky>
<!-- 幻灯片 -->
<view class="swiper">
<u-swiper :list="swiperList" :height="180" :radius="0" @change="change" @click="click"></u-swiper>
<u-swiper :list="swiperList" :height="180" :radius="0" @click="click"></u-swiper>
</view>
<!-- 选项卡 -->
<view class="tabs">
@@ -144,7 +144,8 @@
scrollTop: 0,
old: {
scrollTop: 0
}
},
stickyTop: 60
};
},
@@ -155,6 +156,12 @@
uni.$u.mpShare = {
title: '爱尚家找房'
}
uni.getSystemInfo({
success: (res) => {
this.stickyTop = res.statusBarHeight + 44 + 20
}
})
},
onShow() {},
onBackPress() {},