Bladeren bron

portal首页主题设置

yanym 6 maanden geleden
bovenliggende
commit
e3ccff1e87

+ 10 - 6
suishenbang-wxportal/suishenbang-wxportal-manager/src/main/resources/templates/wxportal/magnet/themeAdd.html

@@ -151,8 +151,8 @@
 <th:block th:include="include :: cropbox-js"/>
 <script type="text/javascript">
     var prefix = ctx + "system/configuration"
-    // var prefixEdit = "http://localhost:10002/oneportal/wxportal/magnet"
-    var prefixEdit = "https://suishenbangtest.nipponpaint.com.cn/oneportal/wxportal/magnet";
+    var prefixEdit = "http://localhost:10002/oneportal/wxportal/magnet"
+    // var prefixEdit = "https://suishenbangtest.nipponpaint.com.cn/oneportal/wxportal/magnet";
 
     var bgImageUrl = '';
     var smallImageUrlArray = {};
@@ -231,8 +231,9 @@
                     } else if (imgType == 'activityImage'){
                         activityImageUrlArray.push(result.data.url);
                         console.log('activityImageUrlArray',activityImageUrlArray);
-                        $("#activityImageDiv").html("<img src='" + result.data.url + "' style='width;100%;height:100%;'>");
-                        document.getElementById("activityImageDiv").style.display = 'block';
+                        $(".activityIconBox").append("<img src='" + result.data.url + "' style='width:50px;height:50px;'>")
+                        // $("#activityImageDiv").html("<img src='" + result.data.url + "' style='width;100%;height:100%;'>");
+                        // document.getElementById("activityImageDiv").style.display = 'block';
                     } else {
                         smallImageUrlArray[imgType] = result.data.url;
                         $("#"+imgType).html("<img src='" + result.data.url + "' style='width;100%;height:100%;'>");
@@ -275,8 +276,11 @@
                 }
                 if (result.data.activityIconObject.length > 0){
                     activityImageUrlArray = result.data.activityIconObject;
-                    $("#activityImageDiv").html("<img src='" + result.data.activityIconObject[0] + "' style='width;100%;height:100%;'>");
-                    document.getElementById("activityImageDiv").style.display = 'block';
+                    activityImageUrlArray.forEach(item=>{
+                        $(".activityIconBox").append("<img src='" + item + "' style='width:50px;height:50px;'>")
+                })
+                    // $("#activityImageDiv").html("<img src='" + result.data.activityIconObject[0] + "' style='width;100%;height:100%;'>");
+                    // document.getElementById("activityImageDiv").style.display = 'block';
                 }
                 if (result.data.bottom_prompt_text != null){
                     document.getElementById("alertTitle").value = result.data.bottom_prompt_text;