修改bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user