修改bug

This commit is contained in:
yangjun 2024-06-04 13:42:12 +08:00
parent a90f416070
commit 3ba4329600
16 changed files with 138 additions and 117 deletions

View File

@ -2412,7 +2412,7 @@ html {
.homef .home-footer .fright .frightb { .homef .home-footer .fright .frightb {
border-top: .04rem solid #365faa; border-top: .04rem solid #365faa;
height: 2.72rem; height: 2.72rem;
padding: 0 10.25% 0 7.3%; padding: 0 5.25% 0 3.3%;
line-height: 2.72rem line-height: 2.72rem
} }
@ -3037,7 +3037,7 @@ li.A_li9:hover p {
.index-flash .list li { .index-flash .list li {
position: relative; position: relative;
height: 32.1rem; height: 31.1rem;
} }
.index-flash .list li .img { .index-flash .list li .img {

View File

@ -29,14 +29,14 @@
<h1><img alt="[ 吉林省新农科长白山创新学院 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1> <h1><img alt="[ 吉林省新农科长白山创新学院 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1>
</div> </div>
<div class="m-b"></div> <div class="m-b"></div>
<h4>欢迎使用 <strong>后台管理系统</strong></h4> <h4>欢迎使用 <strong>长白山创新学院</strong> 后台管理系统</h4>
</div> </div>
</div> </div>
<div class="col-sm-5"> <div class="col-sm-5">
<form id="signupForm" autocomplete="off"> <form id="signupForm" autocomplete="off">
<h4 class="no-margins">登录:</h4> <h4 class="no-margins">登录:</h4>
<input type="text" name="username" class="form-control uname" placeholder="用户名" value="admin" /> <input type="text" name="username" class="form-control uname" placeholder="用户名" />
<input type="password" name="password" class="form-control pword" placeholder="密码" value="admin" /> <input type="password" name="password" class="form-control pword" placeholder="密码" />
<div class="row m-t" th:if="${captchaEnabled==true}"> <div class="row m-t" th:if="${captchaEnabled==true}">
<div class="col-xs-6"> <div class="col-xs-6">
<input type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5" /> <input type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5" />
@ -47,20 +47,23 @@
</a> </a>
</div> </div>
</div> </div>
<div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'"> <!-- <div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'">-->
<input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label> <!-- <input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label>-->
</div> <!-- </div>-->
<button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录,请稍候...">登录</button> <button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录,请稍候...">登录</button>
</form> </form>
</div> </div>
</div> </div>
<div class="signup-footer"> <!-- <div class="signup-footer">-->
<div class="pull-left"> <!-- <div class="pull-center">-->
Copyright © 吉林省新农科长白山创新学院. <br> <!-- Copyright © 吉林省新农科长白山创新学院. <br>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> </div>
<script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; var captchaEnabled = [[${captchaEnabled}]];</script> <script th:inline="javascript">
var ctx = [[@{/}]];
var captchaType = [[${captchaType}]];
var captchaEnabled = [[${captchaEnabled}]];</script>
<!--[if lte IE 8]><script>window.location.href=ctx+'html/ie.html';</script><![endif]--> <!--[if lte IE 8]><script>window.location.href=ctx+'html/ie.html';</script><![endif]-->
<!-- 全局js --> <!-- 全局js -->
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script> <script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>

View File

@ -89,7 +89,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">附件:</label> <label class="col-sm-3 control-label">附件:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input type="text" name="filePath" th:field="*{filePath}"> <input type="hidden" name="filePath" th:field="*{filePath}">
<div class="file-loading"> <div class="file-loading">
<input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*" multiple> <input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*" multiple>
</div> </div>

View File

@ -227,8 +227,9 @@
</div> </div>
<div class="frightb"> <div class="frightb">
<div class="flex-left"> <div class="flex-left">
<div class="ll flex-v-center">友情链接:</div> <!-- <div class="ll flex-v-center">友情链接</div>-->
<div class="rr"> <div class="rr">
<a th:href="'/portal/list?newType=13'">友情链接:</a>
<a th:each="item:${yqljList}" th:href="${item.linkUrl}" target="_blank"><span class="titline_w">[[${item.title}]]</span></a> <a th:each="item:${yqljList}" th:href="${item.linkUrl}" target="_blank"><span class="titline_w">[[${item.title}]]</span></a>
<!-- <a href="list.html" title="吉林农业大学"--> <!-- <a href="list.html" title="吉林农业大学"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 79045)" target="_blank"--> <!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 79045)" target="_blank"-->

View File

@ -68,7 +68,7 @@
</div> </div>
<ul style="margin-top: .65rem;"> <ul style="margin-top: .65rem;">
<li class="titlin_b" th:each="item : ${xwdtList}" > <li class="titlin_b" th:each="item : ${xwdtList}" >
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="ellipsis-multiline"> <a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="ellipsis-multiline">
<h4 class="titline_b">[[${item.title}]]</h4> <h4 class="titline_b">[[${item.title}]]</h4>
<p class="titline_line2" > <p class="titline_line2" >
[[${item.abstracts}]] [[${item.abstracts}]]
@ -86,12 +86,12 @@
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<div class="swiper-slide slide bg-mask" th:each="item : ${xwdtList}" > <div class="swiper-slide slide bg-mask" th:each="item : ${xwdtList}" >
<div class="pic"> <div class="pic">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="mark"> <a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="mark">
<img th:src="${item.imagePath}" th:alt="${item.title}" style="max-width:875px;max-height:599px;" /> <img th:src="${item.imagePath}" th:alt="${item.title}" style="max-width:875px;max-height:599px;" />
</a> </a>
</div> </div>
<p> <p>
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto"> <a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
[[${item.title}]] [[${item.title}]]
</a> </a>
<span>发布时间:[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</span> <span>发布时间:[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</span>
@ -150,7 +150,8 @@
<time><span>[[${#dates.format(item.publishTime, 'dd')}]]</span>[[${#dates.format(item.publishTime, 'YYYY-MM')}]]</time> <time><span>[[${#dates.format(item.publishTime, 'dd')}]]</span>[[${#dates.format(item.publishTime, 'YYYY-MM')}]]</time>
</div> </div>
<div class="info flex-v-center"> <div class="info flex-v-center">
<h4><a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto"> <h4>
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
<span class="titline_w">[[${item.title}]]</span></a> <span class="titline_w">[[${item.title}]]</span></a>
</h4> </h4>
<p class="line2"> <p class="line2">
@ -174,7 +175,7 @@
<ul> <ul>
<li th:each="item : ${hdygList}"> <li th:each="item : ${hdygList}">
<div class="img"> <div class="img">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="jtfylist jtfyl1"> <a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="jtfylist jtfyl1">
<img th:src="${item.imagePath}" th:alt="${item.title}" style="width: 100%" /> <img th:src="${item.imagePath}" th:alt="${item.title}" style="width: 100%" />
</a> </a>
</div> </div>

View File

@ -81,7 +81,6 @@
<th:block th:include="portal/headerAndFooter :: search" /> <th:block th:include="portal/headerAndFooter :: search" />
<script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script> <script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script>
<script th:src="@{/portal/js/page.js}"></script>
<script th:inline="javascript"> <script th:inline="javascript">
var newType = [[${threeCode}]] var newType = [[${threeCode}]]
@ -94,7 +93,7 @@
let str = result.rows.reduce(function (prve, item) { let str = result.rows.reduce(function (prve, item) {
// <a href="/portal/details?id=${item.id}" target="_blank" title="${item.title}" class="clearfix"> // <a href="/portal/details?id=${item.id}" target="_blank" title="${item.title}" class="clearfix">
var url = ""; var url = "";
if(item.linkUrl){ if(item.type=='2'){
url = item.linkUrl; url = item.linkUrl;
}else{ }else{
url= '/portal/details?id='+item.id url= '/portal/details?id='+item.id
@ -103,9 +102,14 @@
<li class="clearfix"> <li class="clearfix">
<a href="${url}" target="_blank" title="${item.title}" class="clearfix"> <a href="${url}" target="_blank" title="${item.title}" class="clearfix">
<div class="left txt"> <div class="left txt">
<div class="fnt_22 title">${item.title}</div> <div class="fnt_22 title">${item.title}</div>`
<div class="des">${item.abstracts}</div> if(item.abstracts){
</div> prve +=`<div class="des">${item.abstracts}</div>`
}else{
prve +=`<div class="des"> </div>`
}
prve +=`</div>
<div class="right time"> <div class="right time">
<div class="ta">${item.publishTime}</div> <div class="ta">${item.publishTime}</div>
<div>发布时间</div> <div>发布时间</div>
@ -130,13 +134,13 @@
}); });
async function mainListChange(page) { async function mainListChange(page) {
var url = "/portal/dataList"; var url = "/portal/dataList";
var div = document.getElementById("dataSource"); var div = document.getElementById("dataSource");
var dataParam = {newType:newType,pageNum: page, pageSize: 10} var dataParam = {newType:newType,pageNum: page, pageSize: 10}
$.post(url, dataParam, function(result) { $.post(url, dataParam, function(result) {
let str = result.rows.reduce(function (prve, item) { let str = result.rows.reduce(function (prve, item) {
prve += ` prve += `
<li class="clearfix"> <li class="clearfix">
<a href="/portal/details?id=${item.id}" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix"> <a href="/portal/details?id=${item.id}" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt"> <div class="left txt">
@ -150,13 +154,13 @@
</a> </a>
</li> </li>
` `
return prve return prve
}, '') }, '')
document.querySelector('.dataSource').innerHTML = str; document.querySelector('.dataSource').innerHTML = str;
//翻页 //翻页
generPage(result.total, 'page_list') generPage(result.total, 'page_list')
}); });
} }
@ -164,34 +168,35 @@
//if($(window).width()<1024){ //if($(window).width()<1024){
//判断手机横竖屏状态: //判断手机横竖屏状态:
if (window.orientation == 180 || window.orientation == 0) { if (window.orientation == 180 || window.orientation == 0) {
//alert("竖屏状态!") //alert("竖屏状态!")
$(".stips").hide(); $(".stips").hide();
} }
if (window.orientation == 90 || window.orientation == -90) { if (window.orientation == 90 || window.orientation == -90) {
//alert("横屏状态!") //alert("横屏状态!")
$(".stips").css({ $(".stips").css({
display: "flex" display: "flex"
}); });
} }
function hengshuping() { function hengshuping() {
if (window.orientation == 180 || window.orientation == 0) { if (window.orientation == 180 || window.orientation == 0) {
//alert("竖屏状态!") //alert("竖屏状态!")
$(".stips").hide(); $(".stips").hide();
} }
if (window.orientation == 90 || window.orientation == -90) { if (window.orientation == 90 || window.orientation == -90) {
//alert("横屏状态!") //alert("横屏状态!")
$(".stips").css({ $(".stips").css({
display: "flex" display: "flex"
}); });
} }
} }
//} //}
window.addEventListener( window.addEventListener(
"onorientationchange" in window ? "orientationchange" : "resize", "onorientationchange" in window ? "orientationchange" : "resize",
hengshuping, hengshuping,
false false
); );
</script> </script>
<script th:src="@{/portal/js/page.js}"></script>
</body> </body>
</html> </html>

View File

@ -39,7 +39,7 @@
<ul class="dataSource" style="min-height:600px"> <ul class="dataSource" style="min-height:600px">
<li class="clearfix" th:each="item : ${list}"> <li class="clearfix" th:each="item : ${list}">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="clearfix"> <a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="clearfix">
<div class="left txt"> <div class="left txt">
<div class="fnt_22 title">[[${item.title}]]</div> <div class="fnt_22 title">[[${item.title}]]</div>
<div class="des">[[${item.abstracts}]]</div> <div class="des">[[${item.abstracts}]]</div>

View File

@ -2412,7 +2412,7 @@ html {
.homef .home-footer .fright .frightb { .homef .home-footer .fright .frightb {
border-top: .04rem solid #365faa; border-top: .04rem solid #365faa;
height: 2.72rem; height: 2.72rem;
padding: 0 10.25% 0 7.3%; padding: 0 5.25% 0 3.3%;
line-height: 2.72rem line-height: 2.72rem
} }
@ -3037,7 +3037,7 @@ li.A_li9:hover p {
.index-flash .list li { .index-flash .list li {
position: relative; position: relative;
height: 32.1rem; height: 31.1rem;
} }
.index-flash .list li .img { .index-flash .list li .img {

View File

@ -29,14 +29,14 @@
<h1><img alt="[ 吉林省新农科长白山创新学院 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1> <h1><img alt="[ 吉林省新农科长白山创新学院 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1>
</div> </div>
<div class="m-b"></div> <div class="m-b"></div>
<h4>欢迎使用 <strong>后台管理系统</strong></h4> <h4>欢迎使用 <strong>长白山创新学院</strong> 后台管理系统</h4>
</div> </div>
</div> </div>
<div class="col-sm-5"> <div class="col-sm-5">
<form id="signupForm" autocomplete="off"> <form id="signupForm" autocomplete="off">
<h4 class="no-margins">登录:</h4> <h4 class="no-margins">登录:</h4>
<input type="text" name="username" class="form-control uname" placeholder="用户名" value="admin" /> <input type="text" name="username" class="form-control uname" placeholder="用户名" />
<input type="password" name="password" class="form-control pword" placeholder="密码" value="admin" /> <input type="password" name="password" class="form-control pword" placeholder="密码" />
<div class="row m-t" th:if="${captchaEnabled==true}"> <div class="row m-t" th:if="${captchaEnabled==true}">
<div class="col-xs-6"> <div class="col-xs-6">
<input type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5" /> <input type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5" />
@ -47,20 +47,23 @@
</a> </a>
</div> </div>
</div> </div>
<div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'"> <!-- <div class="checkbox-custom" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'">-->
<input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label> <!-- <input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住我</label>-->
</div> <!-- </div>-->
<button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录,请稍候...">登录</button> <button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录,请稍候...">登录</button>
</form> </form>
</div> </div>
</div> </div>
<div class="signup-footer"> <!-- <div class="signup-footer">-->
<div class="pull-left"> <!-- <div class="pull-center">-->
Copyright © 吉林省新农科长白山创新学院. <br> <!-- Copyright © 吉林省新农科长白山创新学院. <br>-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> </div>
<script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; var captchaEnabled = [[${captchaEnabled}]];</script> <script th:inline="javascript">
var ctx = [[@{/}]];
var captchaType = [[${captchaType}]];
var captchaEnabled = [[${captchaEnabled}]];</script>
<!--[if lte IE 8]><script>window.location.href=ctx+'html/ie.html';</script><![endif]--> <!--[if lte IE 8]><script>window.location.href=ctx+'html/ie.html';</script><![endif]-->
<!-- 全局js --> <!-- 全局js -->
<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script> <script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>

View File

@ -89,7 +89,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">附件:</label> <label class="col-sm-3 control-label">附件:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input type="text" name="filePath" th:field="*{filePath}"> <input type="hidden" name="filePath" th:field="*{filePath}">
<div class="file-loading"> <div class="file-loading">
<input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*" multiple> <input class="form-control file-uploadb" id="filePath" name="file" type="file" accept="*" multiple>
</div> </div>

View File

@ -227,8 +227,9 @@
</div> </div>
<div class="frightb"> <div class="frightb">
<div class="flex-left"> <div class="flex-left">
<div class="ll flex-v-center">友情链接:</div> <!-- <div class="ll flex-v-center">友情链接</div>-->
<div class="rr"> <div class="rr">
<a th:href="'/portal/list?newType=13'">友情链接:</a>
<a th:each="item:${yqljList}" th:href="${item.linkUrl}" target="_blank"><span class="titline_w">[[${item.title}]]</span></a> <a th:each="item:${yqljList}" th:href="${item.linkUrl}" target="_blank"><span class="titline_w">[[${item.title}]]</span></a>
<!-- <a href="list.html" title="吉林农业大学"--> <!-- <a href="list.html" title="吉林农业大学"-->
<!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 79045)" target="_blank"--> <!-- onclick="_addDynClicks('&#34;wbimage&#34;', 1729783378, 79045)" target="_blank"-->

View File

@ -68,7 +68,7 @@
</div> </div>
<ul style="margin-top: .65rem;"> <ul style="margin-top: .65rem;">
<li class="titlin_b" th:each="item : ${xwdtList}" > <li class="titlin_b" th:each="item : ${xwdtList}" >
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="ellipsis-multiline"> <a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="ellipsis-multiline">
<h4 class="titline_b">[[${item.title}]]</h4> <h4 class="titline_b">[[${item.title}]]</h4>
<p class="titline_line2" > <p class="titline_line2" >
[[${item.abstracts}]] [[${item.abstracts}]]
@ -86,12 +86,12 @@
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<div class="swiper-slide slide bg-mask" th:each="item : ${xwdtList}" > <div class="swiper-slide slide bg-mask" th:each="item : ${xwdtList}" >
<div class="pic"> <div class="pic">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="mark"> <a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="mark">
<img th:src="${item.imagePath}" th:alt="${item.title}" style="max-width:875px;max-height:599px;" /> <img th:src="${item.imagePath}" th:alt="${item.title}" style="max-width:875px;max-height:599px;" />
</a> </a>
</div> </div>
<p> <p>
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto"> <a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
[[${item.title}]] [[${item.title}]]
</a> </a>
<span>发布时间:[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</span> <span>发布时间:[[${#dates.format(item.publishTime, 'YYYY-MM-dd')}]]</span>
@ -150,7 +150,8 @@
<time><span>[[${#dates.format(item.publishTime, 'dd')}]]</span>[[${#dates.format(item.publishTime, 'YYYY-MM')}]]</time> <time><span>[[${#dates.format(item.publishTime, 'dd')}]]</span>[[${#dates.format(item.publishTime, 'YYYY-MM')}]]</time>
</div> </div>
<div class="info flex-v-center"> <div class="info flex-v-center">
<h4><a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto"> <h4>
<a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="texto">
<span class="titline_w">[[${item.title}]]</span></a> <span class="titline_w">[[${item.title}]]</span></a>
</h4> </h4>
<p class="line2"> <p class="line2">
@ -174,7 +175,7 @@
<ul> <ul>
<li th:each="item : ${hdygList}"> <li th:each="item : ${hdygList}">
<div class="img"> <div class="img">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="jtfylist jtfyl1"> <a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="jtfylist jtfyl1">
<img th:src="${item.imagePath}" th:alt="${item.title}" style="width: 100%" /> <img th:src="${item.imagePath}" th:alt="${item.title}" style="width: 100%" />
</a> </a>
</div> </div>

View File

@ -81,7 +81,6 @@
<th:block th:include="portal/headerAndFooter :: search" /> <th:block th:include="portal/headerAndFooter :: search" />
<script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script> <script src="../../static/js/public.js" th:src="@{/portal/js/public.js}"></script>
<script th:src="@{/portal/js/page.js}"></script>
<script th:inline="javascript"> <script th:inline="javascript">
var newType = [[${threeCode}]] var newType = [[${threeCode}]]
@ -94,7 +93,7 @@
let str = result.rows.reduce(function (prve, item) { let str = result.rows.reduce(function (prve, item) {
// <a href="/portal/details?id=${item.id}" target="_blank" title="${item.title}" class="clearfix"> // <a href="/portal/details?id=${item.id}" target="_blank" title="${item.title}" class="clearfix">
var url = ""; var url = "";
if(item.linkUrl){ if(item.type=='2'){
url = item.linkUrl; url = item.linkUrl;
}else{ }else{
url= '/portal/details?id='+item.id url= '/portal/details?id='+item.id
@ -103,9 +102,14 @@
<li class="clearfix"> <li class="clearfix">
<a href="${url}" target="_blank" title="${item.title}" class="clearfix"> <a href="${url}" target="_blank" title="${item.title}" class="clearfix">
<div class="left txt"> <div class="left txt">
<div class="fnt_22 title">${item.title}</div> <div class="fnt_22 title">${item.title}</div>`
<div class="des">${item.abstracts}</div> if(item.abstracts){
</div> prve +=`<div class="des">${item.abstracts}</div>`
}else{
prve +=`<div class="des"> </div>`
}
prve +=`</div>
<div class="right time"> <div class="right time">
<div class="ta">${item.publishTime}</div> <div class="ta">${item.publishTime}</div>
<div>发布时间</div> <div>发布时间</div>
@ -130,13 +134,13 @@
}); });
async function mainListChange(page) { async function mainListChange(page) {
var url = "/portal/dataList"; var url = "/portal/dataList";
var div = document.getElementById("dataSource"); var div = document.getElementById("dataSource");
var dataParam = {newType:newType,pageNum: page, pageSize: 10} var dataParam = {newType:newType,pageNum: page, pageSize: 10}
$.post(url, dataParam, function(result) { $.post(url, dataParam, function(result) {
let str = result.rows.reduce(function (prve, item) { let str = result.rows.reduce(function (prve, item) {
prve += ` prve += `
<li class="clearfix"> <li class="clearfix">
<a href="/portal/details?id=${item.id}" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix"> <a href="/portal/details?id=${item.id}" target="_blank" title="2023-2024秋 本科生第二次游泳集中测试通知" class="clearfix">
<div class="left txt"> <div class="left txt">
@ -150,13 +154,13 @@
</a> </a>
</li> </li>
` `
return prve return prve
}, '') }, '')
document.querySelector('.dataSource').innerHTML = str; document.querySelector('.dataSource').innerHTML = str;
//翻页 //翻页
generPage(result.total, 'page_list') generPage(result.total, 'page_list')
}); });
} }
@ -164,34 +168,35 @@
//if($(window).width()<1024){ //if($(window).width()<1024){
//判断手机横竖屏状态: //判断手机横竖屏状态:
if (window.orientation == 180 || window.orientation == 0) { if (window.orientation == 180 || window.orientation == 0) {
//alert("竖屏状态!") //alert("竖屏状态!")
$(".stips").hide(); $(".stips").hide();
} }
if (window.orientation == 90 || window.orientation == -90) { if (window.orientation == 90 || window.orientation == -90) {
//alert("横屏状态!") //alert("横屏状态!")
$(".stips").css({ $(".stips").css({
display: "flex" display: "flex"
}); });
} }
function hengshuping() { function hengshuping() {
if (window.orientation == 180 || window.orientation == 0) { if (window.orientation == 180 || window.orientation == 0) {
//alert("竖屏状态!") //alert("竖屏状态!")
$(".stips").hide(); $(".stips").hide();
} }
if (window.orientation == 90 || window.orientation == -90) { if (window.orientation == 90 || window.orientation == -90) {
//alert("横屏状态!") //alert("横屏状态!")
$(".stips").css({ $(".stips").css({
display: "flex" display: "flex"
}); });
} }
} }
//} //}
window.addEventListener( window.addEventListener(
"onorientationchange" in window ? "orientationchange" : "resize", "onorientationchange" in window ? "orientationchange" : "resize",
hengshuping, hengshuping,
false false
); );
</script> </script>
<script th:src="@{/portal/js/page.js}"></script>
</body> </body>
</html> </html>

View File

@ -39,7 +39,7 @@
<ul class="dataSource" style="min-height:600px"> <ul class="dataSource" style="min-height:600px">
<li class="clearfix" th:each="item : ${list}"> <li class="clearfix" th:each="item : ${list}">
<a th:href="${item.linkUrl}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="clearfix"> <a th:href="${item.type=='2'}?${item.linkUrl}:'/portal/details?id='+${item.id}" target="_blank" th:title="${item.title}" class="clearfix">
<div class="left txt"> <div class="left txt">
<div class="fnt_22 title">[[${item.title}]]</div> <div class="fnt_22 title">[[${item.title}]]</div>
<div class="des">[[${item.abstracts}]]</div> <div class="des">[[${item.abstracts}]]</div>

View File

@ -684,7 +684,8 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
if (isBlank(html)){ if (isBlank(html)){
return ""; return "";
} }
String regEx = "<.+?>"; // String regEx = "<.+?>";
String regEx = "<[^>]*>";
Pattern p = Pattern.compile(regEx); Pattern p = Pattern.compile(regEx);
Matcher m = p.matcher(html); Matcher m = p.matcher(html);
String s = m.replaceAll(""); String s = m.replaceAll("");