Skip to content

Commit

Permalink
图片审核
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed Nov 4, 2024
1 parent 8b005c2 commit 2ef75cf
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
22 changes: 18 additions & 4 deletions src/main/resources/skins/classic/admin/pic.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,16 @@
<#list files as file>
<div class="item" id="${file.oId}">
<#if file.type == "mp4">
<video class="item__img" autoplay muted loop playsinline>
<source src="${file.path}" type="video/mp4">
您的浏览器不支持 video 标签。
</video>
<#if file.public == true>
<video class="item__img" autoplay muted loop playsinline>
<source src="${file.path}" type="video/mp4">
您的浏览器不支持 video 标签。
</video>
<#else>
<div class="item__img" style="margin: 15px 0 0 15px;">
<svg class="icon-thumbs-up"><use xlink:href="#thumbs-up"></use></svg> 已审核
</div>
</#if>
<#else>
<#if file.public == true>
<div class="item__img" style="background-image: url(${file.path});"></div>
Expand Down Expand Up @@ -94,6 +100,10 @@
Util.notice("success", 1500, result.msg);
$("#" + oId).find("span")[0].innerHTML = '';
$("#" + oId).find("span")[1].innerHTML = '';
$("#" + oId + " .item__img").remove();
$("#" + oId).prepend('<div class="item__img" style="margin: 15px 0 0 15px;">' +
'<svg class="icon-thumbs-up"><use xlink:href="#thumbs-up"></use></svg> 已审核' +
'</div>');
}
});
}
Expand All @@ -110,6 +120,10 @@
Util.notice("success", 1500, result.msg);
$("#" + oId).find("span")[0].innerHTML = '';
$("#" + oId).find("span")[1].innerHTML = '';
$("#" + oId + " .item__img").remove();
$("#" + oId).prepend('<div class="item__img" style="margin: 15px 0 0 15px;">' +
'<svg class="icon-thumbs-up"><use xlink:href="#thumbs-up"></use></svg> 已审核' +
'</div>');
}
});
}
Expand Down
22 changes: 18 additions & 4 deletions src/main/resources/skins/mobile/admin/pic.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@
<#list files as file>
<div class="item" id="${file.oId}">
<#if file.type == "mp4">
<video class="item__img" autoplay muted loop playsinline>
<source src="${file.path}" type="video/mp4">
您的浏览器不支持 video 标签。
</video>
<#if file.public == true>
<video class="item__img" autoplay muted loop playsinline>
<source src="${file.path}" type="video/mp4">
您的浏览器不支持 video 标签。
</video>
<#else>
<div class="item__img" style="margin: 15px 0 0 15px;">
<svg class="icon-thumbs-up"><use xlink:href="#thumbs-up"></use></svg> 已审核
</div>
</#if>
<#else>
<#if file.public == true>
<div class="item__img" style="background-image: url(${file.path});"></div>
Expand Down Expand Up @@ -90,6 +96,10 @@
Util.notice("success", 1500, result.msg);
$("#" + oId).find("span")[0].innerHTML = '';
$("#" + oId).find("span")[1].innerHTML = '';
$("#" + oId + " .item__img").remove();
$("#" + oId).prepend('<div class="item__img" style="margin: 15px 0 0 15px;">' +
'<svg class="icon-thumbs-up"><use xlink:href="#thumbs-up"></use></svg> 已审核' +
'</div>');
}
});
}
Expand All @@ -106,6 +116,10 @@
Util.notice("success", 1500, result.msg);
$("#" + oId).find("span")[0].innerHTML = '';
$("#" + oId).find("span")[1].innerHTML = '';
$("#" + oId + " .item__img").remove();
$("#" + oId).prepend('<div class="item__img" style="margin: 15px 0 0 15px;">' +
'<svg class="icon-thumbs-up"><use xlink:href="#thumbs-up"></use></svg> 已审核' +
'</div>');
}
});
}
Expand Down

0 comments on commit 2ef75cf

Please sign in to comment.