From d44b94a466bc72b59544bd9aa8937bba2e9515e4 Mon Sep 17 00:00:00 2001 From: Zylan Date: Sun, 30 Mar 2025 20:20:00 +0800 Subject: [PATCH] 1 --- components/calculator.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/calculator.tsx b/components/calculator.tsx index 0881516..8882b7e 100644 --- a/components/calculator.tsx +++ b/components/calculator.tsx @@ -469,12 +469,18 @@ const SalaryCalculator = () => { const timer = setTimeout(() => { const pv = document.getElementById('busuanzi_value_site_pv'); if (pv && pv.innerText !== '') { + // 直接在现有数字上加上1700000(原seeyoufarm统计数据) + const currentCount = parseInt(pv.innerText, 10) || 0; + pv.innerText = (currentCount + 1700000).toString(); setVisitorVisible(true); } else { // 如果未加载,再次尝试 const retryTimer = setTimeout(() => { const pv = document.getElementById('busuanzi_value_site_pv'); if (pv && pv.innerText !== '') { + // 直接在现有数字上加上1700000(原seeyoufarm统计数据) + const currentCount = parseInt(pv.innerText, 10) || 0; + pv.innerText = (currentCount + 1700000).toString(); setVisitorVisible(true); } }, 2000); @@ -788,7 +794,6 @@ const SalaryCalculator = () => {
{t('visits')}: - +1,700,000 {t('visitors')}: