xiebaomin 1 tahun lalu
induk
melakukan
a1809ae316

+ 2 - 2
src/main/resources/static/css/article/article.css

@@ -173,8 +173,8 @@ dl,dd,dt{zoom:1}
 
 	.content .row:nth-last-child(1){border-bottom:0}
 	/*信息平台banner*/
-	.info-banner {margin: 16px auto 0 auto;width: 1185px;height:384px;box-sizing: border-box;display: flex;justify-content: space-between;}
-	.info-banner .banner {width: 524px;border: 1px solid;}
+	.info-banner {margin: 16px auto;width: 1185px;height:384px;box-sizing: border-box;display: flex;justify-content: space-between;}
+	.info-banner .banner {width: 524px;}
 	.info-banner .sider-banner {width: 360px;display: flex;flex-direction: column;justify-content: space-between;}
 	.info-banner .sider-banner div {height: 49%;}
 	.info-Notice {width: 284px;background: #fff;}

+ 23 - 24
src/main/resources/templates/article/list.html

@@ -10,13 +10,24 @@
 <div class="cm-modal"></div>
 <!--导航栏-->
 <template th:replace="article/components/article-header"></template>
+<!--<div class="tip-bar">-->
+<!--    &lt;!&ndash;    <div class="tip">提示:产品详情请到采美商城搜索</div> &ndash;&gt;-->
+<!--    &lt;!&ndash;    面包屑&ndash;&gt;-->
+<!--    <div th:if="${typeId}>0" class="bar">-->
+<!--        <a href="/" target="_blank">首页</a>&gt; <a  th:each="type: ${articleType}" th:if="${typeId}==${type.id}" th:text="${type.name}" href="javascript:void(0);" class="title newTitle"></a>-->
+<!--    </div>-->
+<!--</div>-->
 <div class="info-banner PcBanner" th:if="${isSearch}">
-    <div class="banner" th:each="type: ${articleImages}" th:if="${type.levelType} == 1" th:onclick="|trumpLink(${type.jumpLink})|">
-        <img th:src="${type.headPcBanner}" style="width: 100%;height: 100%;" />
+    <div class="banner" th:each="type: ${articleImages}" th:if="${type.levelType} == 1" >
+        <a th:href="${type.jumpLink}">
+            <img th:src="${type.headPcBanner}" style="width: 100%;height: 100%;" />
+        </a>
     </div>
     <div class="sider-banner">
-        <div th:each="type: ${articleImages}" th:if="${type.levelType} == 2" th:onclick="|trumpLink(${type.jumpLink})|">
-            <img th:src="${type.headPcBanner}" style="width: 100%;height: 100%;" />
+        <div th:each="type: ${articleImages}" th:if="${type.levelType} == 2">
+            <a th:href="${type.jumpLink}">
+                <img th:src="${type.headPcBanner}" style="width: 100%;height: 100%;" />
+            </a>
         </div>
     </div>
     <div class="info-Notice" id="infoNotice" v-cloak>
@@ -36,22 +47,19 @@
     </div>
 </div>
 <div class="info-banner AppBanner" th:if="${isSearch}">
-    <div class="banner" th:each="type: ${articleImages}" th:if="${type.levelType} == 1" th:onclick="|trumpLink(${type.jumpLink})|">
-        <img th:src="${type.headAppBanner}" style="width: 100%;height: 100%;" />
+    <div class="banner" th:each="type: ${articleImages}" th:if="${type.levelType} == 1" >
+        <a th:href="${type.jumpLink}">
+            <img th:src="${type.headAppBanner}" style="width: 100%;height: 100%;" />
+        </a>
     </div>
     <div class="sider-banner">
-        <div th:each="type: ${articleImages}" th:if="${type.levelType} == 2" th:onclick="|trumpLink(${type.jumpLink})|">
-            <img th:src="${type.headAppBanner}" style="width: 100%;height: 100%;" />
+        <div th:each="type: ${articleImages}" th:if="${type.levelType} == 2" >
+            <a th:href="${type.jumpLink}">
+                <img th:src="${type.headAppBanner}" style="width: 100%;height: 100%;" />
+            </a>
         </div>
     </div>
 </div>
-<div class="tip-bar">
-    <!--<div class="tip">提示:产品详情请到采美商城搜索</div> -->
-    <!--面包屑-->
-    <div th:if="${typeId}>0" class="bar">
-        <a href="/" target="_blank">首页</a>&gt; <a  th:each="type: ${articleType}" th:if="${typeId}==${type.id}" th:text="${type.name}" href="javascript:void(0);" class="title newTitle"></a>
-    </div>
-</div>
 <!--主体内容-->
 <div class="content clearfix" id="ArticleContent">
     <!--侧边栏Ross广告图-->
@@ -213,15 +221,6 @@
     </div>
 </div>
 
-<script type="text/javascript">
-const trumpLink = (jumpLink) => {
-    console.log(jumpLink)
-    if (jumpLink) {
-        window.location.href = jumpLink
-    }
-}
-</script>
-
 <template th:replace="article/components/article-drawer"></template>
 <template th:replace="article/components/article-footer"></template>
 <template th:replace="components/foot-link"></template>