增加文字长度自动设置/栏目增加校验

This commit is contained in:
cuibaocheng 2021-09-03 16:09:11 +08:00
parent 46203ea5db
commit 2a0245eb86
4 changed files with 12 additions and 5 deletions

View File

@ -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);
}
// 公司介绍

View File

@ -15,7 +15,7 @@
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-row" id="viewer">
<div class="layui-col-md12" >
<div class="layui-card" style="text-align: center;margin-top: 300px;">
<div class="layui-card" style="text-align: center;margin-top: 300px;background:none;box-shadow: none;">
<h1 th:text="${content}"></h1>
</div>
</div>

View File

@ -15,10 +15,15 @@
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-row">
<div class="layui-col-md12" th:each="file,fileStat : ${fileList}">
<div class="layui-card">
<div class="layui-card" style="background:none;box-shadow: none;">
<img th:src="${'route/file/download/false/'+ file}" style="width:100%">
</div>
</div>
<div class="layui-col-md12" th:each="file,fileStat : ${fileList}">
<div class="layui-card" style="text-align: center;margin-top: 10px;background:none;box-shadow: none;">
<h1 th:text="${content}"></h1>
</div>
</div>
</div>
<script src="assets/layuiadmin/layui/layui.js"></script>
<script src="assets/js/vendor/viewer/viewer.min.js"></script>

View File

@ -15,7 +15,7 @@
<div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-row" id="viewer">
<div class="layui-col-md12" th:each="file,fileStat : ${fileList}">
<div class="layui-card">
<div class="layui-card" style="background:none;box-shadow: none;">
<img th:src="${'route/file/download/false/'+ file}" style="width:100%">
</div>
</div>