main
lijingyu007 5 months ago
parent 5ecda871bc
commit d1770b7cf4
  1. 4
      .env.development
  2. 5
      .env.production
  3. 9
      src/api/pay/withdrawal.js
  4. 65
      src/views/pay/account/index.vue
  5. 2
      src/views/pay/withdrawal/index.vue

@ -4,8 +4,8 @@ ENV = 'development'
# KeySaas测试云平台/开发环境
VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-api'
VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-api'
# VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
# VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999'
# VUE_APP_BASE_TARGET = 'http://172.16.36.180:9999'

@ -6,6 +6,7 @@ VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_API = '/test-api'
# VUE_APP_BASE_TARGET = 'https://www.keyitest.cn/prod-api'
VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/prod-api'
# VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999'
# VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-api'
VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/prod-api'
# VUE_APP_BASE_TARGET = 'http://www.keyitest.cn/prod-api'

@ -45,4 +45,13 @@ export function getRechargeList(param) {
params: param,
})
}
// 账户信息
export function userAccount(param) {
return request({
url: '/mpay/account/list',
method: 'get',
params: param,
})
}

@ -0,0 +1,65 @@
<template>
<div class="withdrawal">
<!-- 表格 -->
<el-table v-loading="loading" :data="payList">
<el-table-column label="用户编号" align="center" prop="userId" />
<el-table-column label="姓名" align="center" prop="name" />
<el-table-column label="账户余额" align="center" prop="balance" />
<el-table-column label="可提现余额" align="center" prop="availableBalance" />
<el-table-column label="支付宝账户" align="center" prop="alipay" />
<el-table-column label="银行账户" align="center" prop="bankAccount" />
<el-table-column label="开户行" align="center" prop="bankDeposit" />
</el-table>
<!-- 分页符 -->
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParam.pageNum"
:limit.sync="queryParam.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
import { userAccount } from '@/api/pay/withdrawal'
export default {
name: 'withdrawal',
data() {
return {
loading: false, //loading
payList: [], //
total: 0,
queryParam: {
pageNum: 1,
pageSize: 10,
},
}
},
created() {
this.getList()
},
mounted() {},
methods: {
//
async getList() {
try {
this.loading = true
const res = await userAccount(this.queryParam)
this.total = res.total
this.payList = res.rows
this.loading = false
} catch (error) {
this.loading = false
}
},
},
}
</script>
<style scoped lang="scss">
.withdrawal {
padding: 20px;
box-sizing: border-box;
}
</style>

@ -102,8 +102,6 @@ export default {
async getList() {
this.loading = true
try {
const data = await getPayList()
console.log(data)
const res = await getPayRecordList(this.queryParam)
this.total = res.total
this.payList = res.rows

Loading…
Cancel
Save