mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-04 18:10:10 +08:00
提现功能
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<div class="main-right">
|
||||
<p class="center">昨日日终余额(元)</p>
|
||||
<p class="center number">{{adapayMember.lastAvlBalance}}</p>
|
||||
<p class="center">注:
|
||||
<p class="center">注:
|
||||
<span class="text">一</span>
|
||||
</p>
|
||||
</div>
|
||||
@@ -129,7 +129,7 @@
|
||||
</p>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="dialogVisible = false">提交</el-button>
|
||||
<el-button type="primary" @click="submit">提交</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
@@ -137,7 +137,7 @@
|
||||
|
||||
<script>
|
||||
import {
|
||||
queryAdapayAccountBalance
|
||||
queryAdapayAccountBalance,withdraw
|
||||
} from "@/api/adapayMember/adapayMember";
|
||||
export default {
|
||||
props:['merchantId'],
|
||||
@@ -175,6 +175,20 @@ export default {
|
||||
this.buttonBoolean = !this.buttonBoolean;
|
||||
}
|
||||
},
|
||||
// 提现弹窗确定事件
|
||||
submit(){
|
||||
let params = {
|
||||
merchantId: this.merchantId,
|
||||
cashAmt:this.adapayMember.avlBalance
|
||||
}
|
||||
withdraw(params).then((response) =>{
|
||||
console.log('res 提现金额',response);
|
||||
if(response.code !== 200) return this.$modal.msgError(response.msg);
|
||||
this.$modal.msgSuccess("操作成功");
|
||||
this.getList()
|
||||
})
|
||||
this.dialogVisible = false
|
||||
},
|
||||
getList() {
|
||||
console.log("this.merchantId", this.merchantId);
|
||||
let param = {
|
||||
@@ -183,7 +197,6 @@ export default {
|
||||
queryAdapayAccountBalance(param).then((response) => {
|
||||
console.log("查询 queryAdapayAccountBalance", response);
|
||||
this.adapayMember = response.data;
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user