|
@@ -10,12 +10,12 @@
|
|
|
<div class="cm-modal"></div>
|
|
|
<!--导航栏-->
|
|
|
<template th:replace="article/components/article-header"></template>
|
|
|
-<div class="info-banner" id="Info-Banner" th:if="${isSearch}">
|
|
|
- <div class="banner" th:each="type: ${articleImages}" th:if="${type.levelType} == 1">
|
|
|
+<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>
|
|
|
<div class="sider-banner">
|
|
|
- <div th:each="type: ${articleImages}" th:if="${type.levelType} == 2">
|
|
|
+ <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>
|
|
|
</div>
|
|
@@ -35,6 +35,16 @@
|
|
|
</div>
|
|
|
</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>
|
|
|
+ <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>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
<div class="tip-bar">
|
|
|
<!--<div class="tip">提示:产品详情请到采美商城搜索</div> -->
|
|
|
<!--面包屑-->
|
|
@@ -199,6 +209,15 @@
|
|
|
</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>
|