feat(游戏王页面): 调整图片预加载
This commit is contained in:
parent
022af7482a
commit
a78044371c
@ -1013,19 +1013,21 @@ const preloadCriticalImages = async () => {
|
||||
const criticalImages = [
|
||||
imageUrl('bg'),
|
||||
imageUrl('bg2'),
|
||||
imageUrl('closeBt'),
|
||||
imageUrl(getImgName('dailyPopUp')),
|
||||
imageUrl('helpBt'),
|
||||
imageUrl('helpInfo'),
|
||||
imageUrl('historyBt'),
|
||||
imageUrl('historyBtActive'),
|
||||
imageUrl(getImgName('helpInfo')),
|
||||
imageUrl(getImgName('historyBt')),
|
||||
imageUrl(getImgName('historyBtActive')),
|
||||
imageUrl('myRankingBg'),
|
||||
imageUrl('rankingBt'),
|
||||
imageUrl('rankingBtActive'),
|
||||
imageUrl('rewardBtActive'),
|
||||
imageUrl('rewardsBt'),
|
||||
imageUrl(getImgName('rankingBt')),
|
||||
imageUrl(getImgName('rankingBtActive')),
|
||||
imageUrl(getImgName('rewardBtActive')),
|
||||
imageUrl(getImgName('rewardsBt')),
|
||||
imageUrl('RankingBottomBorder'),
|
||||
imageUrl('RankingCenterBg'),
|
||||
imageUrl('RankingItem'),
|
||||
imageUrl('RankingMain'),
|
||||
imageUrl(getImgName('RankingMain')),
|
||||
imageUrl('timeBg'),
|
||||
imageUrl('topBackBt'),
|
||||
imageUrl('topNextBt'),
|
||||
@ -1037,38 +1039,7 @@ const preloadCriticalImages = async () => {
|
||||
imageUrl('top8_10'),
|
||||
]
|
||||
|
||||
const criticalImages_ar = [
|
||||
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)
|
||||
}
|
||||
await preloadImages(criticalImages)
|
||||
}
|
||||
|
||||
// 完成预加载
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user