| | |
| | | }} |
| | | <span class="layui-badge febs-bg-{{status.color}}">{{ status.title }}</span> |
| | | </script> |
| | | <script type="text/html" id="switchChangeAble"> |
| | | {{# if(d.changeAble === 2) { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" checked lay-skin="switch" lay-filter="switchChangeAble"> |
| | | {{# } else { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" lay-skin="switch" lay-filter="switchChangeAble"> |
| | | {{# } }} |
| | | </script> |
| | | <script type="text/html" id="switchActiveStatus"> |
| | | {{# if(d.activeStatus === 1) { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" checked lay-skin="switch" lay-filter="switchActiveStatus"> |
| | |
| | | tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject}); |
| | | }); |
| | | |
| | | form.on('switch(switchChangeAble)', function (data) { |
| | | if (data.elem.checked) { |
| | | changeAbleYes(data.value); |
| | | } else { |
| | | changeAbleNo(data.value); |
| | | } |
| | | }) |
| | | function changeAbleYes(id) { |
| | | febs.get(ctx + 'member/changeAbleYes/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | function changeAbleNo(id) { |
| | | febs.get(ctx + 'member/changeAbleNo/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | |
| | | form.on('switch(switchActiveStatus)', function (data) { |
| | | if (data.elem.checked) { |
| | | insideWithYes(data.value); |
| | |
| | | totalRow: true ,// 开启合计行 |
| | | cols: [[ |
| | | {type: 'checkbox'}, |
| | | {field:'', title: '序号', width: 80, type:'numbers'}, |
| | | // {title: '代理级别', |
| | | // templet: function (d) { |
| | | // return '<span class="layui-btn layui-btn-normal layui-btn-xs">'+d.accountType+'</span>' |
| | | // },minWidth: 130,align:'center'}, |
| | | {field: 'address', title: '地址', minWidth: 400, totalRowText: '合计'}, |
| | | {field: 'chainType', title: '所属链', minWidth: 130}, |
| | | {field: 'refererId', title: '上级邀请码', minWidth: 100}, |
| | | {field: 'inviteId', title: '邀请码', minWidth: 100}, |
| | | {field: 'coinAmount', title: '余额', minWidth: 130}, |
| | | {field: 'scoreAmount', title: '赠送积分', minWidth: 130}, |
| | | {field: 'balance', title: '资产包', minWidth: 130}, |
| | | {field: 'withdrawAmount', title: '累计提现', minWidth: 130}, |
| | | {field: 'myTeamAchieve', title: '团队业绩', minWidth: 130}, |
| | | {field: 'myShareAchieve', title: '共享业绩', minWidth: 130}, |
| | | {field: 'activeStatus', title: '是否激活', templet:'#switchActiveStatus', minWidth: 120}, |
| | | {field: 'changeAble', title: '是否冻结', templet:'#switchChangeAble', minWidth: 120}, |
| | | {field: 'accountType', title: '会员级别', minWidth: 130}, |
| | | // {field: 'directProfit', title: '直推收益', minWidth: 100, totalRow: true}, |
| | | {field: 'inviteId', title: '邀请码', minWidth: 100}, |
| | | {field: 'refererId', title: '上级邀请码', minWidth: 100}, |
| | | {field: 'chainType', title: '所属链', minWidth: 130}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | {title: '操作', minWidth: 300 ,toolbar: '#mallmember-option',align:'left', fixed:'right'} |
| | | ]] |