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="" style=""
:imgUrl="imageUrl(`rankingRewardTop${index + 1}Bg`)" :imgUrl="imageUrl(`rankingRewardTop${index + 1}Bg`)"
:contentStyle="rewardContentLayer(index)" :contentStyle="rewardContentLayer(index)"
:lazy="true"
> >
<!-- 奖励列表 --> <!-- 奖励列表 -->
<div <div

View File

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

View File

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