From 9b51a95fa8bc9b3a86108c6900e17fc55f8db467 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 19 May 2025 17:02:07 +0800
Subject: [PATCH] refactor(vip): 优化积分和返佣计算逻辑

---
 src/main/resources/templates/febs/views/modules/levelView/levelList.html |   28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/levelView/levelList.html b/src/main/resources/templates/febs/views/modules/levelView/levelList.html
index f5c1f61..19505c1 100644
--- a/src/main/resources/templates/febs/views/modules/levelView/levelList.html
+++ b/src/main/resources/templates/febs/views/modules/levelView/levelList.html
@@ -1,4 +1,4 @@
-<div class="layui-fluid layui-anim febs-anim" id="febs-level" lay-title="会员级别列表">
+<div class="layui-fluid layui-anim febs-anim" id="febs-level" lay-title="会员体系管理">
     <div class="layui-row febs-container">
         <div class="layui-col-md12">
             <div class="layui-card">
@@ -114,6 +114,22 @@
                     content: '<div style="text-align:center"><img src="' + $(t).attr('src') + '" /></div>'
                 });
             }
+
+            if (layEvent === 'seeHeaderPng') {
+                var t = $view.find('#seeHeaderPng'+data.id+'');
+                //页面层
+                layer.open({
+                    type: 1,
+                    title: "会员中心",
+                    skin: 'layui-layer-rim', //加上边框
+                    area: ['100%', '100%'], //宽高
+                    shadeClose: true, //开启遮罩关闭
+                    end: function (index, layero) {
+                        return false;
+                    },
+                    content: '<div style="text-align:center"><img src="' + $(t).attr('src') + '" /></div>'
+                });
+            }
             if (layEvent === 'levelInfoEvent') {
                 febs.modal.open('编辑','modules/levelView/levelInfo/' + data.id, {
                     btn: ['提交', '取消'],
@@ -158,7 +174,7 @@
                     {type: 'numbers', title: '', width: 80},
                     {title: '操作', toolbar: '#memberLevelOption', minWidth: 200, align: 'center'},
                     {field: 'name', title: '名称', minWidth: 150,align:'center'},
-                    {field: 'indexImg',title: '会员图标',
+                    {field: 'iconPng',title: '会员图标',
                         templet: function (d) {
                             return '<a lay-event="seeIconPng">' +
                                 '<img id="seeIconPng' + d.id + '" src="' + d.iconPng +
@@ -166,6 +182,14 @@
                                 '</a>';
                         },
                     minWidth: 150,align: 'center'},
+                    {field: 'headerPng',title: '会员中心',
+                        templet: function (d) {
+                            return '<a lay-event="seeHeaderPng">' +
+                                '<img id="seeHeaderPng' + d.id + '" src="' + d.headerPng +
+                                '" alt="图片" style="width: 50px; height: 50px; object-fit: cover; border-radius: 5px; cursor: pointer;">' +
+                                '</a>';
+                        },
+                    minWidth: 150,align: 'center'},
                     {field: 'upgradeScore', title: '升级需要积分', minWidth: 150,align:'center'},
                     {field: 'minePercent', title: '自己返还比例', minWidth: 150,align:'center'},
                     {field: 'otherPercent', title: '好友返还比例', minWidth: 150,align:'center'},

--
Gitblit v1.9.1