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