Переглянути джерело

合伙人-个人中心累计收入

panyong 4 роки тому
батько
коміт
f620e6be95
1 змінених файлів з 7 додано та 5 видалено
  1. 7 5
      htmldev/loan/src/views/partner/mine/index.vue

+ 7 - 5
htmldev/loan/src/views/partner/mine/index.vue

@@ -22,8 +22,7 @@
         </a>
         <router-link class="border-bottom-1px" :to="{path: '/partner/wallet'}">
           <span class="label-wrap">
-            <!--todo 累计收入-->
-            <i class="label">累计收入(元):</i>
+            <i class="label">累计收入(元):{{ totalSumPrice | toThousands }}</i>
           </span>
           <span class="value-wrap">
             <i class="value">详情</i>
@@ -75,7 +74,8 @@ export default {
   name: 'mine',
   data () {
     return {
-      totalPrice: 0
+      totalPrice: 0,
+      totalSumPrice: 0
     }
   },
   async mounted () {
@@ -84,6 +84,7 @@ export default {
   activated () {
     if (!this.$route.meta.isUseCache) {
       this.totalPrice = 0
+      this.totalSumPrice = 0
       this.funFetch()
     }
     this.$nextTick(() => {
@@ -108,8 +109,9 @@ export default {
       const vm = this
       walletList().then(response => {
         if (response.status) {
-          const data = response.data
-          vm.totalPrice = data.totalPrice
+          const { totalPrice, totalSumPrice } = response.data
+          vm.totalPrice = totalPrice
+          vm.totalSumPrice = totalSumPrice
         } else {
           Toast(response.msg)
         }