Commit e20a4a98 authored by wxk's avatar wxk

账户设置页

parent d0c365e5
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-col :span="21"> <el-col :span="21">
<el-select v-model="bankId" placeholder="请选择"> <el-select v-model="bankId" placeholder="请选择">
<el-option <el-option
@change = 'changeBank' @change = 'init'
v-for="item in robotBankList" v-for="item in robotBankList"
:key="item.account" :key="item.account"
:value="item.account"> :value="item.account">
...@@ -295,12 +295,9 @@ ...@@ -295,12 +295,9 @@
this.coinList = [...new Set(this.coinList)]; this.coinList = [...new Set(this.coinList)];
}) })
}, },
/*更换银行账户*/
changeBank(val) {
this.getWalletInfo(val);
},
/*查询操作记录*/ /*查询操作记录*/
getRecords(page) { getRecords(page) {
this.transactionLoading = true;
let recordParams = { let recordParams = {
account: this.bankId, account: this.bankId,
page: page || '1', page: page || '1',
...@@ -311,9 +308,18 @@ ...@@ -311,9 +308,18 @@
} }
axios.post(ApiConfig.Records,recordParams).then( res => { axios.post(ApiConfig.Records,recordParams).then( res => {
// console.log(res.data.data) // console.log(res.data.data)
this.transactionLoading = false;
this.recordsList = res.data.data.list; this.recordsList = res.data.data.list;
this.recordsCount = res.data.data.count; this.recordsCount = res.data.data.count;
this.recordsCountList = res.data.data.total; this.recordsCountList = res.data.data.total;
}).catch(error => {
this.transactionLoading = false;
this.$notify({
title: '错误',
message: "服务器崩溃啦,请稍后再试",
type: 'error',
duration:'2000',
});
}) })
}, },
//点击充币 //点击充币
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment