feat(靓号页面): 更新图源
This commit is contained in:
parent
99254586ea
commit
ea0faa7f1f
@ -10,7 +10,7 @@
|
|||||||
<!-- 主要内容 -->
|
<!-- 主要内容 -->
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<!-- Rewards0.png 使用相对定位容器 -->
|
<!-- Rewards0.png 使用相对定位容器 -->
|
||||||
<itemCenter :imgUrl="imageUrl('goodID0')" :contentStyle="`display: block;`">
|
<itemCenter :imgUrl="imageUrl('goodID0New')" :contentStyle="`display: block;`">
|
||||||
<!-- 帮助按钮 -->
|
<!-- 帮助按钮 -->
|
||||||
<img
|
<img
|
||||||
v-smart-img
|
v-smart-img
|
||||||
@ -251,30 +251,16 @@ const initData = () => {
|
|||||||
// 预加载关键图片
|
// 预加载关键图片
|
||||||
const preloadCriticalImages = () => {
|
const preloadCriticalImages = () => {
|
||||||
const criticalImages = [
|
const criticalImages = [
|
||||||
imageUrl('goodID0'),
|
imageUrl('goodID0New'),
|
||||||
imageUrl('goodID1'),
|
imageUrl('goodID1'),
|
||||||
imageUrl('goodID2'),
|
imageUrl('goodID2'),
|
||||||
imageUrl('help'),
|
imageUrl('help'),
|
||||||
imageUrl('rule'),
|
imageUrl('rule'),
|
||||||
imageUrl('applyBg'),
|
imageUrl('applyBg'),
|
||||||
imageUrl('applyBt'),
|
imageUrl(getImgName('applyBt')),
|
||||||
]
|
]
|
||||||
|
|
||||||
const criticalImages_ar = [
|
return preloadImages(criticalImages)
|
||||||
imageUrl('goodID0'),
|
|
||||||
imageUrl('goodID1'),
|
|
||||||
imageUrl('goodID2'),
|
|
||||||
imageUrl('help'),
|
|
||||||
imageUrl('rule_ar'),
|
|
||||||
imageUrl('applyBg'),
|
|
||||||
imageUrl('applyBt_ar'),
|
|
||||||
]
|
|
||||||
|
|
||||||
if (currentLangType.value == 'en') {
|
|
||||||
return preloadImages(criticalImages)
|
|
||||||
} else if (currentLangType.value == 'ar') {
|
|
||||||
return preloadImages(criticalImages_ar)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 完成预加载
|
// 完成预加载
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user