From 2a0245eb86463641910e674b931f389b7b67d049 Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Fri, 3 Sep 2021 16:09:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=87=E5=AD=97=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E8=87=AA=E5=8A=A8=E8=AE=BE=E7=BD=AE/=E6=A0=8F?= =?UTF-8?q?=E7=9B=AE=E5=A2=9E=E5=8A=A0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ShopTemplateConfigAppController.java | 6 ++++-- .../resources/templates/shoptemplateconfig/baseinfo.html | 2 +- .../templates/shoptemplateconfig/companyinfo.html | 7 ++++++- .../resources/templates/shoptemplateconfig/shoptest.html | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/java/cn/com/tenlion/systemcard/controller/app/api/shoptemplateconfig/ShopTemplateConfigAppController.java b/src/main/java/cn/com/tenlion/systemcard/controller/app/api/shoptemplateconfig/ShopTemplateConfigAppController.java index 111c6f8..d444e17 100644 --- a/src/main/java/cn/com/tenlion/systemcard/controller/app/api/shoptemplateconfig/ShopTemplateConfigAppController.java +++ b/src/main/java/cn/com/tenlion/systemcard/controller/app/api/shoptemplateconfig/ShopTemplateConfigAppController.java @@ -81,7 +81,8 @@ public class ShopTemplateConfigAppController extends DefaultBaseController { for(ConfigTableOperationDTO operationDTO : operationDTOList) { // 公司图片 if("photo".equals(operationDTO.getName()) ) { - String[] imageList = (operationDTO.getValue() + "" ).split(","); + String value = operationDTO.getValue() + ""; + String[] imageList = (value).substring(0, value.length() - 2).split(","); modelAndView.addObject("fileList", imageList); } // 公司介绍 @@ -105,7 +106,8 @@ public class ShopTemplateConfigAppController extends DefaultBaseController { for(ConfigTableOperationDTO operationDTO : operationDTOList) { // 公司图片 if("photo".equals(operationDTO.getName()) ) { - String[] imageList = (operationDTO.getValue() + "" ).split(","); + String value = operationDTO.getValue() + ""; + String[] imageList = (value).substring(0, value.length() - 2).split(","); modelAndView.addObject("fileList", imageList); } // 公司介绍 diff --git a/src/main/resources/templates/shoptemplateconfig/baseinfo.html b/src/main/resources/templates/shoptemplateconfig/baseinfo.html index ead6638..359d432 100644 --- a/src/main/resources/templates/shoptemplateconfig/baseinfo.html +++ b/src/main/resources/templates/shoptemplateconfig/baseinfo.html @@ -15,7 +15,7 @@
-
+

diff --git a/src/main/resources/templates/shoptemplateconfig/companyinfo.html b/src/main/resources/templates/shoptemplateconfig/companyinfo.html index e601630..e2c2918 100644 --- a/src/main/resources/templates/shoptemplateconfig/companyinfo.html +++ b/src/main/resources/templates/shoptemplateconfig/companyinfo.html @@ -15,10 +15,15 @@
-
+
+
+
+

+
+
diff --git a/src/main/resources/templates/shoptemplateconfig/shoptest.html b/src/main/resources/templates/shoptemplateconfig/shoptest.html index b885010..d1fb6e0 100644 --- a/src/main/resources/templates/shoptemplateconfig/shoptest.html +++ b/src/main/resources/templates/shoptemplateconfig/shoptest.html @@ -15,7 +15,7 @@
-
+