feat(新年活动): 完善页面

This commit is contained in:
hzj 2025-12-31 17:27:28 +08:00
parent 1eacacb197
commit 06bb2e0a9f
2 changed files with 15 additions and 5 deletions

View File

@ -83,9 +83,11 @@ export const myRecharge = async (activityId) => {
}
// 获取活动奖励配置列表.
export const activityRewardConfigs = async (activityType) => {
export const activityRewardConfigs = async (data) => {
try {
const response = await get(`/activity/lottery/reward-configs?activityType=${activityType}`)
const response = await get(
`/activity/lottery/reward-configs?activityType=${data.activityType}&activityId=${data.activityId}`
)
return response
} catch (error) {
console.error('Failed to fetch get activity reward:', error)

View File

@ -2109,6 +2109,9 @@ const sweepstakes = async (consecutive = 1) => {
isRolling.value = false
} catch (error) {
isRolling.value = false
if (error.response.errorCode == 3274) {
showError('Device has been used by another account')
}
}
}
}
@ -2169,7 +2172,11 @@ const getMyRecharge = async () => {
//
const getActivityReward = async () => {
const resActivityReward = await activityRewardConfigs('CONSUMPTION_ACTIVITY')
let data = {
activityType: 'CONSUMPTION_ACTIVITY',
activityId: '2005571533988298753',
}
const resActivityReward = await activityRewardConfigs(data)
if (resActivityReward.status && resActivityReward.body) {
rewardsList.value = resActivityReward.body.map((rewards) => {
let jsonData = JSON.parse(rewards.jsonData)
@ -2502,7 +2509,6 @@ const completePreloading = async () => {
//
const preloadOtherImages = async () => {
const criticalImages = [
imageUrl('helpBt'),
imageUrl('helpInfo'),
imageUrl('historyBg'),
imageUrl('historyBt'),
@ -2511,6 +2517,7 @@ const preloadOtherImages = async () => {
imageUrl('lotteryBtActive'),
imageUrl('myRankingBg'),
imageUrl('RankingItem'),
imageUrl('rulesBt'),
imageUrl('ruleInfo'),
imageUrl('taskBtGo'),
imageUrl('taskBtReceive'),
@ -2526,7 +2533,6 @@ const preloadOtherImages = async () => {
]
const criticalImages_ar = [
imageUrl('helpBt'),
imageUrl('helpInfo_ar'),
imageUrl('historyBg_ar'),
imageUrl('historyBt_ar'),
@ -2535,6 +2541,7 @@ const preloadOtherImages = async () => {
imageUrl('lotteryBtActive_ar'),
imageUrl('myRankingBg'),
imageUrl('RankingItem'),
imageUrl('rulesBt'),
imageUrl('ruleInfo_ar'),
imageUrl('taskBtGo'),
imageUrl('taskBtReceive'),
@ -2592,6 +2599,7 @@ onUnmounted(() => {
min-height: 100vh;
background: linear-gradient(90deg, #140e64 0%, #4b0bb5 100%);
position: relative;
padding-bottom: 2vw;
}
/* 添加加载动画样式 */