feat(游戏榜单): 对接接口

This commit is contained in:
hzj 2025-12-18 17:48:36 +08:00
parent a2594b5e8f
commit 9bae885f89

View File

@ -536,12 +536,17 @@
<maskLayer :maskLayerShow="maskLayerShow" @click="maskLayerShow = false">
<!-- help弹窗 -->
<div style="margin: 20% 0" @click.stop>
<img
v-smart-img
:src="imageUrl(getImgName('helpInfo'))"
alt=""
style="display: block; width: 100%"
/>
<itemCenter
:imgUrl="imageUrl(getImgName('helpBg'))"
:contentStyle="`inset: 15% 4% 3%;overflow-y: auto;display:block;`"
>
<img
v-smart-img
:src="imageUrl(getImgName('helpInfo'))"
alt=""
style="display: block; width: 100%; object-fit: cover"
/>
</itemCenter>
</div>
</maskLayer>
</div>
@ -694,7 +699,7 @@ const showDetail = (type, reward) => {
//
const getListAndMy = async () => {
let data = {
activityType: 9999,
activityType: 10,
}
const resMyWeekStarRanking = await getRankingListAndMyRanking(data)
console.log('resMyWeekStarRanking:', resMyWeekStarRanking)
@ -704,36 +709,11 @@ const getListAndMy = async () => {
}
}
//
//
const getRewardsAndGifts = async () => {
const resRewardsAndGifts = await getThisWeekRewardsAndGifts('1996796468800196610')
const resRewardsAndGifts = await getThisWeekRewardsAndGifts('2001207026499137537')
if (resRewardsAndGifts.status && resRewardsAndGifts.body) {
rewardsList.value = resRewardsAndGifts.body.butOneRewards
if (rewardsList.value[0]) {
rewardsList.value[0].rewards.push({
type: 'DOLLARS',
content: 50,
})
}
if (rewardsList.value[1]) {
rewardsList.value[1].rewards.push({
type: 'DOLLARS',
content: 30,
})
}
if (rewardsList.value[2]) {
rewardsList.value[2].rewards.push({
type: 'DOLLARS',
content: 10,
})
}
//
if (!rewardsList.value[3]) {
rewardsList.value[3] = rewardsList.value[2]
}
}
}