feat(游戏王页面): 调整图片预加载
This commit is contained in:
parent
022af7482a
commit
a78044371c
@ -1013,19 +1013,21 @@ const preloadCriticalImages = async () => {
|
|||||||
const criticalImages = [
|
const criticalImages = [
|
||||||
imageUrl('bg'),
|
imageUrl('bg'),
|
||||||
imageUrl('bg2'),
|
imageUrl('bg2'),
|
||||||
|
imageUrl('closeBt'),
|
||||||
|
imageUrl(getImgName('dailyPopUp')),
|
||||||
imageUrl('helpBt'),
|
imageUrl('helpBt'),
|
||||||
imageUrl('helpInfo'),
|
imageUrl(getImgName('helpInfo')),
|
||||||
imageUrl('historyBt'),
|
imageUrl(getImgName('historyBt')),
|
||||||
imageUrl('historyBtActive'),
|
imageUrl(getImgName('historyBtActive')),
|
||||||
imageUrl('myRankingBg'),
|
imageUrl('myRankingBg'),
|
||||||
imageUrl('rankingBt'),
|
imageUrl(getImgName('rankingBt')),
|
||||||
imageUrl('rankingBtActive'),
|
imageUrl(getImgName('rankingBtActive')),
|
||||||
imageUrl('rewardBtActive'),
|
imageUrl(getImgName('rewardBtActive')),
|
||||||
imageUrl('rewardsBt'),
|
imageUrl(getImgName('rewardsBt')),
|
||||||
imageUrl('RankingBottomBorder'),
|
imageUrl('RankingBottomBorder'),
|
||||||
imageUrl('RankingCenterBg'),
|
imageUrl('RankingCenterBg'),
|
||||||
imageUrl('RankingItem'),
|
imageUrl('RankingItem'),
|
||||||
imageUrl('RankingMain'),
|
imageUrl(getImgName('RankingMain')),
|
||||||
imageUrl('timeBg'),
|
imageUrl('timeBg'),
|
||||||
imageUrl('topBackBt'),
|
imageUrl('topBackBt'),
|
||||||
imageUrl('topNextBt'),
|
imageUrl('topNextBt'),
|
||||||
@ -1037,38 +1039,7 @@ const preloadCriticalImages = async () => {
|
|||||||
imageUrl('top8_10'),
|
imageUrl('top8_10'),
|
||||||
]
|
]
|
||||||
|
|
||||||
const criticalImages_ar = [
|
await preloadImages(criticalImages)
|
||||||
imageUrl('bg'),
|
|
||||||
imageUrl('bg2'),
|
|
||||||
imageUrl('helpBt'),
|
|
||||||
imageUrl('helpInfo_ar'),
|
|
||||||
imageUrl('historyBt_ar'),
|
|
||||||
imageUrl('historyBtActive_ar'),
|
|
||||||
imageUrl('myRankingBg'),
|
|
||||||
imageUrl('rankingBt_ar'),
|
|
||||||
imageUrl('rankingBtActive_ar'),
|
|
||||||
imageUrl('rewardBtActive_ar'),
|
|
||||||
imageUrl('rewardsBt_ar'),
|
|
||||||
imageUrl('RankingBottomBorder'),
|
|
||||||
imageUrl('RankingCenterBg'),
|
|
||||||
imageUrl('RankingItem'),
|
|
||||||
imageUrl('RankingMain_ar'),
|
|
||||||
imageUrl('timeBg'),
|
|
||||||
imageUrl('topBackBt'),
|
|
||||||
imageUrl('topNextBt'),
|
|
||||||
imageUrl('top1'),
|
|
||||||
imageUrl('top2'),
|
|
||||||
imageUrl('top3'),
|
|
||||||
imageUrl('top4'),
|
|
||||||
imageUrl('top5_7'),
|
|
||||||
imageUrl('top8_10'),
|
|
||||||
]
|
|
||||||
|
|
||||||
if (currentLangType.value == 'en') {
|
|
||||||
await preloadImages(criticalImages)
|
|
||||||
} else if (currentLangType.value == 'ar') {
|
|
||||||
await preloadImages(criticalImages_ar)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 完成预加载
|
// 完成预加载
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user