Browse Source

修改活动时间显示

zhangjiahao/feature-20250717125955-众筹
zhangjiahao 3 weeks ago
parent
commit
e5adb2d217
  1. 8
      src/views/zhongchou/index.vue

8
src/views/zhongchou/index.vue

@ -175,7 +175,7 @@ async function fetchActivity() {
} else {
activityPeriod.value = '时间待定'
}
//
if (data && data.length > 1) { //
// 使1
@ -214,7 +214,7 @@ async function fetchActivity() {
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(() => {
@ -225,7 +225,7 @@ async function fetchActivity() {
}
} else {
console.error('获取活动失败:', response.message)
activityPeriod.value = '获取失败'
activityPeriod.value = response.message
}
} catch (error) {
console.error('请求错误:', error)
@ -274,7 +274,7 @@ const showRulesModal = ref(false)
//
const showBoostSuccess = ref(false)
// - marketTwoCount
const marketName = ref('美股') // API
const marketName = ref() // API
const usRemainingTime = ref(15) // 15
// const hkRemainingTime = ref(6) //
const usTotalTime = ref(15) // 15

Loading…
Cancel
Save