背景图
This commit is contained in:
parent
dc7c7cc475
commit
1fbce75104
|
|
@ -4,8 +4,7 @@
|
|||
<z-paging ref="pagePaging" refresher-only @onRefresh="onRefresh" @scrolltolower="scrolltolower"
|
||||
@scroll="scroll">
|
||||
|
||||
<view class="bg"
|
||||
style="display: flex; justify-content: center; width: 100%; background-image: url('@@:static/bg.png');">
|
||||
<view class="bg main-bg">
|
||||
<view class="content">
|
||||
<guyu-home-search style="width: 100%;"></guyu-home-search>
|
||||
<!-- 公告 -->
|
||||
|
|
@ -16,7 +15,7 @@
|
|||
<guyu-home-recommend :rec-list="homeData?.recList" style="width: 100%;" />
|
||||
|
||||
<!-- 小程序中直接修改组件style为position: sticky;无效,需要在组件外层套一层view -->
|
||||
<view class="bar-view" style="z-index:97;position: sticky;top :0;background-color: #fff;">
|
||||
<view class="bar-view" style="z-index:97;position: sticky;top :0;">
|
||||
<view :style="{ height: tabsBarHeight + 'px' }" class="status-bar"> </view>
|
||||
<guyu-home-tabs ref="tabs" :list="homeData?.categories" @change="tabsChange"
|
||||
:current="current" />
|
||||
|
|
@ -149,4 +148,11 @@
|
|||
.swiper {
|
||||
height: 1000px;
|
||||
}
|
||||
|
||||
.main-bg {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
background-image: url('@@:static/bg.png');
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user