Browse Source

app询价条数返回false问题

huangb 7 years ago
parent
commit
7c4b94bc36
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/mobile/common/StatisticsMobile.vue

+ 1 - 1
components/mobile/common/StatisticsMobile.vue

@@ -140,7 +140,7 @@
         return num || 0
       },
       formatDouble (num) {
-        if (num === '' || !num) return false
+        if (num === '' || !num) return 0
         if (num.toString().indexOf('E') !== -1) {
           let arr = num.toString().split('E')
           num = arr[0] * Math.pow(10, arr[1])