diff --git a/src/api/lottery.js b/src/api/lottery.js index bac88a0..6f1f4b5 100644 --- a/src/api/lottery.js +++ b/src/api/lottery.js @@ -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) diff --git a/src/views/Activities/NewYear/index.vue b/src/views/Activities/NewYear/index.vue index f75c753..38fda1d 100644 --- a/src/views/Activities/NewYear/index.vue +++ b/src/views/Activities/NewYear/index.vue @@ -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; } /* 添加加载动画样式 */