feat(新年活动): 完善页面
This commit is contained in:
parent
1eacacb197
commit
06bb2e0a9f
@ -83,9 +83,11 @@ export const myRecharge = async (activityId) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取活动奖励配置列表.
|
// 获取活动奖励配置列表.
|
||||||
export const activityRewardConfigs = async (activityType) => {
|
export const activityRewardConfigs = async (data) => {
|
||||||
try {
|
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
|
return response
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to fetch get activity reward:', error)
|
console.error('Failed to fetch get activity reward:', error)
|
||||||
|
|||||||
@ -2109,6 +2109,9 @@ const sweepstakes = async (consecutive = 1) => {
|
|||||||
isRolling.value = false
|
isRolling.value = false
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
isRolling.value = false
|
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 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) {
|
if (resActivityReward.status && resActivityReward.body) {
|
||||||
rewardsList.value = resActivityReward.body.map((rewards) => {
|
rewardsList.value = resActivityReward.body.map((rewards) => {
|
||||||
let jsonData = JSON.parse(rewards.jsonData)
|
let jsonData = JSON.parse(rewards.jsonData)
|
||||||
@ -2502,7 +2509,6 @@ const completePreloading = async () => {
|
|||||||
// 预加载其他图片
|
// 预加载其他图片
|
||||||
const preloadOtherImages = async () => {
|
const preloadOtherImages = async () => {
|
||||||
const criticalImages = [
|
const criticalImages = [
|
||||||
imageUrl('helpBt'),
|
|
||||||
imageUrl('helpInfo'),
|
imageUrl('helpInfo'),
|
||||||
imageUrl('historyBg'),
|
imageUrl('historyBg'),
|
||||||
imageUrl('historyBt'),
|
imageUrl('historyBt'),
|
||||||
@ -2511,6 +2517,7 @@ const preloadOtherImages = async () => {
|
|||||||
imageUrl('lotteryBtActive'),
|
imageUrl('lotteryBtActive'),
|
||||||
imageUrl('myRankingBg'),
|
imageUrl('myRankingBg'),
|
||||||
imageUrl('RankingItem'),
|
imageUrl('RankingItem'),
|
||||||
|
imageUrl('rulesBt'),
|
||||||
imageUrl('ruleInfo'),
|
imageUrl('ruleInfo'),
|
||||||
imageUrl('taskBtGo'),
|
imageUrl('taskBtGo'),
|
||||||
imageUrl('taskBtReceive'),
|
imageUrl('taskBtReceive'),
|
||||||
@ -2526,7 +2533,6 @@ const preloadOtherImages = async () => {
|
|||||||
]
|
]
|
||||||
|
|
||||||
const criticalImages_ar = [
|
const criticalImages_ar = [
|
||||||
imageUrl('helpBt'),
|
|
||||||
imageUrl('helpInfo_ar'),
|
imageUrl('helpInfo_ar'),
|
||||||
imageUrl('historyBg_ar'),
|
imageUrl('historyBg_ar'),
|
||||||
imageUrl('historyBt_ar'),
|
imageUrl('historyBt_ar'),
|
||||||
@ -2535,6 +2541,7 @@ const preloadOtherImages = async () => {
|
|||||||
imageUrl('lotteryBtActive_ar'),
|
imageUrl('lotteryBtActive_ar'),
|
||||||
imageUrl('myRankingBg'),
|
imageUrl('myRankingBg'),
|
||||||
imageUrl('RankingItem'),
|
imageUrl('RankingItem'),
|
||||||
|
imageUrl('rulesBt'),
|
||||||
imageUrl('ruleInfo_ar'),
|
imageUrl('ruleInfo_ar'),
|
||||||
imageUrl('taskBtGo'),
|
imageUrl('taskBtGo'),
|
||||||
imageUrl('taskBtReceive'),
|
imageUrl('taskBtReceive'),
|
||||||
@ -2592,6 +2599,7 @@ onUnmounted(() => {
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: linear-gradient(90deg, #140e64 0%, #4b0bb5 100%);
|
background: linear-gradient(90deg, #140e64 0%, #4b0bb5 100%);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
padding-bottom: 2vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 添加加载动画样式 */
|
/* 添加加载动画样式 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user