Browse Source

解决页面刷新才能拿到token的问题。

milestone-20250723-众筹
宋杰 3 weeks ago
parent
commit
28724d0bf0
  1. 18
      src/views/zhongchou/index.vue

18
src/views/zhongchou/index.vue

@ -175,7 +175,7 @@ async function fetchActivity() {
} else {
activityPeriod.value = '时间待定'
}
//
if (data && data.length > 1) { //
// 使1
@ -199,7 +199,7 @@ async function fetchActivity() {
const totalPeople = 1500 // 1500
const currentCount = item.marketCount || 0 //
//
//
if (currentCount >= totalPeople) {
isCompleted.value = true //
usRemainingTime.value = 0 // 0
@ -210,7 +210,7 @@ async function fetchActivity() {
const initialTime = 15 // 15
const hundredsCount = Math.floor(currentCount / 100) // 100
const remainingTime = Math.max(0, initialTime - hundredsCount) // 1001
usRemainingTime.value = remainingTime
}
@ -348,10 +348,6 @@ const getQueryVariable = (variable) => {
onMounted(() => {
showRulesModal.value = true
nextTick(() => {
//
fetchActivity()
updateProgressBarHeight()
updateProgressDisplay()
let token = '';
token = getQueryVariable('token')
localStorage.setItem('localToken', token);
@ -361,6 +357,10 @@ onMounted(() => {
updateProgressBarHeight()
})
})
//
fetchActivity()
updateProgressBarHeight()
updateProgressDisplay()
})
})
@ -374,7 +374,7 @@ onMounted(() => {
// }
const handleBoostClick = async (area) => {
// 1500
// 1500
if (isCompleted.value) {
return;
}
@ -861,6 +861,7 @@ const hideRules = () => {
pointer-events: none;
/* 完全禁用鼠标事件 */
}
/* 修改悬浮效果,排除完成状态的按钮 */
.boost-btn:not(.completed):hover {
background-size: 110%;
@ -870,6 +871,7 @@ const hideRules = () => {
.boost-btn:hover {
/* 移除此样式或注释掉 */
}
/* 港股助力按钮 */
/* .hk-boost-btn {
background-image: url('@/assets/img/zhongchou/助力港股.png');

Loading…
Cancel
Save