| | |
| | | <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 class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain table-action" id="reset">
|
| | | <i class="layui-icon"></i>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </form>
|
| | | <table id=usersTable></table>
|
| | | </div>
|
| | | </div>
|
| | |
| | | </script>
|
| | | <!-- 表格操作栏 end -->
|
| | | <script data-th-inline="none" type="text/javascript">
|
| | | // 引入组件并初始化
|
| | | layui.use([ 'jquery', 'form', 'table', 'febs'], function () {
|
| | | var $ = layui.jquery,
|
| | | laydate = layui.laydate,
|
| | | febs = layui.febs,
|
| | | form = layui.form,
|
| | | table = layui.table,
|
| | | $view = $('#febs-user'),
|
| | | tableIns;
|
| | | // 引入组件并初始化
|
| | | layui.use(['jquery', 'laydate', 'form', 'table', 'febs'], function () {
|
| | | var $ = layui.jquery,
|
| | | laydate = layui.laydate,
|
| | | febs = layui.febs,
|
| | | form = layui.form,
|
| | | table = layui.table,
|
| | | $view = $('#febs-user'),
|
| | | $query = $view.find('#query'),
|
| | | $reset = $view.find('#reset'),
|
| | | $searchForm = $view.find('form'),
|
| | | sortObject = {field: 'createTime', type: null},
|
| | | tableIns;
|
| | | form.render();
|
| | | // 表格初始化
|
| | | initTable();
|
| | |
|
| | | form.render();
|
| | | // 表格初始化
|
| | | initTable();
|
| | |
|
| | | function initTable() {
|
| | |
|
| | | tableInss = febs.table.init({
|
| | | elem: $('#usersTable'),
|
| | | url: ctx + 'member/memberDataInfo',
|
| | | cols: [[
|
| | | {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'},
|
| | | ]]
|
| | | // 查询按钮
|
| | | $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() {
|
| | | tableInss = febs.table.init({
|
| | | elem: $('#usersTable'),
|
| | | url: ctx + 'member/memberDataInfo',
|
| | | cols: [[
|
| | | {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> |