增加文字长度自动设置/栏目增加校验
This commit is contained in:
parent
46203ea5db
commit
2a0245eb86
@ -81,7 +81,8 @@ public class ShopTemplateConfigAppController extends DefaultBaseController {
|
|||||||
for(ConfigTableOperationDTO operationDTO : operationDTOList) {
|
for(ConfigTableOperationDTO operationDTO : operationDTOList) {
|
||||||
// 公司图片
|
// 公司图片
|
||||||
if("photo".equals(operationDTO.getName()) ) {
|
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);
|
modelAndView.addObject("fileList", imageList);
|
||||||
}
|
}
|
||||||
// 公司介绍
|
// 公司介绍
|
||||||
@ -105,7 +106,8 @@ public class ShopTemplateConfigAppController extends DefaultBaseController {
|
|||||||
for(ConfigTableOperationDTO operationDTO : operationDTOList) {
|
for(ConfigTableOperationDTO operationDTO : operationDTOList) {
|
||||||
// 公司图片
|
// 公司图片
|
||||||
if("photo".equals(operationDTO.getName()) ) {
|
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);
|
modelAndView.addObject("fileList", imageList);
|
||||||
}
|
}
|
||||||
// 公司介绍
|
// 公司介绍
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<div class="layui-fluid layui-anim layui-anim-fadein">
|
<div class="layui-fluid layui-anim layui-anim-fadein">
|
||||||
<div class="layui-row" id="viewer">
|
<div class="layui-row" id="viewer">
|
||||||
<div class="layui-col-md12" >
|
<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>
|
<h1 th:text="${content}"></h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,10 +15,15 @@
|
|||||||
<div class="layui-fluid layui-anim layui-anim-fadein">
|
<div class="layui-fluid layui-anim layui-anim-fadein">
|
||||||
<div class="layui-row">
|
<div class="layui-row">
|
||||||
<div class="layui-col-md12" th:each="file,fileStat : ${fileList}">
|
<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%">
|
<img th:src="${'route/file/download/false/'+ file}" style="width:100%">
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</div>
|
||||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||||
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
<script src="assets/js/vendor/viewer/viewer.min.js"></script>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<div class="layui-fluid layui-anim layui-anim-fadein">
|
<div class="layui-fluid layui-anim layui-anim-fadein">
|
||||||
<div class="layui-row" id="viewer">
|
<div class="layui-row" id="viewer">
|
||||||
<div class="layui-col-md12" th:each="file,fileStat : ${fileList}">
|
<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%">
|
<img th:src="${'route/file/download/false/'+ file}" style="width:100%">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user