修复bug

This commit is contained in:
2026-05-04 17:49:00 +08:00
parent e1c9068ab0
commit 2f0479ea05
10 changed files with 531 additions and 101 deletions
+6 -3
View File
@@ -191,6 +191,7 @@
getCurrentAnnouncement,
getCurrentAdvertisement
} from '../../config/api/system.js'
import { fetchAndCacheDanaPaymentConfig } from '../../utils/danaPaymentConfig.js'
import {
getProductList
} from '../../config/api/product.js'
@@ -332,7 +333,6 @@
const noticeText = ref('')
const bannerImages = ref([]) // 首页广告图片列表
const bannerImageList = ref([]) // 完整的广告配置列表(包含链接信息)
// 获取公告内容(支持多语言)
const getNoticeText = async () => {
try {
@@ -577,7 +577,7 @@
navBarHeight.value = 44
}
}
// 生命周期
onMounted(() => {
initNavBarHeight()
@@ -619,7 +619,10 @@
// 并行加载公告和广告(不依赖定位)
await Promise.all([
getNoticeText(),
getBannerImages()
getBannerImages(),
fetchAndCacheDanaPaymentConfig().catch((e) => {
console.warn('获取 DANA 配置失败,继续使用本地默认值:', e)
})
])
// #ifdef H5