|
@@ -2,7 +2,7 @@
|
|
* @Author: wangjiacheng
|
|
* @Author: wangjiacheng
|
|
* @Date: 2021-10-14 11:57:19
|
|
* @Date: 2021-10-14 11:57:19
|
|
* @LastEditors: wangjiacheng
|
|
* @LastEditors: wangjiacheng
|
|
- * @LastEditTime: 2021-10-15 16:15:46
|
|
|
|
|
|
+ * @LastEditTime: 2021-10-15 17:09:52
|
|
* @Description:
|
|
* @Description:
|
|
-->
|
|
-->
|
|
<template>
|
|
<template>
|
|
@@ -31,7 +31,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-// import { totalSum } from '@/api'
|
|
|
|
|
|
+import { totalSum } from '@/api'
|
|
import mixin from './mixin.js'
|
|
import mixin from './mixin.js'
|
|
import wcLogo from '@/assets/images/wc.png'
|
|
import wcLogo from '@/assets/images/wc.png'
|
|
import huiguanjiaLogo from '@/assets/images/huiguanjia.png'
|
|
import huiguanjiaLogo from '@/assets/images/huiguanjia.png'
|
|
@@ -43,8 +43,7 @@ export default {
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
- moneny: 99834580.96,
|
|
|
|
- monenyLength: 0,
|
|
|
|
|
|
+ moneny: 0,
|
|
timer: null,
|
|
timer: null,
|
|
showFire: false,
|
|
showFire: false,
|
|
isBillion: false
|
|
isBillion: false
|
|
@@ -63,30 +62,36 @@ export default {
|
|
if (nVal >= 1e8 && !this.showFire) {
|
|
if (nVal >= 1e8 && !this.showFire) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.showFire = true
|
|
this.showFire = true
|
|
- }, 1000)
|
|
|
|
|
|
+ }, 500)
|
|
}
|
|
}
|
|
if (nVal >= 1e8) {
|
|
if (nVal >= 1e8) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.isBillion = true
|
|
this.isBillion = true
|
|
- }, 1000)
|
|
|
|
|
|
+ }, 500)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getTotalSum () {
|
|
getTotalSum () {
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
- const n = this.moneny + Math.floor(Math.random() * 100000)
|
|
|
|
- this.moneny = n
|
|
|
|
- // totalSum.getTotalSum().then(res => {
|
|
|
|
- // if (res && res.data) {
|
|
|
|
- // const data = Number(res.data.data)
|
|
|
|
- // this.moneny = data
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- }, 3000)
|
|
|
|
|
|
+ // const n = this.moneny + Math.floor(Math.random() * 1000000)
|
|
|
|
+ // this.moneny = n
|
|
|
|
+ totalSum.getTotalSum().then(res => {
|
|
|
|
+ if (res && res.data) {
|
|
|
|
+ const data = Number(res.data.data)
|
|
|
|
+ this.moneny = data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }, 10000)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
|
|
+ totalSum.getTotalSum().then(res => {
|
|
|
|
+ if (res && res.data) {
|
|
|
|
+ const data = Number(res.data.data)
|
|
|
|
+ this.moneny = data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
this.getTotalSum()
|
|
this.getTotalSum()
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
@@ -136,7 +141,7 @@ export default {
|
|
.title {
|
|
.title {
|
|
font-size: 58px;
|
|
font-size: 58px;
|
|
color: rgb(255, 210, 132);
|
|
color: rgb(255, 210, 132);
|
|
- margin-bottom: 50px;
|
|
|
|
|
|
+ margin-bottom: 80px;
|
|
font-family: 'Source Han Sans CN';
|
|
font-family: 'Source Han Sans CN';
|
|
}
|
|
}
|
|
.sum {
|
|
.sum {
|
|
@@ -167,16 +172,19 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.sum-billion {
|
|
.sum-billion {
|
|
- animation: billion 2.2s;
|
|
|
|
|
|
+ animation: billion 4s;
|
|
}
|
|
}
|
|
@keyframes billion {
|
|
@keyframes billion {
|
|
0% {
|
|
0% {
|
|
transform: scale(1);
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
- 50% {
|
|
|
|
|
|
+ 30% {
|
|
|
|
+ transform: scale(1.23);
|
|
|
|
+ }
|
|
|
|
+ 60% {
|
|
transform: scale(1.23);
|
|
transform: scale(1.23);
|
|
}
|
|
}
|
|
- 95% {
|
|
|
|
|
|
+ 90% {
|
|
transform: scale(1);
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
}
|
|
}
|