| | |
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-member-list" lay-title="会员列表"> |
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-member-list" lay-title="用户列表"> |
| | | <div class="layui-row febs-container"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card"> |
| | |
| | | {{# } }} |
| | | </script> |
| | | |
| | | <script type="text/html" id="checkLeaderSwitch"> |
| | | {{# if(d.checkLeader === 1) { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" checked lay-skin="switch" lay-filter="checkLeaderSwitch"> |
| | | {{# } else { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" lay-skin="switch" lay-filter="checkLeaderSwitch"> |
| | | {{# } }} |
| | | </script> |
| | | |
| | | <script type="text/html" id="isDoctorSwitch"> |
| | | {{# if(d.doctorState === 1) { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" checked lay-skin="switch" lay-filter="isDoctorSwitch"> |
| | |
| | | <!-- <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" lay-event="updateReferer">修改推荐人</button>--> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="updateMemberLevel:update" lay-event="updateMemberLevel">修改会员等级</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="updateSaleLevel:update" lay-event="updateSaleLevel">修改分销等级</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="wallet:update" lay-event="balance">余额修改</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="wallet:update" lay-event="prizeScore">积分修改</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="wallet:update" lay-event="commission">佣金修改</button> |
| | | <!-- <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" lay-event="addCoupon">优惠券派送</button>--> |
| | | </div> |
| | | </script> |
| | |
| | | } |
| | | }) |
| | | |
| | | form.on('switch(checkLeaderSwitch)', function (data) { |
| | | if (data.elem.checked) { |
| | | checkLeader(data.value); |
| | | } else { |
| | | checkLeader(data.value); |
| | | } |
| | | }) |
| | | |
| | | form.on('switch(isSalesmanSwitch)', function (data) { |
| | | if (data.elem.checked) { |
| | | upSale(data.value); |
| | |
| | | |
| | | function checkOrder(id) { |
| | | febs.get(ctx + 'admin/mallMember/checkOrder/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | |
| | | function checkLeader(id) { |
| | | febs.get(ctx + 'admin/mallMember/checkLeader/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | |
| | | {type: 'checkbox'}, |
| | | {type: 'numbers', title: '', width: 80}, |
| | | {field: 'checkOrder', title: '状态', templet: '#accountStatusSwitch', minWidth: 100,align:'center'}, |
| | | {field: 'checkOrder', title: '核销员', templet: '#checkOrderSwitch', minWidth: 100,align:'center'}, |
| | | {field: 'checkOrder', title: '活动核销', templet: '#checkOrderSwitch', minWidth: 100,align:'center'}, |
| | | {field: 'checkLeader', title: '自提核销', templet: '#checkLeaderSwitch', minWidth: 100,align:'center'}, |
| | | {field: 'isSalesman', title: '推销员设置', templet: '#isSalesmanSwitch', minWidth: 100,align:'center'}, |
| | | // {title: '操作', toolbar: '#memberOption', minWidth: 200, align: 'center'}, |
| | | {field: 'name', title: '用户名', minWidth: 100,align:'center'}, |
| | | {field: 'realName', title: '真实姓名', minWidth: 100,align:'center'}, |
| | |
| | | if (checkData.length > 1) { |
| | | febs.alert.warn('请选择一个用户'); |
| | | } |
| | | systemPay("修改余额", checkData[0].id, 1); |
| | | } |
| | | |
| | | if (layEvent === 'score') { |
| | | if (checkData.length > 1) { |
| | | febs.alert.warn('请选择一个用户'); |
| | | } |
| | | systemPay("修改赠送积分", checkData[0].id, 2); |
| | | systemPay("余额", checkData[0].id, 1); |
| | | } |
| | | |
| | | if (layEvent === 'prizeScore') { |
| | | if (checkData.length > 1) { |
| | | febs.alert.warn('请选择一个用户'); |
| | | } |
| | | systemPay("修改竞猜积分", checkData[0].id, 3); |
| | | systemPay("积分", checkData[0].id, 2); |
| | | } |
| | | |
| | | if (layEvent === 'commission') { |
| | | if (checkData.length > 1) { |
| | | febs.alert.warn('请选择一个用户'); |
| | | } |
| | | systemPay("佣金", checkData[0].id, 3); |
| | | } |
| | | |
| | | if (layEvent === 'agentLevel') { |