From e689c750f4390575ff619c212573be2f12e64618 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 23 Jan 2025 11:33:11 +0800
Subject: [PATCH] refactor(mall): 重构小程序定时任务获取 access_token 方式 - 移除 XcxProperties 类的使用 - 使用 @Value 注解直接注入小程序 appid 和 secret - 优化代码结构,提高可读性和维护性
---
src/main/resources/templates/febs/views/modules/mallMember/agentList.html | 40 ++++++++++++++++++++++++++++++++--------
1 files changed, 32 insertions(+), 8 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/mallMember/agentList.html b/src/main/resources/templates/febs/views/modules/mallMember/agentList.html
index 02b7395..d91fb68 100644
--- a/src/main/resources/templates/febs/views/modules/mallMember/agentList.html
+++ b/src/main/resources/templates/febs/views/modules/mallMember/agentList.html
@@ -18,16 +18,15 @@
</div>
</div>
<div class="layui-inline">
- <label class="layui-form-label layui-form-label-sm">账户状态</label>
+ <label class="layui-form-label layui-form-label-sm">代理层级</label>
<div class="layui-input-inline">
<select name="level">
<option value="">请选择</option>
<option value="FIRST_LEVEL">普通会员</option>
- <option value="SECOND_LEVEL">业务经理</option>
- <option value="THIRD_LEVEL">区域代理</option>
- <option value="FOUR_LEVEL">代理</option>
- <option value="FIFTH_LEVEL">总代</option>
- <option value="SIX_LEVEL">董事</option>
+ <option value="SECOND_LEVEL">一星</option>
+ <option value="THIRD_LEVEL">二星</option>
+ <option value="FOUR_LEVEL">三星</option>
+ <option value="FIFTH_LEVEL">四星</option>
</select>
</div>
</div>
@@ -86,7 +85,30 @@
maxmin: true,
});
}
+ if (layEvent === 'activate') {
+ febs.modal.confirm('激活', '确认激活该账号?', function () {
+ activateAccount(data.id);
+ });
+ }
+ if (layEvent === 'agentLevelSet') {
+ febs.modal.open('设置代理级别', 'modules/mallMember/agentLevelSet/' + data.id, {
+ btn: ['确认', '取消'],
+ yes: function (index, layero) {
+ $('#agent-level-set').find('#submit').trigger('click');
+ },
+ btn2: function () {
+ layer.closeAll();
+ }
+ });
+ }
});
+
+ function activateAccount(id) {
+ febs.get(ctx + 'admin/mallMember/activateAccount/' + id, null, function () {
+ febs.alert.success('操作成功');
+ $query.click();
+ });
+ }
// 查询按钮
$query.on('click', function () {
@@ -107,15 +129,17 @@
id: 'userAgentTable',
url: ctx + 'admin/mallMember/getAgentList',
cols: [[
- {field: 'phone', title: '手机号', minWidth: 150,align:'left'},
+ {field: 'bindPhone', title: '手机号', minWidth: 150,align:'left'},
+ {field: 'phone', title: '账号', minWidth: 150,align:'left'},
{field: 'name', title: '名称', minWidth: 100,align:'left'},
{field: 'inviteId', title: '邀请码', minWidth: 100,align:'left'},
{field: 'levelName', title: '代理层级', minWidth: 100,align:'left'},
{field: 'memberNum', title: '下级', minWidth: 100,align:'left'},
{field: 'allMemberNum', title: '我的团队总数', minWidth: 100,align:'left'},
+ {field: 'amount', title: '团队业绩', minWidth: 100,align:'left'},
{title: '操作',
templet: function (d) {
- return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agentAllMember" shiro:hasPermission="user:update">全部成员</button>'
+ return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agentAllMember" shiro:hasPermission="user:update">全部成员</button>'
},minWidth: 300,align:'center'}
]]
});
--
Gitblit v1.9.1