修改bug

This commit is contained in:
zhouyanli
2026-08-26 18:00:43 +08:00
parent c862c6ae4b
commit 56641cbc56
6 changed files with 35 additions and 36 deletions

View File

@@ -4,11 +4,8 @@
<view class="loading-mask" v-if="!pageReady">
<view class="loading-bg"></view>
</view>
<!-- 顶部渐变背景固定在内容下方 -->
<!-- 顶部渐变背景 -->
<view class="nar-top" v-if="pageReady"></view>
<!-- 固定头部 -->
<view class="header-fixed" v-if="pageReady">
<view class="status-bar"></view>
@@ -136,8 +133,6 @@
</view>
</uni-card>
<!-- 底部占位 -->
<view class="scroll-bottom-space"></view>
</view>
</view>
</template>
@@ -249,9 +244,7 @@
bannerList.value = []
bannerSwiperKey.value++
}
} catch (err) {
// 静默失败
}
} catch (err) {}
}
const bannerClick = (index) => {
@@ -299,7 +292,6 @@
currentVillageId.value = ''
uni.removeStorageSync('currentVillageId')
saveHomeCache()
// 有 token 才提示错误(无 token 用户正常浏览首页API 401 属于预期行为)
const token = uni.getStorageSync('token')
if (token) {
uni.showToast({ title: err.msg || '网络异常', icon: 'none' })
@@ -439,7 +431,8 @@
try {
const res = await getActivitylatest({ villageId: uni.getStorageSync('currentVillageId') })
if (res.code === 200) {
activityList.value = res.data || []; saveHomeCache()
activityList.value = res.data || [];
saveHomeCache()
} else {
activityList.value = []
}
@@ -526,10 +519,6 @@
z-index: 1;
}
.scroll-bottom-space {
height: 40rpx;
}
.header-container {
display: flex;
align-items: center;