重构首页自适应布局

This commit is contained in:
zhouyanli
2026-05-19 10:26:15 +08:00
parent aa5453c0be
commit b7d1037b35
5 changed files with 65 additions and 75 deletions

View File

@@ -46,7 +46,6 @@
<view class="no-more" v-if="noMoreData && noticeList.length">没有更多通知了</view>
<view class="empty" v-if="noticeList.length === 0 && !loading">
暂无通知
<!-- <button class="refresh-btn" @click="loadNotices">刷新试试</button> -->
</view>
</view>
</scroll-view>
@@ -207,6 +206,7 @@ page {
text-align: center;
padding: 20rpx;
color: #999;
font-size: 24rpx;
}
.empty {
text-align: center;

View File

@@ -166,8 +166,6 @@ onLoad(() =>{
height: var(--status-bar-height);
width: 100%;
flex-shrink: 0;
/* height: 32px;
width: 100%; */
}
/* 顶部标题 */
.top-bar {

View File

@@ -230,8 +230,9 @@ onUnload(() =>{
padding: 0 40rpx;
}
.status_bar {
height: 32px;
height: var(--status-bar-height);
width: 100%;
flex-shrink: 0;
}
/* 顶部导航栏 */
.nav-bar {

View File

@@ -176,8 +176,10 @@ const addInvitation = () => {
padding: 0 40rpx;
}
.status_bar {
height: 32px;
height: var(--status-bar-height);
/* height: 32px; */
width: 100%;
flex-shrink: 0;
}
/* 顶部导航栏 */
.nav-bar {
@@ -203,7 +205,7 @@ const addInvitation = () => {
flex: 1;
text-align: center;
font-size: 32rpx;
font-weight: 600;
font-weight: 400;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;