style(春节活动页面): 调整接口
This commit is contained in:
parent
dff425c825
commit
1940103b77
@ -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)
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user