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 { try {
const response = await get( 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 return response
} catch (error) { } catch (error) {
@ -130,9 +130,9 @@ export const myTickets = async (activityId) => {
} }
// 获取我的总抽奖次数 // 获取我的总抽奖次数
export const myTotalDrawCount = async () => { export const myTotalDrawCount = async (activityId) => {
try { 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 return response
} catch (error) { } catch (error) {
console.error('Failed to fetch get my total draw count:', 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) => { const receiveReward = async (rewards) => {
let data = { let data = {
activityType: rewards.activityType, activityType: rewards.activityType,
activityId: '2007771533988204888', activityId: '2007771533988204877',
ruleId: rewards.ruleId, ruleId: rewards.ruleId,
} }
try { try {
@ -220,7 +220,7 @@ const receiveReward = async (rewards) => {
const getRechargeReward = async () => { const getRechargeReward = async () => {
let data = { let data = {
activityType: 'CONSUMPTION_ACTIVITY', activityType: 'CONSUMPTION_ACTIVITY',
activityId: '2007771533988204888', activityId: '2007771533988204877',
} }
const resActivityReward = await activityRewardConfigs(data) const resActivityReward = await activityRewardConfigs(data)
if (resActivityReward.status && resActivityReward.body) { if (resActivityReward.status && resActivityReward.body) {

View File

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