Commit 979efc91 authored by pengyunqian's avatar pengyunqian

feat:黑名单

parent bc9d0910
......@@ -92,6 +92,28 @@ exports.getRecordList = async ctx => {
}
ctx.body = await req(ctx, opts)
}
// 钱包账户黑名单
exports.getAccountBlackList = async ctx => {
const url = `${WITHDRAWAL_URI}/wallet/background/blacklist`;
const opts = {
url,
method: "POST",
json: true,
body: ctx.request.body
}
ctx.body = await req(ctx, opts)
}
// 钱包账户释放
exports.getReblackList = async ctx => {
const url = `${WITHDRAWAL_URI}/wallet/background/reblacklist`;
const opts = {
url,
method: "POST",
json: true,
body: ctx.request.body
}
ctx.body = await req(ctx, opts)
}
const getUserPermission = async (ctx) => {
const url = `${WITHDRAWAL_URI}/merchant/authority/get_role_list`;
......
......@@ -90,5 +90,7 @@ router.get(`${API_VERSION}/get_apply_detail`, withdrawal.getApplyDetail)
// 钱包账户
router.get(`${API_VERSION}/get_account_list`, withdrawal.getAccountList)
router.get(`${API_VERSION}/get_record_list`, withdrawal.getRecordList)
router.post(`${API_VERSION}/get_account_black_list`, withdrawal.getAccountBlackList)
router.post(`${API_VERSION}/get_reblack_list`, withdrawal.getReblackList)
module.exports = router;
......@@ -4,6 +4,11 @@
<!-- <el-card class="goods-h5"> -->
<div class="goods-h5">
<el-table :data="goodsList" border>
<el-table-column
label="登录地点"
prop="withdraw_address"
align="center"
></el-table-column>
<el-table-column
label="申请用户"
prop="user_id"
......
......@@ -195,6 +195,10 @@
>白名单</el-button
> -->
<ul class="listShow">
<li>
<span class="list-left">登录地点 :</span>
<span class="list-right">{{ dialogData.showData.withdraw_address }}</span>
</li>
<li>
<span class="list-left">提现金额 :</span>
<span class="list-right">{{ dialogData.showData.amount }}</span>
......
<template>
<div
class="manage-wrapper"
v-loading="tableLoading"
element-loading-text="拼命加载中"
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.6)"
>
<el-card class="role_management">
<!-- 检索区域 -->
<div class="creatRole">
......@@ -49,6 +56,11 @@
</template>
</el-table-column>
<el-table-column label="状态" width="200px" prop="status" align="center">
<template #default="scope">
<span :style="{ color: scope.row.status==='失败' ?'red':'black'}" >
{{scope.row.status}}
</span>
</template>
</el-table-column>
<el-table-column label="说明" align="center" prop="third_order_desc">
</el-table-column>
......@@ -56,11 +68,13 @@
<el-button type="primary" @click="handleBack" style="margin-top:50px;margin-left: 45%;">返回</el-button>
<page :totalNum="totalNum" @update="update" />
</el-card>
</div>
</template>
<script>
import page from "../../../components/Pagination";
import { getRecordList } from "@/service/Withdrawal/withdrawal";
import { ElMessage } from 'element-plus';
const tradeType = { 1: "充值", 2: "提现", 3: "转账" };
export default {
name: "flowRecord",
......@@ -70,7 +84,17 @@ export default {
user_id: "",
wallet_id: "",
type: "",
recordList: [],
recordList: [
{wallet_record_id:'243435676',
create_time:"2021-3-3",
amount:4,
balance:555,
trade_type:"提现",
status:"失败"
}
],
tableLoading: false,
params: {
page: 1,
page_size: 20,
......@@ -81,6 +105,7 @@ export default {
created() {
this.user_id = this.$route.query.user_id;
this.wallet_id = this.$route.query.wallet_id;
this.tableLoading = true;
this.getRecordList();
},
......@@ -101,9 +126,14 @@ export default {
type,
};
getRecordList(params_list).then((res) => {
this.tableLoading = true;
this.recordList = res.result.list;
this.totalNum = res.result.count;
});
this.tableLoading = false;
}).catch (err=>{
this.tableLoading = false;
ElMessage.error("加载失败"+err)
});;
},
// 获取交易类型
getTradeType(code) {
......
......@@ -50,15 +50,21 @@ export async function getRolesForUser(user_email) {
// 迭代---钱包账户
// 获取账户列表
export async function getAccountList(params) {
const res = await axios.get("/api/v1/get_account_list", {
params: getParams(params)
});
const res = await axios.get("/api/v1/get_account_list", params);
return res;
}
// 获取账户流水列表
export async function getRecordList(params) {
const res = await axios.get("/api/v1/get_record_list", {
params: getParams(params)
});
const res = await axios.get("/api/v1/get_record_list", params);
return res;
}
// 钱包账户-黑名单
export async function getAccountBlackList(params) {
const res = await axios.post("/api/v1/get_account_black_list", params)
return res;
}
// 钱包账户-释放
export async function getReblackList(params) {
const res = await axios.post("/api/v1/get_reblack_list",params)
return res;
}
\ No newline at end of file
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