| | |
| | | <select name="level"> |
| | | <option value="">请选择</option> |
| | | <option value="NORMAL">普通会员</option> |
| | | <option value="V1">V1</option> |
| | | <option value="V2">V2</option> |
| | | <option value="V3">V3</option> |
| | | <option value="V4">V4</option> |
| | | <option value="V5">V5</option> |
| | | <option value="V6">V6</option> |
| | | <option value="V1">个体户</option> |
| | | <option value="V2">经销商</option> |
| | | <option value="V3">区代理</option> |
| | | <option value="V4">市代理</option> |
| | | <option value="V5">省代理</option> |
| | | <option value="V6">运营中心</option> |
| | | <option value="FANS">粉丝</option> |
| | | <option value="V_DIRECTOR">董事</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" checked lay-skin="switch" lay-filter="switchDirector"> |
| | | {{# } else { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" lay-skin="switch" lay-filter="switchDirector"> |
| | | {{# } }} |
| | | </script> |
| | | <script type="text/html" id="switchPartner"> |
| | | {{# if(d.partner === 1) { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" checked lay-skin="switch" lay-filter="switchPartner"> |
| | | {{# } else { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" lay-skin="switch" lay-filter="switchPartner"> |
| | | {{# } }} |
| | | </script> |
| | | <style> |
| | |
| | | {field: 'name', title: '名称', minWidth: 100,align:'left'}, |
| | | {field: 'inviteId', title: '邀请码', minWidth: 100,align:'left'}, |
| | | {field: 'balance', title: '余额', minWidth: 100,align:'left',totalRow: '{{= parseInt(d.balance) }}'}, |
| | | {field: 'score', title: '积分', minWidth: 100,align:'left',totalRow: '{{= parseInt(d.score) }}'}, |
| | | {field: 'score', title: 'H金劵', minWidth: 100,align:'left',totalRow: '{{= parseInt(d.score) }}'}, |
| | | // {field: 'prizeScore', title: '竞猜积分', minWidth: 100,align:'left'}, |
| | | // {field: 'commission', title: '佣金', minWidth: 100,align:'left'}, |
| | | {field: 'referrerName', title: '推荐人', minWidth: 100,align:'left'}, |
| | | {field: 'levelName', title: '会员类型', minWidth: 100,align:'left'}, |
| | | {field: 'level', title: '会员类型', |
| | | templet: function (d) { |
| | | if (d.level === 'V1') { |
| | | return '<span">个体户</span>' |
| | | } else if (d.level === 'V2') { |
| | | return '<span">经销商</span>' |
| | | } else if (d.level === 'V3') { |
| | | return '<span">区代理</span>' |
| | | } else if (d.level === 'V4') { |
| | | return '<span">市代理</span>' |
| | | } else if (d.level === 'V5') { |
| | | return '<span">省代理</span>' |
| | | } else if (d.level === 'V6') { |
| | | return '<span">运营中心</span>' |
| | | } else if (d.level === 'NORMAL') { |
| | | return '<span">普通会员</span>' |
| | | } else if (d.level === 'V_DIRECTOR') { |
| | | return '<span">董事</span>' |
| | | } else if (d.level === 'FANS') { |
| | | return '<span">粉丝</span>' |
| | | }else{ |
| | | return '' |
| | | } |
| | | }, minWidth: 100,align:'center'}, |
| | | // {field: 'storeMaster', title: '店长', templet:'#switchStoreMaster', minWidth: 100}, |
| | | // {field: 'director', title: '总监', templet:'#switchDirector', minWidth: 100}, |
| | | {field: 'partner', title: '合伙人', templet:'#switchPartner', minWidth: 100}, |
| | | {field: 'accountType', title: '账号类型', |
| | | templet: function (d) { |
| | | if (d.accountType === 2) { |
| | |
| | | changeIdentityNo(1, data.value); |
| | | } |
| | | }) |
| | | |
| | | form.on('switch(switchPartner)', function (data) { |
| | | if (data.elem.checked) { |
| | | changeIdentityYes(3, data.value); |
| | | } else { |
| | | changeIdentityNo(3, data.value); |
| | | } |
| | | }) |
| | | }) |
| | | </script> |