diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 850bd8a..fbda75e 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -22,7 +22,7 @@

交易记录

-

今日交易额: 0元

+

今日交易额: {{price01}}元

@@ -36,7 +36,7 @@

核销记录

-

今日核销额: 0元

+

今日核销额: {{price02}}元

@@ -50,7 +50,7 @@

收银记录

-

今日收银: 0元

+

今日收银: {{price03}}元

@@ -75,6 +75,9 @@ export default { }, data() { return { + price01: 0, + price02: 0, + price03: 0, showJiaoyi: true, showHexiao: true, showShouyin: true, @@ -175,6 +178,7 @@ export default { this.$http.getTabletListOrder({ method: 'get', }).then(res => { + this.price01 = res.data[res.data.length-1].amount let newArr = { xList: [], amountList: [] @@ -202,6 +206,7 @@ export default { this.$http.getTabletListVerify({ method: 'get', }).then(res => { + this.price02 = res.data[res.data.length-1].amount let newArr = { xList: [], amountList: [] @@ -229,6 +234,7 @@ export default { this.$http.getMicroPayAmountOnDate({ method: 'get', }).then(res => { + this.price03 = res.data[res.data.length-1].amount let newArr = { xList: [], amountList: [] diff --git a/src/views/home/recordDetail.vue b/src/views/home/recordDetail.vue index 2b7d07d..94556ca 100644 --- a/src/views/home/recordDetail.vue +++ b/src/views/home/recordDetail.vue @@ -212,8 +212,8 @@ export default { this.$http[arr[this.pageType]]({ method: 'get', params: { - data: '2020-10-22', - // data: this.currentDate, + // data: '2020-10-22', + data: this.currentDate, pageNum: this.pageNum, pageSize: 10, }