|
@@ -10,14 +10,14 @@
|
|
|
</view>
|
|
|
<view class="userData">
|
|
|
<view class="userData-num" @click="toBalance">
|
|
|
- <view class="userData-data">¥{{personAccount.availableAmount != null ? personAccount.availableAmount.toFixed(2) : '0.00'}}</view>
|
|
|
+ <view class="userData-data">¥{{personAccount.availableAmount != null ? personAccount.availableAmount.toFixed(2) : '0.00'}}元</view>
|
|
|
<view class="userData-foot">可用余额</view>
|
|
|
</view>
|
|
|
<view class="line">
|
|
|
|
|
|
</view>
|
|
|
<view class="userData-num" @click="toMyCoupon">
|
|
|
- <view class="userData-data">{{myCouponList.length}}</view>
|
|
|
+ <view class="userData-data">{{recordsTotal}}</view>
|
|
|
<view class="userData-foot">优惠券</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -121,6 +121,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ recordsTotal: 0,
|
|
|
myCouponList: [],
|
|
|
elderStatus: false,
|
|
|
personAccount: {},
|
|
@@ -175,6 +176,7 @@
|
|
|
uni.hideLoading();
|
|
|
|
|
|
this.myCouponList = res.data.data;
|
|
|
+ this.recordsTotal = res.data.recordsTotal;
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|
|
|
title: error,
|