Browse Source

调整不使用的代码文件

master
453530270@qq.com 3 years ago
parent
commit
0c0677ac63
  1. 5
      src/config/public.js
  2. 4
      src/utils/comm.js
  3. 6
      src/views/HomeView.vue

5
src/config/public.js

@ -1,5 +0,0 @@
window.publicConfig = {
// 请求地址
BASE_API: 'http://btgym.xingtongworld.com/index.php?s=/api/',
}

4
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; // 设置每次增加的动态数字,可调整

6
src/views/HomeView.vue

@ -8,7 +8,7 @@
</div>
<div class="gymnum">
<span>年度进馆总人数</span>
<p>{{ year_num }}</p>
<p id="ycdn">{{ year_num }}</p>
</div>
</div>
<!-- 今日进馆 -->
@ -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)
});
},

Loading…
Cancel
Save