From 572acbb20d585de4ce8a48e4e6bf6179104a4958 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 25 Jul 2025 11:36:03 +0800
Subject: [PATCH] feat(socialCircle): 添加删除圈子背景图片功能

---
 src/main/resources/templates/febs/views/modules/socialCircle/groupAdd.html |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/socialCircle/groupAdd.html b/src/main/resources/templates/febs/views/modules/socialCircle/groupAdd.html
index d590bc5..d2d8641 100644
--- a/src/main/resources/templates/febs/views/modules/socialCircle/groupAdd.html
+++ b/src/main/resources/templates/febs/views/modules/socialCircle/groupAdd.html
@@ -100,11 +100,33 @@
             }
             ,done: function(res){
                 $("#backImage").val(res.data.src);
+                imgUnBind(".single-image");
+                imgSingleBind();
             }
         });
+
+
         form.render();
 
 
+        function imgUnBind(className) {
+            $(className).each(function() {
+                $(this).unbind('dblclick');
+            })
+        }
+        function imgSingleBind() {
+            $(".single-image").each(function(index, element) {
+                $(this).on("dblclick", function() {
+                    var imgThumb = $(".single-image")[index];
+                    $(imgThumb).remove();
+                    $("#backImage").val("");
+
+                    imgUnBind(".single-image");
+                    imgSingleBind();
+                });
+            })
+        }
+
         form.on('submit(groupSc-add-form-submit)', function (data) {
             $.ajax({
                 'url':ctx + 'admin/socialCircle/addGroup',

--
Gitblit v1.9.1