| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label layui-form-label-sm">节点</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="directorState"> |
| | | <option value="">请选择</option> |
| | | <option value="1">是</option> |
| | | <option value="0">否</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area"> |
| | |
| | | </style> |
| | | <script type="text/html" id="toolbar"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" lay-event="registMember">添加会员</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" lay-event="balance">碳币拨付</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" lay-event="score">碳积分拨付</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" lay-event="resetPwd">登录密码重置</button> |
| | |
| | | } |
| | | function closeAccount(id) { |
| | | febs.get(ctx + 'admin/mallMember/closeAccount/' + id, null, function () { |
| | | febs.alert.success('禁用成功'); |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | function openAccount(id) { |
| | | febs.get(ctx + 'admin/mallMember/openAccount/' + id, null, function () { |
| | | febs.alert.success('开启成功'); |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | |
| | | function changeIdentityYes(type, id) { |
| | | febs.get(ctx + 'admin/mallMember/changeIdentityYes/' + type + "/" + id, null, function () { |
| | | febs.alert.success('设置成功'); |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | function changeIdentityNo(type, id) { |
| | | febs.get(ctx + 'admin/mallMember/changeIdentityNo/' + type + "/" + id, null, function () { |
| | | febs.alert.success('设置成功'); |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | |
| | | function resetPwd(id, type) { |
| | | febs.post(ctx + 'admin/mallMember/resetPwdNew/' + type + "/"+ id, null, function () { |
| | | febs.alert.success('重置成功'); |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | |
| | | url: ctx + 'admin/mallMember/getMallMemberList', |
| | | toolbar:"#toolbar", |
| | | defaultToolbar:[], |
| | | totalRow : true, |
| | | cols: [[ |
| | | {type: 'checkbox'}, |
| | | {field: 'phone', title: '账号', minWidth: 150,align:'left'}, |
| | | {field: 'phone', title: '账号', minWidth: 150,align:'left',totalRowText:"合计"}, |
| | | {field: 'name', title: '昵称', minWidth: 100,align:'left'}, |
| | | {field: 'inviteId', title: '邀请码', minWidth: 100,align:'left'}, |
| | | {field: 'balance', title: '碳币', minWidth: 100,align:'left'}, |
| | | {field: 'score', title: '碳积分', minWidth: 100,align:'left'}, |
| | | {field: 'commission', title: 'USDT', minWidth: 100,align:'left', totalRow:true}, |
| | | {field: 'balance', title: '碳币', minWidth: 100,align:'left', totalRow:true}, |
| | | {field: 'score', title: '碳积分', minWidth: 100,align:'left', totalRow:true}, |
| | | {field: 'directCnt', title: '直推', minWidth: 100,align:'left', totalRow:true}, |
| | | {field: 'teamCnt', title: '团队', minWidth: 100,align:'left', totalRow:true}, |
| | | {field: 'achieveCnt', title: '业绩', minWidth: 100,align:'left', totalRow:true}, |
| | | {field: 'referrerName', title: '推荐人', minWidth: 100,align:'left'}, |
| | | {field: 'levelName', title: '会员等级', minWidth: 100,align:'left'}, |
| | | {field: 'vipLevelTime', title: '到期时间', minWidth: 180,align:'center'}, |
| | | {field: 'director', title: '节点', templet: '#switchDirector', minWidth: 100,align:'center'}, |
| | | {field: 'directorTime', title: '节点时间', minWidth: 180,align:'center'}, |
| | | // {field: 'vipLevelTime', title: '到期时间', minWidth: 180,align:'center'}, |
| | | {field: 'createdTime', title: '注册时间', minWidth: 180,align:'center'}, |
| | | {field: 'accountStatus', title: '账号状态', templet: '#switchStatus', minWidth: 100,align:'center'}, |
| | | {title: '操作', |
| | |
| | | return { |
| | | account: $searchForm.find('input[name="account"]').val(), |
| | | level: $searchForm.find("select[name='levelType']").val(), |
| | | director: $searchForm.find("select[name='directorState']").val(), |
| | | }; |
| | | } |
| | | |
| | |
| | | closeAccount(data.value); |
| | | } |
| | | }) |
| | | |
| | | form.on('switch(switchDirector)', function (data) { |
| | | if (data.elem.checked) { |
| | | changeIdentityYes(1,data.value); |
| | | } else { |
| | | changeIdentityNo(1,data.value); |
| | | } |
| | | }) |
| | | }) |
| | | </script> |