From e05d47b1f461f6a37b8c8c68171ac1904d3bae9b Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 09 Dec 2021 15:07:24 +0800 Subject: [PATCH] fix --- src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html | 35 +++++++++++++++++++++++++++++++++-- 1 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html b/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html index 6f8ef47..038db6d 100644 --- a/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html +++ b/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html @@ -87,6 +87,13 @@ openAccount(data.id); }); } + + if (layEvent === 'reset') { + febs.modal.confirm('重置密码', '是否重置该账号密码?', function () { + resetPwd(data.id); + }); + } + if (layEvent === 'see') { febs.modal.open( '个人信息', 'modules/mallMember/detail/' + data.id, { maxmin: true, @@ -95,6 +102,17 @@ if (layEvent === 'moneyFlow') { febs.modal.open( '用户资金流水', 'modules/mallMember/moneyFlow/' + data.id, { maxmin: true, + }); + } + if (layEvent === 'systemPay') { + febs.modal.open('系统拨付', 'modules/mallMember/mallSystemPay/' + data.id, { + btn: ['提交', '取消'], + yes: function (index, layero) { + $('#systemPay-update').find('#submit').trigger('click'); + }, + btn2: function () { + layer.closeAll(); + } }); } }); @@ -107,6 +125,13 @@ function openAccount(id) { febs.get(ctx + 'admin/mallMember/openAccount/' + id, null, function () { febs.alert.success('开启成功'); + $query.click(); + }); + } + + function resetPwd(id) { + febs.post(ctx + 'admin/mallMember/resetPwd/' + id, null, function () { + febs.alert.success('重置成功'); $query.click(); }); } @@ -131,11 +156,14 @@ id: 'userTable', url: ctx + 'admin/mallMember/getMallMemberList', cols: [[ - {field: 'phone', title: '手机号', minWidth: 150,align:'left'}, + {field: 'phone', title: '账号', minWidth: 150,align:'left'}, + {field: 'bindPhone', title: '手机号', minWidth: 150,align:'left'}, // {field: 'email', title: '邮箱', minWidth: 150,align:'left'}, {field: 'name', title: '名称', minWidth: 100,align:'left'}, + {field: 'balance', title: '积分余额', minWidth: 100,align:'left'}, {field: 'inviteId', title: '邀请码', minWidth: 100,align:'left'}, - {field: 'referrerId', title: '推荐人邀请码', minWidth: 100,align:'left'}, + // {field: 'referrerId', title: '推荐人邀请码', minWidth: 100,align:'left'}, + {field: 'referrerName', title: '推荐人', minWidth: 100,align:'left'}, {field: 'accountType', title: '账号类型', templet: function (d) { if (d.accountType === 2) { @@ -162,11 +190,14 @@ if (d.accountStatus === 1) { return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="see" shiro:hasPermission="user:update">详情</button>' +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="close" shiro:hasPermission="user:update">禁用</button>' + +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="reset" shiro:hasPermission="user:update">重置密码</button>' + +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="systemPay" shiro:hasPermission="user:update">积分拨付</button>' +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="moneyFlow" shiro:hasPermission="user:update">资金流水</button>' }else{ return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="see" shiro:hasPermission="user:update">详情</button>' +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="open" shiro:hasPermission="user:update">启用</button>' + +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="reset" shiro:hasPermission="user:update">重置密码</button>' +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="moneyFlow" shiro:hasPermission="user:update">资金流水</button>' } -- Gitblit v1.9.1