From aa861e83f2a7a5f99ed30d448c129c2032b71af6 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 09 May 2023 09:39:58 +0800 Subject: [PATCH] 微信支付 --- src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html | 69 +++++++++++++++++++++++++++------- 1 files changed, 55 insertions(+), 14 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html b/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html index 021e001..920fa9a 100644 --- a/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html +++ b/src/main/resources/templates/febs/views/modules/mallMember/mallMemberList.html @@ -25,12 +25,14 @@ <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> @@ -89,6 +91,13 @@ <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> @@ -227,19 +236,43 @@ 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: '{{= parseInt(d.balance) }}'}, + {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) { @@ -287,7 +320,7 @@ } if (layEvent === 'resetPwd') { - febs.modal.confirm('重置登录密码', '是否重置选中账号登录密码?', function () { + febs.modal.confirm('重置登录密码', '是否重置选中账号登录密码为【a123456】?', function () { var ids = []; layui.each(checkData, function (key, item) { ids.push(item.id) @@ -297,7 +330,7 @@ } if (layEvent === 'resetPayPwd') { - febs.modal.confirm('重置交易密码', '是否重置选中账号交易密码?', function () { + febs.modal.confirm('重置交易密码', '是否重置选中账号交易密码为【123456】?', function () { var ids = []; layui.each(checkData, function (key, item) { ids.push(item.id) @@ -342,7 +375,7 @@ }); function systemPay(text, id, type) { - febs.modal.open('text', 'modules/mallMember/mallSystemPay/' + type +'/'+ id, { + febs.modal.open(text, 'modules/mallMember/mallSystemPay/' + type +'/'+ id, { btn: ['提交', '取消'], yes: function (index, layero) { $('#systemPay-update').find('#submit').trigger('click'); @@ -386,5 +419,13 @@ changeIdentityNo(1, data.value); } }) + + form.on('switch(switchPartner)', function (data) { + if (data.elem.checked) { + changeIdentityYes(3, data.value); + } else { + changeIdentityNo(3, data.value); + } + }) }) </script> \ No newline at end of file -- Gitblit v1.9.1