feat(游戏王页面): 调整图源
This commit is contained in:
parent
dd20a59610
commit
c4a6fcd10e
@ -242,16 +242,12 @@
|
|||||||
</itemCenter>
|
</itemCenter>
|
||||||
|
|
||||||
<!-- 特殊奖励 -->
|
<!-- 特殊奖励 -->
|
||||||
<itemCenter
|
<img
|
||||||
:imgUrl="imageUrl(getImgName('specialRewardsBg'))"
|
v-smart-img
|
||||||
:contentStyle="`inset: 43vw 3vw 5vw;`"
|
:src="imageUrl(getImgName('specialRewards'))"
|
||||||
>
|
alt=""
|
||||||
<img
|
style="display: block; width: 100%; object-fit: cover"
|
||||||
:src="specialReward?.cover"
|
/>
|
||||||
alt=""
|
|
||||||
style="display: block; width: 70%; object-fit: cover"
|
|
||||||
/>
|
|
||||||
</itemCenter>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Ranking -->
|
<!-- Ranking -->
|
||||||
@ -779,7 +775,7 @@ const historyTopIndex = ref(0)
|
|||||||
const Ranking = ref([]) // 排行榜
|
const Ranking = ref([]) // 排行榜
|
||||||
const myRanking = ref({}) // 我的排名
|
const myRanking = ref({}) // 我的排名
|
||||||
const rewardsList = ref([]) // 奖励列表
|
const rewardsList = ref([]) // 奖励列表
|
||||||
const specialReward = ref({}) // 奖励列表
|
// const specialReward = ref({}) // 奖励列表
|
||||||
|
|
||||||
const topImg = ref([
|
const topImg = ref([
|
||||||
imageUrl('top1RewardBg'),
|
imageUrl('top1RewardBg'),
|
||||||
@ -928,7 +924,7 @@ const initData = async () => {
|
|||||||
getAllTopOne(), // 获取历史榜首
|
getAllTopOne(), // 获取历史榜首
|
||||||
getListAndMy(), // 获取排行榜和我的排名
|
getListAndMy(), // 获取排行榜和我的排名
|
||||||
getRewardsAndGifts(), // 获取本周的礼物和奖励列表
|
getRewardsAndGifts(), // 获取本周的礼物和奖励列表
|
||||||
getActivityResource(), // 获取指定类型活动资源
|
// getActivityResource(), // 获取指定类型活动资源
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1011,30 +1007,16 @@ const completePreloading = async () => {
|
|||||||
// 预加载其他图片
|
// 预加载其他图片
|
||||||
const preloadOtherImages = async () => {
|
const preloadOtherImages = async () => {
|
||||||
const criticalImages = [
|
const criticalImages = [
|
||||||
imageUrl('historyTopBg'),
|
imageUrl(getImgName('historyTopBg')),
|
||||||
imageUrl('historyTopFrame'),
|
imageUrl('historyTopFrame'),
|
||||||
imageUrl('specialRewardsBg'),
|
imageUrl(getImgName('specialRewards')),
|
||||||
imageUrl('top1RewardBg'),
|
imageUrl('top1RewardBg'),
|
||||||
imageUrl('top2_4RewardBg'),
|
imageUrl('top2_4RewardBg'),
|
||||||
imageUrl('top5_7RewardBg'),
|
imageUrl('top5_7RewardBg'),
|
||||||
imageUrl('top8_10RewardBg'),
|
imageUrl('top8_10RewardBg'),
|
||||||
]
|
]
|
||||||
|
|
||||||
const criticalImages_ar = [
|
await preloadImages(criticalImages)
|
||||||
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)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 使用工具函数连接APP
|
// 使用工具函数连接APP
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user