背景图

This commit is contained in:
18631081161 2025-07-25 14:18:22 +08:00
parent dc7c7cc475
commit 1fbce75104
2 changed files with 10 additions and 3 deletions

View File

@ -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>

View File

@ -72,6 +72,7 @@ $baseurl: "https://guyu-1308826010.cos.ap-shanghai.myqcloud.com/static/";
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
}
.column {