From 3156be749dfc93764850b27f7cc2b4514a3ae4d0 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 30 Oct 2023 16:36:54 +0800 Subject: [PATCH] 用户收益列表 --- src/main/resources/templates/febs/views/modules/chat/userPerkList.html | 86 +++++++++++++++++++++--------------------- 1 files changed, 43 insertions(+), 43 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/chat/userPerkList.html b/src/main/resources/templates/febs/views/modules/chat/userPerkList.html index 26add41..28e916d 100644 --- a/src/main/resources/templates/febs/views/modules/chat/userPerkList.html +++ b/src/main/resources/templates/febs/views/modules/chat/userPerkList.html @@ -3,7 +3,7 @@ <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"> + <form class="layui-form layui-table-form" lay-filter="user-perk-table-form"> <div class="layui-row"> <div class="layui-col-md10"> <div class="layui-form-item"> @@ -47,7 +47,7 @@ </div> </div> </form> - <table lay-filter="userChatTable" lay-data="{id: 'userChatTable'}"></table> + <table lay-filter="userPerkTable" lay-data="{id: 'userPerkTable'}"></table> </div> </div> </div> @@ -135,13 +135,13 @@ function initTable() { tableIns = febs.table.init({ elem: $view.find('table'), - id: 'userChatTable', + id: 'userPerkTable', url: ctx + 'admin/chat/getUserPerkList', - toolbar:"#toolbar", - defaultToolbar:[], + // toolbar:"#toolbar", + // defaultToolbar:[], totalRow: true ,// 开启合计行 cols: [[ - {type: 'checkbox'}, + // {type: 'checkbox'}, {field: 'userId', title: '标识', minWidth: 40,align:'center'}, {field: 'phone', title: '电话号码', minWidth: 120,align:'center', totalRowText: '合计:'}, {field: 'inviteId', title: '邀请码', minWidth: 100,align:'center',}, @@ -160,43 +160,43 @@ }); } - table.on('toolbar(userChatTable)', function(obj){ - var data = obj.data, - layEvent = obj.event; - - // if (layEvent === 'registerMember') { - // febs.get(ctx + 'admin/chat/registerMember/', null, function () { - // febs.alert.success('操作成功'); - // $query.click(); - // }); - // } - - if (layEvent === 'registerMember') { - var checkData = table.checkStatus('userChatTable').data; - if (checkData.length <= 0) { - febs.alert.warn('请选择需要的用户'); - return; - } - if (checkData.length > 1) { - febs.alert.warn('请选择一个用户'); - return; - } - registerMember("添加会员", checkData[0].inviteId, 1); - } - - if (layEvent === 'balance') { - var checkData = table.checkStatus('userChatTable').data; - if (checkData.length <= 0) { - febs.alert.warn('请选择需要的用户'); - return; - } - if (checkData.length > 1) { - febs.alert.warn('请选择一个用户'); - return; - } - systemPay("修改余额", checkData[0].userId, 1); - } - }); + // table.on('toolbar(userPerkTable)', function(obj){ + // var data = obj.data, + // layEvent = obj.event; + // + // // if (layEvent === 'registerMember') { + // // febs.get(ctx + 'admin/chat/registerMember/', null, function () { + // // febs.alert.success('操作成功'); + // // $query.click(); + // // }); + // // } + // + // if (layEvent === 'registerMember') { + // var checkData = table.checkStatus('userPerkTable').data; + // if (checkData.length <= 0) { + // febs.alert.warn('请选择需要的用户'); + // return; + // } + // if (checkData.length > 1) { + // febs.alert.warn('请选择一个用户'); + // return; + // } + // registerMember("添加会员", checkData[0].inviteId, 1); + // } + // + // if (layEvent === 'balance') { + // var checkData = table.checkStatus('userPerkTable').data; + // if (checkData.length <= 0) { + // febs.alert.warn('请选择需要的用户'); + // return; + // } + // if (checkData.length > 1) { + // febs.alert.warn('请选择一个用户'); + // return; + // } + // systemPay("修改余额", checkData[0].userId, 1); + // } + // }); function registerMember(text, inviteId, type) { febs.modal.open(text, 'modules/chat/mallRegisterMember/'+ inviteId, { -- Gitblit v1.9.1