From c3fb56bd3cc141875b3ff2a6b893e9cbca0d11a9 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Wed, 01 Nov 2023 17:15:38 +0800
Subject: [PATCH] 用户收益列表
---
src/main/resources/templates/febs/views/modules/chat/userPerkList.html | 108 +++++++++++++++++++++++++++---------------------------
1 files changed, 54 insertions(+), 54 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 eeac505..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">
@@ -25,16 +25,16 @@
<input type="text" placeholder="邀请码(获取团队下的所有成员)" name="inviteId" autocomplete="off" class="layui-input">
</div>
</div>
- <div class="layui-inline">
- <label class="layui-form-label">用户类型:</label>
- <div class="layui-input-inline">
- <select name="isRobot">
- <option value="">请选择</option>
- <option value="0">用户</option>
- <option value="1">机器人</option>
- </select>
- </div>
- </div>
+<!-- <div class="layui-inline">-->
+<!-- <label class="layui-form-label">用户类型:</label>-->
+<!-- <div class="layui-input-inline">-->
+<!-- <select name="isRobot">-->
+<!-- <option value="">请选择</option>-->
+<!-- <option value="0">用户</option>-->
+<!-- <option value="1">机器人</option>-->
+<!-- </select>-->
+<!-- </div>-->
+<!-- </div>-->
</div>
</div>
<div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area">
@@ -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>
@@ -128,20 +128,20 @@
phone: $searchForm.find('input[name="phone"]').val().trim(),
// nickName: $searchForm.find('input[name="nickName"]').val().trim(),
inviteId: $searchForm.find('input[name="inviteId"]').val().trim(),
- isRobot: $searchForm.find("select[name='isRobot']").val()
+ // isRobot: $searchForm.find("select[name='isRobot']").val()
};
}
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