适配朋友圈插件v1.4.3-4
This commit is contained in:
@@ -74,13 +74,11 @@
|
||||
<!-- 图片列表 -->
|
||||
<div class="img_list img-dynamic-container">
|
||||
<div class="list_inner"
|
||||
th:with="isImgList=${#strings.startsWith(spec.title, 'img:::')}"
|
||||
th:attr="num=${isImgList ? #arrays.length(#strings.substringAfter(spec.title, 'img:::').split(',')) : 0}">
|
||||
<!-- 只有识别为图片列表时才渲染 -->
|
||||
th:with="imgRaw=${spec.imageFiles},isImgList=${not #strings.isEmpty(imgRaw)}"
|
||||
th:attr="num=${isImgList ? #arrays.length(imgRaw.split(',')) : 0}">
|
||||
<!-- 仅使用 imageFiles;字段缺失或为空时不显示图片 -->
|
||||
<th:block th:if="${isImgList}">
|
||||
<!-- 去掉前缀,分割数组 -->
|
||||
<th:block
|
||||
th:with="imgArray=${#strings.substringAfter(spec.title, 'img:::').split(',')}">
|
||||
<th:block th:with="imgArray=${imgRaw.split(',')}">
|
||||
<th:block th:each="url : ${imgArray}"
|
||||
th:with="cleanUrl=${#strings.trim(url)}">
|
||||
<span class="fancybox mo_img"
|
||||
|
||||
Reference in New Issue
Block a user