|  |  |  | 
|---|
|  |  |  | 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"> | 
|---|
|  |  |  | <input type="text" name="createTime" id="user-createTime" | 
|---|
|  |  |  | 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="accountType"> | 
|---|
|  |  |  | <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="accountStatus"> | 
|---|
|  |  |  | <option value=""></option> | 
|---|
|  |  |  | <option value="0">禁用</option> | 
|---|
|  |  |  | <option value="1">正常</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="certifyStatus"> | 
|---|
|  |  |  | <option value=""></option> | 
|---|
|  |  |  | <option value="0">未通过</option> | 
|---|
|  |  |  | <option value="1">审核中</option> | 
|---|
|  |  |  | <option value="2">审核通过</option> | 
|---|
|  |  |  | <option value="2">未实名</option> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area"> | 
|---|
|  |  |  | 
|---|
|  |  |  | $reset = $view.find('#reset'), | 
|---|
|  |  |  | $searchForm = $view.find('form'), | 
|---|
|  |  |  | sortObject = {field: 'createTime', type: null}, | 
|---|
|  |  |  | tableIns, | 
|---|
|  |  |  | createTimeFrom, | 
|---|
|  |  |  | createTimeTo; | 
|---|
|  |  |  | tableIns; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | form.render(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 表格初始化 | 
|---|
|  |  |  | initTable(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 时间组件 | 
|---|
|  |  |  | laydate.render({ | 
|---|
|  |  |  | elem: '#user-createTime', | 
|---|
|  |  |  | range: true, | 
|---|
|  |  |  | trigger: 'click' | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 查询按钮 | 
|---|
|  |  |  | $query.on('click', function () { | 
|---|
|  |  |  | 
|---|
|  |  |  | $reset.on('click', function () { | 
|---|
|  |  |  | $searchForm[0].reset(); | 
|---|
|  |  |  | sortObject.type = 'null'; | 
|---|
|  |  |  | createTimeTo = null; | 
|---|
|  |  |  | createTimeFrom = null; | 
|---|
|  |  |  | tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject}); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | {field: 'symbol', title: '币种', minWidth: 100, align: 'center'}, | 
|---|
|  |  |  | {field: 'phone', title: '手机号', minWidth: 130, align: 'center'}, | 
|---|
|  |  |  | {field: 'email', title: '邮箱', minWidth: 100, align: 'center'}, | 
|---|
|  |  |  | {field: 'usdtAmount', title: '买入USDT', minWidth: 100, align: 'center'}, | 
|---|
|  |  |  | {field: 'coinAmount', title: '充币USDT', minWidth: 100, align: 'center'}, | 
|---|
|  |  |  | // {field: 'usdtAmount', title: '买入USDT', minWidth: 100, align: 'center'}, | 
|---|
|  |  |  | {field: 'coinAmount', title: '提现USDT', minWidth: 100, align: 'center'}, | 
|---|
|  |  |  | {field: 'orderNo', title: '订单编号', minWidth: 150, align: 'center'}, | 
|---|
|  |  |  | {field: 'createTime', title: '交易时间', minWidth: 160, align: 'center'}, | 
|---|
|  |  |  | ]] | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 获取查询参数 | 
|---|
|  |  |  | function getQueryParams() { | 
|---|
|  |  |  | var createTime = $searchForm.find('input[name="createTime"]').val(); | 
|---|
|  |  |  | if (createTime) { | 
|---|
|  |  |  | createTimeFrom = createTime.split(' - ')[0]; | 
|---|
|  |  |  | createTimeTo = createTime.split(' - ')[1]; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | startTime: createTimeFrom, | 
|---|
|  |  |  | endTime: createTimeTo, | 
|---|
|  |  |  | account: $searchForm.find('input[name="account"]').val().trim(), | 
|---|
|  |  |  | accountStatus: $searchForm.find("select[name='accountStatus']").val(), | 
|---|
|  |  |  | accountType: $searchForm.find("select[name='accountType']").val(), | 
|---|
|  |  |  | certifyStatus: $searchForm.find("select[name='certifyStatus']").val(), | 
|---|
|  |  |  | invalidate_ie_cache: new Date() | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | } | 
|---|