|
|
@@ -78,26 +78,26 @@
|
|
|
<div class="carousel-inner" th:each="banner,bStatus:${abannerlist}">
|
|
|
<div class="item active">
|
|
|
<a th:if="${banner.forwardUrl}!=null and ${banner.forwardUrl}!=''" th:href="|${basePath }${ banner.forwardUrl}"><img th:src="|${avatarUploadHost}${banner.imgUrl}" th:alt="${banner.text}"></a>
|
|
|
- <a th:if="${banner.forwardUrl}==null or ${banner.forwardUrl}==''" th:href="|${basePath }${ banner.forwardUrl}"><img th:src="|${avatarUploadHost}${banner.imgUrl}" th:alt="${banner.text}"></a>
|
|
|
+ <a th:if="${banner.forwardUrl}==null or ${banner.forwardUrl}==''" th:href="javascript:;"><img th:src="|${avatarUploadHost}${banner.imgUrl}" th:alt="${banner.text}"></a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="myCarousel" class="carousel slide" th:if="${#lists.size(abannerlist) > 1}">
|
|
|
<!-- 轮播(Carousel)指标 -->
|
|
|
<ol class="carousel-indicators"><!-- 循环圆点 -->
|
|
|
- <li data-target="#myCarousel" data-slide-to="${bStatus.index}" class="active" th:each="banner,bStatus:${abannerlist}" th:if="${bStatus.first}"></li>
|
|
|
- <li data-target="#myCarousel" data-slide-to="${bStatus.index}" th:each="banner,bStatus:${abannerlist}" th:unless="${bStatus.first}"></li>
|
|
|
+ <li data-target="#myCarousel" th:attr="data-slide-to=${bStatus.index}" class="active" th:each="banner,bStatus:${abannerlist}" th:if="${bStatus.first}"></li>
|
|
|
+ <li data-target="#myCarousel" th:attr="data-slide-to=${bStatus.index}" th:each="banner,bStatus:${abannerlist}" th:unless="${bStatus.first}"></li>
|
|
|
</ol>
|
|
|
<!-- 轮播(Carousel)项目 -->
|
|
|
<div class="carousel-inner" >
|
|
|
<div class="item active" th:each="banner,bStatus:${abannerlist}" th:if="${bStatus.first}">
|
|
|
<!-- /portal/continueHigh /portal/militaryProject /portal/practicalPatent -->
|
|
|
<a th:if="${banner.forwardUrl}!=null and ${banner.forwardUrl}!=''" th:href="|${basePath }${ banner.forwardUrl}"><img th:src="|${avatarUploadHost}${banner.imgUrl}" th:alt="${banner.text}"></a>
|
|
|
- <a th:if="${banner.forwardUrl}==null or ${banner.forwardUrl}==''" th:href="|${basePath }${ banner.forwardUrl}"><img th:src="|${avatarUploadHost}${banner.imgUrl}" th:alt="${banner.text}"></a>
|
|
|
+ <a th:if="${banner.forwardUrl}==null or ${banner.forwardUrl}==''" th:href="javascript:;"><img th:src="|${avatarUploadHost}${banner.imgUrl}" th:alt="${banner.text}"></a>
|
|
|
</div>
|
|
|
<div class="item" th:each="banner,bStatus:${abannerlist}" th:unless="${bStatus.first}">
|
|
|
<a th:if="${banner.forwardUrl}!=null and ${banner.forwardUrl}!=''" th:href="|${basePath }${ banner.forwardUrl}"><img th:src="|${avatarUploadHost}${banner.imgUrl}" th:alt="${banner.text}"></a>
|
|
|
- <a th:if="${banner.forwardUrl}==null or ${banner.forwardUrl}==''" th:href="|${basePath }${ banner.forwardUrl}"><img th:src="|${avatarUploadHost}${banner.imgUrl}" th:alt="${banner.text}"></a>
|
|
|
+ <a th:if="${banner.forwardUrl}==null or ${banner.forwardUrl}==''" th:href="javascript:;"><img th:src="|${avatarUploadHost}${banner.imgUrl}" th:alt="${banner.text}"></a>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 轮播(Carousel)导航 -->
|