diff --git a/src/api/lottery.js b/src/api/lottery.js
index 381540c..15224bc 100644
--- a/src/api/lottery.js
+++ b/src/api/lottery.js
@@ -71,9 +71,9 @@ export const activityDetail = async (activityCode) => {
}
// 获取充值记录
-export const myRecharge = async () => {
+export const myRecharge = async (activityId) => {
try {
- const response = await get(`/activity/lottery/my-recharge`)
+ const response = await get(`/activity/lottery/my-recharge?activityId=${activityId}`)
return response
} catch (error) {
console.error('Failed to fetch get my recharge:', error)
diff --git a/src/views/Activities/NewYear/components/topUser.vue b/src/views/Activities/NewYear/components/topUser.vue
index e1ef024..f058519 100644
--- a/src/views/Activities/NewYear/components/topUser.vue
+++ b/src/views/Activities/NewYear/components/topUser.vue
@@ -73,13 +73,6 @@
height: distributionValueHeight,
}"
>
-
- {{ distributionValue }}
+ ${{ distributionValue }}
diff --git a/src/views/Activities/NewYear/index.vue b/src/views/Activities/NewYear/index.vue
index a7946db..ac9da66 100644
--- a/src/views/Activities/NewYear/index.vue
+++ b/src/views/Activities/NewYear/index.vue
@@ -12,7 +12,7 @@
- {{ listItem?.amount }}
+ ${{ listItem?.amount }}
@@ -540,13 +534,13 @@
"
:style="[getGridPosition(index)]"
>
-
-
-
- {{ showTarget(task) }}
-
-
- {{ task.taskName }}
-
+
+
+ {{ showTarget(task) }}
+
+
+
Rewards:
![]()
-
*{{ task.rewardValue }}
+
*{{ task.rewardValue }}
@@ -905,13 +905,13 @@
gap: 4px;
"
>
-
+
-

-
- {{ myRanking?.amount || 0 }}
-
+
${{ myRanking?.amount || 0 }}
@@ -1743,19 +1735,27 @@ const taskList = ref([])
// 展示任务目标
const showTarget = (task) => {
- let timeType = task.targetValue < 60
- let currentValue = timeType ? task.currentValue : task.currentValue / 60
- let targetValue = timeType ? task.targetValue : task.targetValue / 60
- // 直接去除小数部分(向下取整)
- currentValue = Math.floor(currentValue)
- targetValue = Math.floor(targetValue)
- let timeUnit = timeType ? t('minutes_short') : t('hours_short')
+ if (task.targetType == 'MIC_TIME') {
+ let timeType = task.targetValue < 60
+ let currentValue = timeType ? task.currentValue : task.currentValue / 60
+ let targetValue = timeType ? task.targetValue : task.targetValue / 60
+ // 直接去除小数部分(向下取整)
+ currentValue = Math.floor(currentValue)
+ targetValue = Math.floor(targetValue)
+ let timeUnit = timeType ? t('minutes_short') : t('hours_short')
- return t('on_mic_progress', {
- current: currentValue,
- total: targetValue,
- unit: timeUnit,
- })
+ return t('on_mic_progress', {
+ current: currentValue,
+ total: targetValue,
+ unit: timeUnit,
+ })
+ } else if (task.targetType == 'SEND_GIFT') {
+ return `${task.taskName}(${task.currentValue}/${task.targetValue})`
+ } else if (task.targetType == 'SPEND_COINS') {
+ return `${task.taskName}(${task.currentValue}/${task.targetValue})`
+ } else if (task.targetType == 'RECHARGE_AMOUNT') {
+ return `${task.taskName}(${task.currentValue}/${task.targetValue})`
+ }
}
// 选中的收款人
@@ -2076,7 +2076,7 @@ const getActivityDetail = async () => {
//获取充值记录
const getMyRecharge = async () => {
- const resMyRecharge = await myRecharge()
+ const resMyRecharge = await myRecharge('2005571533988298753')
if (resMyRecharge.status && resMyRecharge.body) {
myRechargeRecode.value = resMyRecharge.body
} else {
@@ -2124,8 +2124,9 @@ const getActivityReward = async () => {
content: 30,
},
{
- type: 'Gift',
+ type: 'GIFT',
cover: imageUrl('reward_gift'),
+ content: 1,
},
]
} else if (rewards.sort == 5) {
@@ -2136,8 +2137,9 @@ const getActivityReward = async () => {
content: 40,
},
{
- type: 'Gift',
+ type: 'GIFT',
cover: imageUrl('reward_gift'),
+ content: 1,
},
]
} else if (rewards.sort == 6) {
@@ -2148,8 +2150,9 @@ const getActivityReward = async () => {
content: 50,
},
{
- type: 'Gift',
+ type: 'GIFT',
cover: imageUrl('reward_gift'),
+ content: 1,
},
{
type: 'PROPS',
@@ -2311,9 +2314,6 @@ const preloadCriticalImages = async () => {
imageUrl('bg1'),
imageUrl('bg2'),
imageUrl('bg3'),
- imageUrl('bg4'),
- imageUrl('bg5'),
- imageUrl('bg6'),
imageUrl('myAvatarFrame'),
imageUrl('myInfoBg'),
imageUrl('rankBt'),
@@ -2341,9 +2341,6 @@ const preloadCriticalImages = async () => {
imageUrl('bg1'),
imageUrl('bg2'),
imageUrl('bg3'),
- imageUrl('bg4'),
- imageUrl('bg5'),
- imageUrl('bg6'),
imageUrl('myAvatarFrame'),
imageUrl('myInfoBg'),
imageUrl('rankBt_ar'),