|
|
<template>
|
|
|
<div>
|
|
|
<layout-body>
|
|
|
<p slot="title">资金总览</p>
|
|
|
<div class="ivu-row">
|
|
|
<div class="ivu-card">
|
|
|
<div class="ivu-card-head">
|
|
|
<p slot="title" style="height: 30px; line-height: 30px; font-size: 20px;">资金总览</p>
|
|
|
</div>
|
|
|
<div class="ivu-card-body">
|
|
|
<div class="ivu-row">
|
|
|
<div class="ivu-flot-left">
|
|
|
<div class="ivu-row">
|
|
|
<div class="ivu-col ivu-font-b-16">我的余额</div>
|
|
|
</div>
|
|
|
<br />
|
|
|
<div class="ivu-row">
|
|
|
<div class="ivu-col ivu-col-span-12">可提现金额(元)</div>
|
|
|
<div class="ivu-col ivu-col-span-12 ivu-font-b-16">{{ accountData.availableAmount }}</div>
|
|
|
</div>
|
|
|
<br />
|
|
|
<div class="ivu-row">
|
|
|
<div class="ivu-col ivu-col-span-12">不可提现金额(元)</div>
|
|
|
<div class="ivu-col ivu-col-span-12 ivu-font-b-16">{{ accountData.unavailableAmount }}</div>
|
|
|
</div>
|
|
|
<br />
|
|
|
<div class="ivu-row">
|
|
|
<i-button type="primary" @click="goWithdrawApply">申请提现</i-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="ivu-flot-right">
|
|
|
<div class="ivu-row">
|
|
|
<div class="ivu-col ivu-font-b-16">账户信息</div>
|
|
|
</div>
|
|
|
<br />
|
|
|
<div class="ivu-row">
|
|
|
<div class="ivu-col">支付宝账号: {{ accountData.withdrawAccount }}</div>
|
|
|
</div>
|
|
|
<br />
|
|
|
<div class="ivu-row">
|
|
|
<div class="ivu-col">账号名称: {{ accountData.withdrawAccountName }}</div>
|
|
|
</div>
|
|
|
<br />
|
|
|
<div class="ivu-row">
|
|
|
<div class="ivu-col">联系方式: {{ accountData.customerTel }}</div>
|
|
|
</div>
|
|
|
<br />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="ivu-card">
|
|
|
<div class="ivu-card-head">
|
|
|
<p slot="title" style="height: 30px; line-height: 30px; font-size: 20px;">资金操作明细</p>
|
|
|
</div>
|
|
|
<div class="ivu-card-body">
|
|
|
<layout-filter ref="filter" :model="filters" class="box-filter" :inline="true" :col="1">
|
|
|
<filter-item label="起止时间">
|
|
|
<Date-picker
|
...
|
...
|
@@ -81,7 +130,8 @@ |
|
|
@on-change="pageChange"
|
|
|
></Page>
|
|
|
</layout-list>
|
|
|
</layout-body>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
...
|
...
|
@@ -98,6 +148,7 @@ export default { |
|
|
created() {
|
|
|
this.financeService = new FinanceService();
|
|
|
this.search();
|
|
|
this.initAccount();
|
|
|
},
|
|
|
methods: {
|
|
|
filterValues() {
|
...
|
...
|
@@ -179,6 +230,22 @@ export default { |
|
|
},
|
|
|
});
|
|
|
},
|
|
|
initAccount() {
|
|
|
const params = {
|
|
|
token: this.$user.token,
|
|
|
timestamps: Math.round(new Date().getTime() / 1000),
|
|
|
};
|
|
|
this.financeService.shopWithdrawApplyInit(params).then(result => {
|
|
|
if (result.code === 200) {
|
|
|
this.accountData = result.data;
|
|
|
this.data = result.data;
|
|
|
this.data.withdrawAmount = result.data.withdrawAmount ? result.data.withdrawAmount : 0;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
goWithdrawApply() {
|
|
|
this.$router.push({ name: 'finance.withdraw.withdrawapply' });
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
...
|
...
|
@@ -201,24 +268,6 @@ export default { |
|
|
margin-bottom: 10px;
|
|
|
}
|
|
|
|
|
|
.box-title {
|
|
|
font-weight: 700;
|
|
|
color: #495060;
|
|
|
font-size: 16px;
|
|
|
line-height: 22px;
|
|
|
margin: 5px;
|
|
|
|
|
|
&:before {
|
|
|
content: ' ';
|
|
|
display: inline-block;
|
|
|
width: 5px;
|
|
|
margin-right: 2px;
|
|
|
height: 22px;
|
|
|
vertical-align: top;
|
|
|
background-color: #999;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.box-item {
|
|
|
width: 90%;
|
|
|
height: 50px;
|
...
|
...
|
@@ -290,4 +339,25 @@ export default { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ivu-flot-left {
|
|
|
width: 360px;
|
|
|
height: 220px;
|
|
|
float: left;
|
|
|
border: 1px solid #cccccc;
|
|
|
padding: 12px;
|
|
|
}
|
|
|
.ivu-flot-right {
|
|
|
width: 360px;
|
|
|
height: 220px;
|
|
|
float: left;
|
|
|
border: 1px solid #cccccc;
|
|
|
padding: 12px;
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
|
|
|
.ivu-font-b-16 {
|
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
</style> |
...
|
...
|
|