| | |
| | | <div class="layui-col-md10"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label layui-form-label-sm">用户名</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="address" autocomplete="off" placeholder="输入地址或邀请码" class="layui-input"> |
| | | <input type="text" name="username" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <option value="7">流水佣金</option> |
| | | <option value="8">盈利分成</option> |
| | | <option value="9">系统</option> |
| | | <option value="10">充值</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="changeAble">--> |
| | | <!-- <option value=""></option>--> |
| | | <!-- <option value="2">否</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="withdrawAble">--> |
| | | <!-- <option value=""></option>--> |
| | | <!-- <option value="2">否</option>--> |
| | | <!-- <option value="1">是</option>--> |
| | | <!-- </select>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area"> |
| | |
| | | table.on('tool(moneyChangeTable)', function (obj) { |
| | | var data = obj.data, |
| | | layEvent = obj.event; |
| | | |
| | | if (layEvent === 'amountFlow') { |
| | | febs.modal.open( '资金流水详情', 'onHookView/amountFlow/' + data.orderId, { |
| | | maxmin: true, |
| | | }); |
| | | } |
| | | |
| | | if (layEvent === 'amountFlowBack') { |
| | | febs.modal.confirm('回退', '是否回退当前资金流水?', function () { |
| | | amountFlowBack(data.id); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | function amountFlowBack(id) { |
| | | febs.get(ctx + 'member/amountFlowBack/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | |
| | | table.on('sort(moneyChangeTable)', function (obj) { |
| | | sortObject = obj; |
| | |
| | | elem: $view.find('table'), |
| | | id: 'moneyChangeTable', |
| | | url: ctx + 'flow/accountMoneyChangeFlow', |
| | | totalRow: true, |
| | | cols: [[ |
| | | // {field: 'address', title: '地址', minWidth: 150}, |
| | | {field: 'username', title: '用户名', minWidth: 150}, |
| | | {field: 'username', title: '用户名', minWidth: 150, totalRowText: '合计'}, |
| | | {field: 'preAmount', title: '变化前金额', minWidth: 100}, |
| | | {field: 'amount', title: '变化金额', minWidth: 100}, |
| | | {field: 'amount', title: '变化金额', minWidth: 100, totalRow: true}, |
| | | {field: 'afterAmount', title: '变化后金额', minWidth: 100}, |
| | | {field: 'content', title: '描述', minWidth: 130}, |
| | | {title: '类型', templet: '#type-format'}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180} |
| | | // {title: '类型', templet: '#type-format'}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | {title: '流水记录', |
| | | templet: function (d) { |
| | | if(d.orderId > 0){ |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="amountFlow" shiro:hasPermission="user:update">流水记录</button>' |
| | | }else{ |
| | | return '' |
| | | } |
| | | },minWidth: 120,align:'center'}, |
| | | {title: '流水回退', |
| | | templet: function (d) { |
| | | if(d.type == 7 || d.type == 8){ |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="amountFlowBack" shiro:hasPermission="user:update">流水回退</button>' |
| | | }else{ |
| | | return '' |
| | | } |
| | | },minWidth: 120,align:'center'} |
| | | ]] |
| | | }); |
| | | } |
| | | |
| | | function getQueryParams() { |
| | | // return { |
| | | // inviteId: $searchForm.find('input[name="inviteId"]').val().trim(), |
| | | // changeAble: $searchForm.find("select[name='changeAble']").val(), |
| | | // accountStatus: $searchForm.find("select[name='accountStatus']").val(), |
| | | // withdrawAble: $searchForm.find("input[name='withdrawAble']").val(), |
| | | // invalidate_ie_cache: new Date() |
| | | // }; |
| | | return { |
| | | type: $searchForm.find("select[name='type']").val(), |
| | | username: $searchForm.find('input[name="username"]').val().trim() |
| | | }; |
| | | } |
| | | |
| | | function changeStatus(url) { |