feat(游戏王页面): 调整图源

This commit is contained in:
hzj 2026-02-03 19:37:32 +08:00
parent dd20a59610
commit c4a6fcd10e

View File

@ -242,16 +242,12 @@
</itemCenter>
<!-- 特殊奖励 -->
<itemCenter
:imgUrl="imageUrl(getImgName('specialRewardsBg'))"
:contentStyle="`inset: 43vw 3vw 5vw;`"
>
<img
:src="specialReward?.cover"
alt=""
style="display: block; width: 70%; object-fit: cover"
/>
</itemCenter>
<img
v-smart-img
:src="imageUrl(getImgName('specialRewards'))"
alt=""
style="display: block; width: 100%; object-fit: cover"
/>
</div>
<!-- Ranking -->
@ -779,7 +775,7 @@ const historyTopIndex = ref(0)
const Ranking = ref([]) //
const myRanking = ref({}) //
const rewardsList = ref([]) //
const specialReward = ref({}) //
// const specialReward = ref({}) //
const topImg = ref([
imageUrl('top1RewardBg'),
@ -928,7 +924,7 @@ const initData = async () => {
getAllTopOne(), //
getListAndMy(), //
getRewardsAndGifts(), //
getActivityResource(), //
// getActivityResource(), //
])
}
@ -1011,30 +1007,16 @@ const completePreloading = async () => {
//
const preloadOtherImages = async () => {
const criticalImages = [
imageUrl('historyTopBg'),
imageUrl(getImgName('historyTopBg')),
imageUrl('historyTopFrame'),
imageUrl('specialRewardsBg'),
imageUrl(getImgName('specialRewards')),
imageUrl('top1RewardBg'),
imageUrl('top2_4RewardBg'),
imageUrl('top5_7RewardBg'),
imageUrl('top8_10RewardBg'),
]
const criticalImages_ar = [
imageUrl('historyTopBg_ar'),
imageUrl('historyTopFrame'),
imageUrl('specialRewardsBg_ar'),
imageUrl('top1RewardBg'),
imageUrl('top2_4RewardBg'),
imageUrl('top5_7RewardBg'),
imageUrl('top8_10RewardBg'),
]
if (currentLangType.value == 'en') {
await preloadImages(criticalImages)
} else if (currentLangType.value == 'ar') {
await preloadImages(criticalImages_ar)
}
await preloadImages(criticalImages)
}
// 使APP