|
@ -214,7 +214,7 @@ async function fetchActivity() { |
|
|
usRemainingTime.value = remainingTime |
|
|
usRemainingTime.value = remainingTime |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.log(`${marketName.value}助力人数: ${currentCount}/${totalPeople}, 进度: ${currentCount >= totalPeople ? '100' : progressPercent.toFixed(1)}%, 剩余时间: ${usRemainingTime.value}分钟, 完成状态: ${isCompleted.value}`) |
|
|
|
|
|
|
|
|
// console.log(`${marketName.value}助力人数: ${currentCount}/${totalPeople}, 进度: ${currentCount >= totalPeople ? '100' : progressPercent.toFixed(1)}%, 剩余时间: ${usRemainingTime.value}分钟, 完成状态: ${isCompleted.value}`) |
|
|
|
|
|
|
|
|
// 更新进度条高度 |
|
|
// 更新进度条高度 |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
@ -225,7 +225,7 @@ async function fetchActivity() { |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
console.error('获取活动失败:', response.message) |
|
|
console.error('获取活动失败:', response.message) |
|
|
activityPeriod.value = '获取失败' |
|
|
|
|
|
|
|
|
activityPeriod.value = response.message |
|
|
} |
|
|
} |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.error('请求错误:', error) |
|
|
console.error('请求错误:', error) |
|
@ -274,7 +274,7 @@ const showRulesModal = ref(false) |
|
|
// 添加助力成功提示状态 |
|
|
// 添加助力成功提示状态 |
|
|
const showBoostSuccess = ref(false) |
|
|
const showBoostSuccess = ref(false) |
|
|
// 剩余时间数据 - 从接口获取marketTwoCount计算 |
|
|
// 剩余时间数据 - 从接口获取marketTwoCount计算 |
|
|
const marketName = ref('美股') // 默认值为美股,将由API返回的数据更新 |
|
|
|
|
|
|
|
|
const marketName = ref() // 默认值为美股,将由API返回的数据更新 |
|
|
const usRemainingTime = ref(15) // 美股剩余分钟,初始值15分钟 |
|
|
const usRemainingTime = ref(15) // 美股剩余分钟,初始值15分钟 |
|
|
// const hkRemainingTime = ref(6) // 港股剩余分钟 |
|
|
// const hkRemainingTime = ref(6) // 港股剩余分钟 |
|
|
const usTotalTime = ref(15) // 美股总时间15分钟 |
|
|
const usTotalTime = ref(15) // 美股总时间15分钟 |
|
|