|
|
@@ -15,10 +15,27 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="user-bottom">
|
|
|
- <div class="data-list" v-for="(item, index) in fundsData" :key="index">
|
|
|
- <div class="app-size-30 app-bold">{{ item.value }}</div>
|
|
|
- <div class="app-color-3">{{ item.name }}</div>
|
|
|
+
|
|
|
+ <div class="data-list">
|
|
|
+ <div class="app-size-30 app-bold">{{ balance }}</div>
|
|
|
+ <div class="app-color-3">余额</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="data-list">
|
|
|
+ <div class="app-size-30 app-bold">{{ buyAmount }}</div>
|
|
|
+ <div class="app-color-3">累计消费</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="data-list">
|
|
|
+ <div class="app-size-30 app-bold">{{ growth }}</div>
|
|
|
+ <div class="app-color-3">成长值</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="data-list">
|
|
|
+ <div class="app-size-30 app-bold">{{ debtAmount }}</div>
|
|
|
+ <div class="app-color-3">欠款</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -67,6 +84,12 @@
|
|
|
<tui-list-cell @click="pageTo({ url: '/admin/order/debtList?id='+data.id })" class="line-cell" :hover="false" :arrow="true" >
|
|
|
<view class="tui-title">赊账订单</view>
|
|
|
</tui-list-cell>
|
|
|
+ <tui-list-cell @click="pageTo({ url: '/admin/custom/rechargeChange?id='+data.id })" class="line-cell" :hover="false" :arrow="true" >
|
|
|
+ <view class="tui-title">充值记录</view>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell @click="pageTo({ url: '/admin/custom/balanceChange?id='+data.id })" class="line-cell" :hover="false" :arrow="true" >
|
|
|
+ <view class="tui-title">余额明细</view>
|
|
|
+ </tui-list-cell>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -254,6 +277,10 @@ export default {
|
|
|
props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
+ growth:0,
|
|
|
+ debtAmount:0,
|
|
|
+ buyAmount:0,
|
|
|
+ balance:0,
|
|
|
constant: this.$constant,
|
|
|
data: {},
|
|
|
rechargeModal: false,
|
|
|
@@ -261,20 +288,6 @@ export default {
|
|
|
passwordModal: false,
|
|
|
upgradeModal: false,
|
|
|
remarkModal: false,
|
|
|
- fundsData: [
|
|
|
- {
|
|
|
- name: "成长值",
|
|
|
- value: 0
|
|
|
- },
|
|
|
- {
|
|
|
- name: "欠款",
|
|
|
- value: 0
|
|
|
- },
|
|
|
- {
|
|
|
- name: "累计消费",
|
|
|
- value: 0
|
|
|
- }
|
|
|
- ],
|
|
|
tabsData: [
|
|
|
{
|
|
|
name: "优惠券",
|
|
|
@@ -351,7 +364,6 @@ export default {
|
|
|
this.rForm.rechargeAmount = amount
|
|
|
},
|
|
|
toRecharge(e){
|
|
|
- let that = this
|
|
|
if(e.index === 0){
|
|
|
this.rechargeModal = false
|
|
|
return false
|
|
|
@@ -364,6 +376,7 @@ export default {
|
|
|
this.$msg('充值金额要大于0')
|
|
|
return false
|
|
|
}
|
|
|
+ uni.showToast({mask:true})
|
|
|
toManRecharge({amount:this.rForm.rechargeAmount,remark:this.rForm.rechargeRemark,payWay:this.rForm.rechargePayWay,customId:this.option.id}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
this.rechargeModal = false
|
|
|
@@ -371,6 +384,7 @@ export default {
|
|
|
this.rForm.rechargeAmount = ''
|
|
|
this.rForm.rechargeRemark = ''
|
|
|
this.rForm.rechargePayWay = 0
|
|
|
+ this.init()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -416,8 +430,8 @@ export default {
|
|
|
this.userTagModal = true;
|
|
|
},
|
|
|
init() {
|
|
|
- this.getCustomInfo();
|
|
|
- getLevel();
|
|
|
+ this.getCustomInfo()
|
|
|
+ getLevel()
|
|
|
},
|
|
|
getCustomInfo() {
|
|
|
getUserDet({ userId: this.option.id }).then(res => {
|
|
|
@@ -425,10 +439,11 @@ export default {
|
|
|
return false;
|
|
|
}
|
|
|
this.data = res.data;
|
|
|
- this.fundsData[0].value = res.data.growth?parseFloat(res.data.growth):0;
|
|
|
- this.fundsData[1].value = res.data.debtAmount?parseFloat(res.data.debtAmount):0;
|
|
|
- this.fundsData[2].value = res.data.buyAmount?parseFloat(res.data.buyAmount):0;
|
|
|
- });
|
|
|
+ this.growth = res.data.growth?parseFloat(res.data.growth):0;
|
|
|
+ this.debtAmount = res.data.debtAmount?parseFloat(res.data.debtAmount):0;
|
|
|
+ this.buyAmount = res.data.buyAmount?parseFloat(res.data.buyAmount):0;
|
|
|
+ this.balance = res.data.balance?parseFloat(res.data.balance):0;
|
|
|
+ })
|
|
|
},
|
|
|
_upgrade() {
|
|
|
upgrade({
|