Browse Source

pelf: 处理手机端计数器

wangcz 6 years ago
parent
commit
02222a8181
1 changed files with 3 additions and 0 deletions
  1. 3 0
      components/mobile/common/StatisticsMobile.vue

+ 3 - 0
components/mobile/common/StatisticsMobile.vue

@@ -50,6 +50,9 @@
       }
     },
     mounted () {
+      let yearDate = new Date().getFullYear()
+      this.nameRight[2] = (yearDate - 1) + '年交易'
+      this.nameRight[3] = yearDate + '年交易'
       this.$nextTick(() => {
         this.changeIntervalL(true)
         this.changeIntervalR(true)