| | |
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-user" lay-title="用户详细信息">
|
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-user" lay-title="平台详细信息">
|
| | | <div class="layui-row febs-container">
|
| | | <div class="layui-col-md12">
|
| | | <div class="layui-card">
|
| | | <div class="layui-card-body febs-table-full">
|
| | | <form class="layui-form layui-table-form" lay-filter="user-table-form">
|
| | | <div class="layui-row">
|
| | | <div class="layui-col-md10">
|
| | | <div class="layui-form-item">
|
| | | <div class="layui-inline">
|
| | | <div class="layui-input-inline">
|
| | | <input type="text" placeholder="手机号/邮箱/邀请码" name="account" autocomplete="off" class="layui-input">
|
| | | </div>
|
| | | </div>
|
| | | <div class="layui-inline">
|
| | | <label class="layui-form-label layui-form-label-sm">状态</label>
|
| | | <div class="layui-input-inline">
|
| | | <select name="statusOption">
|
| | | <option value="0"></option>
|
| | | <option value="1">等待审核</option>
|
| | | <option value="2">同意</option>
|
| | | <option value="3">拒绝</option>
|
| | | </select>
|
| | | </div>
|
| | | </div>
|
| | | <div class="layui-inline">
|
| | | <label class="layui-form-label layui-form-label-sm">账号类型</label>
|
| | | <div class="layui-input-inline">
|
| | | <select name="isTest">
|
| | | <option value=""></option>
|
| | | <option value="1">正常账号</option>
|
| | | <option value="2">测试账号</option>
|
| | | </select>
|
| | | </div>
|
| | | </div>
|
| | | <div class="layui-inline">
|
| | | <label class="layui-form-label layui-form-label-sm">内部转账</label>
|
| | | <div class="layui-input-inline">
|
| | | <select name="isInsideOption">
|
| | | <option value=""></option>
|
| | | <option value="Y">是</option>
|
| | | <option value="N">否</option>
|
| | | </select>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | <div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area">
|
| | | <div class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain table-action" id="query">
|
| | | <i class="layui-icon"></i>
|
| | |
| | | </div>
|
| | | </div>
|
| | | </form>
|
| | | <table lay-filter="userTable" lay-data="{id: 'userTable'}"></table>
|
| | | <table id=usersTable></table>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | <!-- 表格字段状态格式化 start -->
|
| | | <script type="text/html" id="status">
|
| | | {{#
|
| | | var status = {
|
| | | 1: {title: '已到账' , color: 'green'},
|
| | | 0: {title: '已到账' },
|
| | | 2: {title: '已到账' },
|
| | | 3: {title: '已到账' },
|
| | | 4: {title: '已到账' }
|
| | | }[d.status];
|
| | | }}
|
| | | <span class="layui-badge febs-tag-{{status.color}}">{{ status.title }}</span>
|
| | | <!-- 表格操作栏 start -->
|
| | | <script type="text/html" id="user-option">
|
| | | <span shiro:lacksPermission="user:view,user:update,user:delete">
|
| | | <span class="layui-badge-dot febs-bg-orange"></span> 无权限
|
| | | </span>
|
| | | </script>
|
| | |
|
| | | <!-- 表格字段状态格式化 start -->
|
| | |
|
| | | <!-- 表格操作栏 end -->
|
| | | <script data-th-inline="none" type="text/javascript">
|
| | | // 引入组件并初始化
|
| | | layui.use(['jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect'], function () {
|
| | | layui.use(['jquery', 'laydate', 'form', 'table', 'febs'], function () {
|
| | | var $ = layui.jquery,
|
| | | laydate = layui.laydate,
|
| | | febs = layui.febs,
|
| | | form = layui.form,
|
| | | table = layui.table,
|
| | | treeSelect = layui.treeSelect,
|
| | | $view = $('#febs-user'),
|
| | | $query = $view.find('#query'),
|
| | | $reset = $view.find('#reset'),
|
| | | $searchForm = $view.find('form'),
|
| | | sortObject = {field: 'createTime', type: null},
|
| | | tableIns;
|
| | |
|
| | | form.render();
|
| | | // 表格初始化
|
| | | initTable();
|
| | | |
| | | // 初始化表格操作栏各个按钮功能
|
| | | table.on('tool(userTable)', function (obj) {
|
| | | var data = obj.data,
|
| | | layEvent = obj.event;
|
| | | |
| | | if (layEvent === 'see') {
|
| | | febs.modal.open('身份认证', 'modules/member/memberDetail/' + data.id, {
|
| | | });
|
| | | }
|
| | |
|
| | | // 查询按钮
|
| | | $query.on('click', function () {
|
| | | var params = $.extend(getQueryParams(), {field: sortObject.field, order: sortObject.type});
|
| | | tableIns.reload({where: params, page: {curr: 1}});
|
| | | });
|
| | |
|
| | | // 刷新按钮
|
| | | $reset.on('click', function () {
|
| | | $searchForm[0].reset();
|
| | | tableIns.reload({where: getQueryParams(), page: {curr: 1}});
|
| | | });
|
| | |
|
| | | // 获取查询参数
|
| | | function getQueryParams() {
|
| | | return {
|
| | | account: $searchForm.find('input[name="account"]').val().trim(),
|
| | | status: $searchForm.find("select[name='statusOption']").val(),
|
| | | isTest: $searchForm.find("select[name='isTest']").val(),
|
| | | isInside: $searchForm.find("select[name='isInsideOption']").val()
|
| | | };
|
| | | }
|
| | |
|
| | | function initTable() {
|
| | | tableIns = febs.table.init({
|
| | | elem: $view.find('table'),
|
| | | id: 'userTable',
|
| | | url: ctx + 'member/memberApplyCoin',
|
| | | totalRow: true,
|
| | | tableInss = febs.table.init({
|
| | | elem: $('#usersTable'),
|
| | | url: ctx + 'member/memberDataInfo',
|
| | | cols: [[
|
| | | {field: 'phone', title: '手机号码111111', minWidth: 120,align:'left',totalRowText: '合计'},
|
| | | {field: 'email', title: '邮箱', minWidth: 200,align:'left'},
|
| | | {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'},
|
| | | {field: 'symbol', title: '币种', minWidth: 60,align:'center'},
|
| | | {field: 'tag', title: 'USDT类型', minWidth: 60,align:'center'},
|
| | | {field: 'amount', title: '充币数量', minWidth: 100,align:'center',totalRow: true},
|
| | | {field: 'lastAmount', title: '本次余额', minWidth: 100,align:'center'},
|
| | | {field: 'address', title: '平台钱包地址', minWidth: 280,align:'center'},
|
| | | {field: 'createTime', title: '创建时间', minWidth: 200,align:'center'},
|
| | | {title: '状态', templet: '#status', minWidth: 100,align:'center'}
|
| | | {field: 'memberCount', title: '注册用户数', minWidth: 120,align:'center'},
|
| | | {field: 'notNullNumber', title: '持仓用户数', minWidth: 120,align:'center'},
|
| | | {field: 'walletNumber', title: '币币账户有余额个数', minWidth: 200,align:'center'},
|
| | | {field: 'walletNum', title: '币币账户余额', minWidth: 200,align:'center'},
|
| | | {field: 'walletCoinNumber', title: '合约账户有余额个数', minWidth: 200,align:'center'},
|
| | | {field: 'walletCoinNum', title: '合约账户余额', minWidth: 200,align:'center'},
|
| | | {field: 'agentNum', title: '代理账户余额', minWidth: 200,align:'center'},
|
| | | {field: 'allCoin', title: '平台总资产', minWidth: 200,align:'center'},
|
| | | {field: 'platformProfitAndLoss', title: '平台剩余USDT',
|
| | | templet: function (d) {
|
| | | if (d.platformProfitAndLoss > '0') {
|
| | | return '<span style="color:green;">'+d.platformProfitAndLoss+'</span>'
|
| | | } else {
|
| | | return '<span style="color:red;">'+d.platformProfitAndLoss+'</span>'
|
| | | }
|
| | | }, minWidth: 200,align:'center'},
|
| | | {field: 'chargeCoin', title: '充币', minWidth: 200,align:'center'},
|
| | | {field: 'appealCoin', title: '提币', minWidth: 200,align:'center'},
|
| | | {field: 'fee', title: '佣金', minWidth: 200,align:'center'},
|
| | | {field: 'closingPrice', title: '开仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'sellClosingPrice', title: '平仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'doingPrice', title: '持仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'yingkui', title: '订单盈亏',
|
| | | templet: function (d) {
|
| | | if (d.yingkui > '0') {
|
| | | return '<span style="color:green;">'+d.yingkui+'</span>'
|
| | | } else {
|
| | | return '<span style="color:red;">'+d.yingkui+'</span>'
|
| | | }
|
| | | }, minWidth: 200,align:'center'},
|
| | | {field: 'chargeUsdt', title: 'usdt充值', minWidth: 200,align:'center'},
|
| | | {field: 'appealUsdt', title: 'usdt提现', minWidth: 200,align:'center'},
|
| | | ]]
|
| | | });
|
| | | }
|
| | |
|
| | | })
|
| | | </script> |