|
@@ -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)
|
|
|
}
|