style(春节活动页面): 调整接口

This commit is contained in:
hzj 2026-02-11 12:13:43 +08:00
parent dff425c825
commit 1940103b77
3 changed files with 14 additions and 10 deletions

View File

@ -98,11 +98,11 @@ export const activityRewardConfigs = async (data) => {
}
}
// 获取礼物排行榜奖励列表.
export const apiGiftsRankingRewardConfigs = async (data) => {
// 获取配置奖励.
export const apigetRewardConfigs = async (data) => {
try {
const response = await get(
`/props-activity-cnf/client/listActivityResource?sysOrigin=LIKEI&activityType=LUCKY_GIFT_REWARD`,
`/props-activity-cnf/client/listActivityResource?sysOrigin=${data.sysOrigin}&activityType=${data.activityType}`,
)
return response
} catch (error) {
@ -130,9 +130,9 @@ export const myTickets = async (activityId) => {
}
// 获取我的总抽奖次数
export const myTotalDrawCount = async () => {
export const myTotalDrawCount = async (activityId) => {
try {
const response = await get(`/activity/lottery/my-total-draw-count`)
const response = await get(`/activity/lottery/my-total-draw-count?activityId=${activityId}`)
return response
} catch (error) {
console.error('Failed to fetch get my total draw count:', error)

View File

@ -203,7 +203,7 @@ const rewardContentLayer = (index) => {
const receiveReward = async (rewards) => {
let data = {
activityType: rewards.activityType,
activityId: '2007771533988204888',
activityId: '2007771533988204877',
ruleId: rewards.ruleId,
}
try {
@ -220,7 +220,7 @@ const receiveReward = async (rewards) => {
const getRechargeReward = async () => {
let data = {
activityType: 'CONSUMPTION_ACTIVITY',
activityId: '2007771533988204888',
activityId: '2007771533988204877',
}
const resActivityReward = await activityRewardConfigs(data)
if (resActivityReward.status && resActivityReward.body) {

View File

@ -628,7 +628,7 @@ import {
activityDetail, //
ranklist, //
activityRewardConfigs, //
apiGiftsRankingRewardConfigs, // .
apigetRewardConfigs, // .
winnerHistory, //
withdrawableAmount, //
} from '@/api/lottery'
@ -1096,7 +1096,11 @@ const getRanking = async (rankingType = 'lottery') => {
//
const getGameReward = async () => {
const resActivityReward = await apiGiftsRankingRewardConfigs()
let data = {
sysOrigin: 'LIKEI',
activityType: 'LUCKY_GIFT_REWARD',
}
const resActivityReward = await apigetRewardConfigs(data)
if (resActivityReward.status && resActivityReward.body) {
rankingRewards.value = resActivityReward.body.map((rewards) => {
let addReward = []
@ -1155,7 +1159,7 @@ const getGameReward = async () => {
const getRechargeReward = async () => {
let data = {
activityType: 'CONSUMPTION_ACTIVITY',
activityId: '2007771533988204888',
activityId: '2007771533988204877',
}
const resActivityReward = await activityRewardConfigs(data)
if (resActivityReward.status && resActivityReward.body) {