Parcourir la source

feat: 正式时间

王家程 il y a 11 mois
Parent
commit
786edef4eb
1 fichiers modifiés avec 4 ajouts et 5 suppressions
  1. 4 5
      src/views/total-sum/index.vue

+ 4 - 5
src/views/total-sum/index.vue

@@ -2,7 +2,7 @@
  * @Author: wangjiacheng
  * @Date: 2021-10-14 11:57:19
  * @LastEditors: wjc
- * @LastEditTime: 2024-05-30 11:57:50
+ * @LastEditTime: 2024-05-30 14:41:41
  * @Description:
 -->
 <template>
@@ -49,12 +49,11 @@ export default {
   data () {
     return {
       targetMoney: 5e8,
-      moneny: 499116572.49,
+      moneny: 499219626.49,
       timer: null,
       showFire: false,
       isBillion: false,
-      // targetDate: '2024-05-31 17:10:00'
-      targetDate: '2024-05-30 11:55:00'
+      targetDate: '2024-05-31 17:10:00'
     }
   },
   computed: {
@@ -89,7 +88,7 @@ export default {
     getTotalSum () {
       this.timer = setInterval(() => {
         const date = dayjs()
-        const add = Math.floor(Math.random() * 3000)
+        const add = Math.floor(Math.random() * 2000)
         this.moneny = this.moneny + add
         if (date.isSameOrAfter(dayjs(this.targetDate)) && this.moneny <= this.targetMoney) {
           this.moneny = this.targetMoney + add