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