From 0c0677ac632bbe8dd705d8639b66a8dfc688ae2f Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Wed, 26 Jul 2023 17:02:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=8D=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/public.js | 5 ----- src/utils/comm.js | 4 +++- src/views/HomeView.vue | 6 +++--- 3 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 src/config/public.js diff --git a/src/config/public.js b/src/config/public.js deleted file mode 100644 index 5c07404..0000000 --- a/src/config/public.js +++ /dev/null @@ -1,5 +0,0 @@ - -window.publicConfig = { - // 请求地址 - BASE_API: 'http://btgym.xingtongworld.com/index.php?s=/api/', -} \ No newline at end of file diff --git a/src/utils/comm.js b/src/utils/comm.js index d12e0f3..00580f7 100644 --- a/src/utils/comm.js +++ b/src/utils/comm.js @@ -2,9 +2,11 @@ // 最后的几位数进行变化 export function numGrow(obj,end){ var o = document.getElementById(obj); + // var o = document.$refs.obj // var i = start; - var i=0; + var i=100; var Interval; + // if (i < end) { Interval = setInterval(function () { i += 100; // 设置每次增加的动态数字,可调整 diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 2bd9f02..d4a62a7 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -8,7 +8,7 @@
年度进馆总人数 -

{{ year_num }}

+

{{ year_num }}

@@ -642,9 +642,9 @@ export default { that.week_num = tmpdata.week.noRepeatInNum that.mon_num = tmpdata.month.noRepeatInNum that.year_num = tmpdata.year.noRepeatInNum - // 增加数字动画效果 - numGrow(that.$refs.dynum,tmpdata.day.noRepeatInNum) + numGrow(ycdn,tmpdata.day.noRepeatInNum) + }); },