Commit 41f3747f13f6b04d2c5449e9e3217693277240f8
1 parent
6584fce2
金额 分处理成元
Showing
3 changed files
with
7 additions
and
6 deletions
src/components/chinaMap/index.vue
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | <table class="parkTotalTb"> |
| 14 | 14 | <tr> |
| 15 | 15 | <td><div class="memberTotalImg"></div></td> |
| 16 | - <td><div class="infoBox"><div><countTo :startVal='memberParams.startVal' :endVal='getParkingTotal' :duration='animationTime'></countTo></div><div>会员总数</div></div> </td> | |
| 16 | + <td><div class="infoBox"><div><countTo :startVal='memberParams.startVal' :endVal='getParkingTotal' :duration='animationTime'></countTo></div><div>用户总数</div></div> </td> | |
| 17 | 17 | </tr> |
| 18 | 18 | </table> |
| 19 | 19 | </div> | ... | ... |
src/components/incomeOverview/index.vue
| ... | ... | @@ -43,10 +43,11 @@ |
| 43 | 43 | }).then((response)=>{ |
| 44 | 44 | let data = response.data.data |
| 45 | 45 | this.incomeTotal = data.totalPay |
| 46 | - this.incomeTotal = common.formatNumToStr(this.incomeTotal) | |
| 47 | - this.barChartOption.barColor[0].value = data.aliPay | |
| 48 | - this.barChartOption.barColor[1].value = data.wxPay | |
| 49 | - this.barChartOption.barColor[2].value = data.otherPay | |
| 46 | + //this.incomeTotal = common.formatNumToStr(this.incomeTotal) | |
| 47 | + this.incomeTotal = common.formatNumToStr(Math.round(this.incomeTotal)/100) | |
| 48 | + this.barChartOption.barColor[0].value = Math.round(data.aliPay/100) | |
| 49 | + this.barChartOption.barColor[1].value = Math.round(data.wxPay/100) | |
| 50 | + this.barChartOption.barColor[2].value = Math.round(data.otherPay/100) | |
| 50 | 51 | let barChartOption = this.barChartOption |
| 51 | 52 | this.barChart=this.createBar(barChartOption); |
| 52 | 53 | window.addEventListener('resize', function() { | ... | ... |
src/components/memberNum/index.vue