|  |  |  | 
|---|
|  |  |  | <div class="layui-inline"> | 
|---|
|  |  |  | <label class="layui-form-label layui-form-label-sm">会员类型</label> | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|
|  |  |  | <select name="level"> | 
|---|
|  |  |  | <select name="levelType" class="vip-level-set-level-member"> | 
|---|
|  |  |  | <option value="">请选择</option> | 
|---|
|  |  |  | <option value="ZERO_LEVEL">普通用户</option> | 
|---|
|  |  |  | <option value="FIRST_LEVEL">城市合伙人</option> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | </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> | 
|---|
|  |  |  | 
|---|
|  |  |  | laydate.render({ | 
|---|
|  |  |  | elem: '#febs-member-benefits-list-birthday-start', | 
|---|
|  |  |  | format:'MM-dd' | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //(下拉框) | 
|---|
|  |  |  | $.get(ctx + 'admin/runVip/allVipList', function (res) { | 
|---|
|  |  |  | var data = res.data; | 
|---|
|  |  |  | for (var k in data) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | $(".vip-level-set-level-member").append("<option value='" + data[k].vipCode + "'>" + data[k].vipName + "</option>"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | layui.use('form', function () { | 
|---|
|  |  |  | var form = layui.form; | 
|---|
|  |  |  | form.render(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 表格初始化 | 
|---|
|  |  |  | 
|---|
|  |  |  | 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: 'balance', title: '碳币', minWidth: 100,align:'left', totalRow:true}, | 
|---|
|  |  |  | {field: 'score', title: '碳积分', minWidth: 100,align:'left', totalRow:true}, | 
|---|
|  |  |  | {field: 'referrerName', title: '推荐人', minWidth: 100,align:'left'}, | 
|---|
|  |  |  | {field: 'levelName', title: '会员等级', minWidth: 100,align:'left'}, | 
|---|
|  |  |  | {field: 'accountStatus', title: '账号状态', templet: '#switchStatus', minWidth: 100,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: '操作', | 
|---|
|  |  |  | templet: function (d) { | 
|---|
|  |  |  | return  '' | 
|---|
|  |  |  | 
|---|
|  |  |  | // 获取查询参数 | 
|---|
|  |  |  | function getQueryParams() { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | name: $searchForm.find('input[name="name"]').val().trim(), | 
|---|
|  |  |  | account: $searchForm.find('input[name="account"]').val().trim(), | 
|---|
|  |  |  | level: $searchForm.find("select[name='level']").val(), | 
|---|
|  |  |  | birthdayQuery: $searchForm.find("input[name='birthday']").val(), | 
|---|
|  |  |  | // level: $searchForm.find("select[name='level']").val(), | 
|---|
|  |  |  | account: $searchForm.find('input[name="account"]').val(), | 
|---|
|  |  |  | level: $searchForm.find("select[name='levelType']").val(), | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|