修复首页瞬间隐藏问题

This commit is contained in:
1152958806@qq.com 2023-09-11 11:11:11 +08:00
parent c049b3c7b8
commit f3fb63ce09
3 changed files with 29 additions and 26 deletions

View File

@ -31,7 +31,7 @@
</style>
<!-- swiper 在瞬间滚动时会使用 -->
<link rel="stylesheet" href="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/Swiper/8.0.6/swiper-bundle.min.css"/>
<link th:if="${theme.config.top.moment}" rel="stylesheet" href="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/Swiper/8.0.6/swiper-bundle.min.css"/>
<!-- 右下角通知 -->
<link href="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/node-snackbar/0.1.16/snackbar.min.css"

View File

@ -91,7 +91,7 @@
<script th:src="${assets_link + '/libs/pjax/pjax.min.js'}"></script>
<!-- swiper 在瞬间滚动时会使用 -->
<script data-pjax src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/Swiper/6.6.2/swiper-bundle.min.js"></script>
<script th:if="${theme.config.top.moment}" data-pjax src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/Swiper/6.6.2/swiper-bundle.min.js"></script>
<!-- 右键菜单 -->
<script th:if="${theme.config.tool.rightMenu.rightMenuEnable}" th:src="${assets_link + '/zhheo/rightmenu.js'}"></script>

View File

@ -2,32 +2,35 @@
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div class="bbTimeList container" id="bbTimeList" th:fragment="moment"
th:if="!${pluginFinder.available('PluginMoments')}">
<!-- 未安装插件 -->
<i class="haofont hao-icon-logo-moment" onclick="" style="font-size: 1.3rem;" title="瞬间"></i>
<div class="swiper-container swiper-no-swiping" id="bbtalk" tabindex="-1">
<div class="swiper-wrapper" id="bber-talk"
onclick="location.href=location.href='https\:\/\/github.com/halo-sigs/plugin-moments'">
<div class="li-style swiper-slide">这里需要安装瞬间的插件</div>
<div class="li-style swiper-slide">去安装吧!</div>
</div>
</div>
<i class="bber-gotobb haofont hao-icon-circle-arrow-right"
onclick="location.href=location.href='https\:\/\/github.com/halo-sigs/plugin-moments'" title="下载插件"></i>
</div>
th:if="${theme.config.top.moment}">
<div class="bbTimeList container" id="bbTimeList" th:fragment="moment"
th:if="${theme.config.top.moment} and ${pluginFinder.available('PluginMoments')}">
<!-- 瞬间插件 -->
<i class="haofont hao-icon-logo-moment" onclick="" style="font-size: 1.3rem;" title="瞬间"></i>
<div class="swiper-container swiper-no-swiping" id="bbtalk" tabindex="-1">
<div class="swiper-wrapper" id="bber-talk" onclick="pjax.loadUrl('/moments')" th:if="${momentFinder}">
<th:block th:each="moment : ${momentFinder.listAll()}" th:with="content=${moment.spec.content}">
<div class="li-style swiper-slide" th:if="${not #strings.isEmpty(content.html)}"
th:text="${#strings.substringBefore(#strings.substringAfter(content.html,'<p>'),'</p>')}"></div>
</th:block>
<!-- 未安装插件 -->
<th:block th:if="!${pluginFinder.available('PluginMoments')}">
<div class="swiper-container swiper-no-swiping" id="bbtalk" tabindex="-1">
<div class="swiper-wrapper" id="bber-talk"
onclick="location.href=location.href='https\:\/\/github.com/halo-sigs/plugin-moments'">
<div class="li-style swiper-slide">这里需要安装瞬间的插件</div>
<div class="li-style swiper-slide">去安装吧!</div>
</div>
</div>
</div>
<i class="bber-gotobb haofont hao-icon-circle-arrow-right" onclick="location.href='/moments'" title="查看全文"></i>
<i class="bber-gotobb haofont hao-icon-circle-arrow-right"
onclick="location.href=location.href='https\:\/\/github.com/halo-sigs/plugin-moments'" title="下载插件"></i>
</th:block>
<!-- 瞬间插件 -->
<th:block th:if="${pluginFinder.available('PluginMoments')}">
<div class="swiper-container swiper-no-swiping" id="bbtalk" tabindex="-1">
<div class="swiper-wrapper" id="bber-talk" onclick="pjax.loadUrl('/moments')" th:if="${momentFinder}">
<th:block th:each="moment : ${momentFinder.listAll()}" th:with="content=${moment.spec.content}">
<div class="li-style swiper-slide" th:if="${not #strings.isEmpty(content.html)}"
th:text="${#strings.substringBefore(#strings.substringAfter(content.html,'<p>'),'</p>')}"></div>
</th:block>
</div>
</div>
<i class="bber-gotobb haofont hao-icon-circle-arrow-right" onclick="location.href='/moments'" title="查看全文"></i>
</th:block>
</div>
</html>