xiebaomin 1 سال پیش
والد
کامیت
9ba3425f09

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

@@ -142,7 +142,7 @@ dl,dd,dt{zoom:1}
 	.footer p span a{color: #FFFFFF;}
 	.footer p span a:hover{color: #E15621;}
 	.footer p span img.icp{width: 18px;height: 18px;display: inline-block;}
-	.tip-bar{padding: 16px 0;}
+	.tip-bar{padding-top: 16px;}
 	.bar,.tip{width:1185px;margin:0 auto;padding-bottom:5px}
 	.tip{color: #777;}
 	.bar a{color:#777;font-size:14px}

+ 1 - 1
src/main/resources/static/css/article/drawer-footer.css

@@ -98,7 +98,7 @@
 .advertisement .advertisement-link img {
     width: 100%;
     height: 100%;
-    object-fit: cover;
+    object-fit: contain;
 }
 @keyframes AdvsFrames {
     0% {

+ 3 - 3
src/main/resources/templates/article/components/article-drawer.html

@@ -9,7 +9,7 @@
 <input type="hidden" th:value="${coreServer}" id="coreServer">
 <input type="hidden" th:value="${agent}" id="userAgent">
   <div id="drawer-footer">
-    <div class="hot-recommend">
+    <div class="hot-recommend" v-if="recommend.list.length > 0">
       <div class="hot-recommend-title">
         <div>热门推荐</div>
         <div>
@@ -31,7 +31,7 @@
         </div>
       </div>
     </div>
-    <div class="hot-recommend">
+    <div class="hot-recommend" th:if="${productSellNumbers}">
       <div class="hot-recommend-title">
         <div>你可能感兴趣的商品</div>
         <div>
@@ -49,7 +49,7 @@
         </div>
       </div>
     </div>
-    <div class="hot-recommend">
+    <div class="hot-recommend" th:if="${archiveFiles}">
       <div class="hot-recommend-title">
         <div>您可能感兴趣的美业资料</div>
         <div>

+ 1 - 1
src/main/resources/templates/article/components/article-sidebar.html

@@ -4,7 +4,7 @@
 <!--    <div v-if="isPC && isRossShow" class="article-right-ross" :class="isRossShow ? 'show' : 'none'">-->
 <!--        <a href="/supplier-1378.html" v-if="isPC"><img src="/img/ross/ross-image@1x.jpg" alt="深圳艾斯佰丽生物科技有限公司"></a>-->
 <!--    </div>-->
-    <div v-if="isPC" class="recommend">
+    <div v-if="isPC && recommend.list.length > 0" class="recommend">
         <p class="classify readerSify">
             热门推荐
             <span class="nextPreBtn">

+ 2 - 2
src/main/resources/templates/article/list.html

@@ -17,8 +17,8 @@
         <a href="/" target="_blank">首页 &gt; </a>
         <a th:each="type: ${articleType}" th:if="${typeId}==${type.id}" th:text="${type.name}" href="javascript:void(0);" class="title newTitle"></a>
         <span th:each="type: ${articleType}">
-            <a th:text="${type.name}" href="javascript:void(0);" class="title newTitle"></a>
-            <span th:each="childLink: ${type.linkList}">
+            <span th:each="childLink: ${type.linkList}" th:if="${typeId}==${childLink.id}">
+                <a th:text="${type.name}" href="javascript:void(0);" class="title newTitle"></a>
                 <a th:if="${typeId}==${childLink.id}" href="javascript:void(0);" class="title newTitle" th:text="'>' + ${childLink.name}"></a>
             </span>
         </span>