feat(春节活动页面): 对接奖励列表接口

This commit is contained in:
hzj 2026-02-10 20:01:09 +08:00
parent b4bdf3c78d
commit b5836fc1fd
3 changed files with 38 additions and 34 deletions

View File

@ -5,7 +5,6 @@
style=""
:imgUrl="imageUrl(`rankingRewardTop${index + 1}Bg`)"
:contentStyle="rewardContentLayer(index)"
:lazy="true"
>
<!-- 奖励列表 -->
<div

View File

@ -3,9 +3,8 @@
<itemCenter
v-for="(rewardsTop, index) in RechargeRewards"
style=""
:imgUrl="topImg[Number(rewardsTop.sort) - 1]"
:imgUrl="topImg[index]"
:contentStyle="rewardContentLayer(index)"
:lazy="true"
>
<!-- 奖励列表 -->
<div
@ -221,7 +220,7 @@ const receiveReward = async (rewards) => {
const getRechargeReward = async () => {
let data = {
activityType: 'CONSUMPTION_ACTIVITY',
activityId: '2005571533988298753',
activityId: '2007771533988204888',
}
const resActivityReward = await activityRewardConfigs(data)
if (resActivityReward.status && resActivityReward.body) {
@ -238,35 +237,37 @@ const getRechargeReward = async () => {
} else if (rewards.sort == 4) {
addReward = [
{
type: 'TICKET',
cover: imageUrl('ticket'),
content: 30,
type: 'GIFT',
cover: imageUrl('reward_gift'),
content: 1,
},
]
} else if (rewards.sort == 5) {
addReward = [
{
type: 'TICKET',
cover: imageUrl('ticket'),
content: 40,
type: 'GIFT',
cover: imageUrl('reward_gift'),
content: 1,
},
]
} else if (rewards.sort == 6) {
addReward = [
{
type: 'TICKET',
cover: imageUrl('ticket'),
content: 50,
type: 'GIFT',
cover: imageUrl('reward_gift'),
content: 1,
},
{
type: 'TICKET',
cover: imageUrl('ticket'),
content: 50,
type: 'PROPS',
detailType: 'AVATAR_FRAME',
cover: imageUrl('reward_frame'),
quantity: 365,
},
{
type: 'TICKET',
cover: imageUrl('ticket'),
content: 50,
type: 'PROPS',
detailType: 'RIDE',
cover: imageUrl('reward_ride'),
quantity: 60,
},
]
}
@ -279,6 +280,7 @@ const getRechargeReward = async () => {
}
return rewards
})
console.log('RechargeRewards.value:', RechargeRewards.value)
} else {
RechargeRewards.value = []
}

View File

@ -1176,35 +1176,37 @@ const getRechargeReward = async () => {
} else if (rewards.sort == 4) {
addReward = [
{
type: 'TICKET',
cover: imageUrl('ticket'),
content: 30,
type: 'GIFT',
cover: imageUrl('reward_gift'),
content: 1,
},
]
} else if (rewards.sort == 5) {
addReward = [
{
type: 'TICKET',
cover: imageUrl('ticket'),
content: 40,
type: 'GIFT',
cover: imageUrl('reward_gift'),
content: 1,
},
]
} else if (rewards.sort == 6) {
addReward = [
{
type: 'TICKET',
cover: imageUrl('ticket'),
content: 50,
type: 'GIFT',
cover: imageUrl('reward_gift'),
content: 1,
},
{
type: 'TICKET',
cover: imageUrl('ticket'),
content: 50,
type: 'PROPS',
detailType: 'AVATAR_FRAME',
cover: imageUrl('reward_frame'),
quantity: 365,
},
{
type: 'TICKET',
cover: imageUrl('ticket'),
content: 50,
type: 'PROPS',
detailType: 'RIDE',
cover: imageUrl('reward_ride'),
quantity: 60,
},
]
}
@ -1217,6 +1219,7 @@ const getRechargeReward = async () => {
}
return rewards
})
console.log('RechargeRewards.value:', RechargeRewards.value)
} else {
RechargeRewards.value = []
}