Эх сурвалжийг харах

pelf: 处理手机端计数器

wangcz 6 жил өмнө
parent
commit
02222a8181

+ 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)