Selaa lähdekoodia

采美百科bug修改

yuwenjun1997 2 vuotta sitten
vanhempi
commit
a535a73017

+ 21 - 23
src/main/resources/templates/encyclopedia/instrument-detail.html

@@ -273,31 +273,29 @@
             <!-- <div class="line"></div> -->
         </div>
         <div class="content">
-            <block th:each="recommend,stat : *{recommendList}">
-                <a class="recommend-section" th:href="${ 'product-' +  recommend.productId + '.html'} ">
-                    <div class="cover">
-                        <img th:src="${recommend.image}" th:alt="${recommend.name}"/>
+            <a class="recommend-section" th:href="${ 'product-' +  recommend.productId + '.html'} " th:each="recommend,stat : *{recommendList}">
+                <div class="cover">
+                    <img th:src="${recommend.image}" th:alt="${recommend.name}"/>
+                </div>
+                <div class="content">
+                    <h3 th:text="${recommend.name}"></h3>
+                    <div class="title" th:text="${recommend.discription}"></div>
+                    <div class="question">
+                        <p th:each="question : ${recommend.questionList}" th:text="${question}"></p>
                     </div>
-                    <div class="content">
-                        <h3 th:text="${recommend.name}"></h3>
-                        <div class="title" th:text="${recommend.discription}"></div>
-                        <div class="question">
-                            <p th:each="question : ${recommend.questionList}" th:text="${question}"></p>
-                        </div>
-                        <div class="tag-list">
-                            <span class="tag">常见问题</span>
-                            <span class="tag">效果展示</span>
-                            <span class="tag">技术原理</span>
-                            <span class="tag">术前术后</span>
-                        </div>
-                        <div class="dashed-line"></div>
-                        <footer class="footer">
-                            <time>日期:<span th:text="${recommend.publishTime}"></span></time>
-                            <span>浏览量:<span th:text="${recommend.pv lt 10000 ? recommend.pv : '9999+'}"></span></span>
-                        </footer>
+                    <div class="tag-list">
+                        <span class="tag">常见问题</span>
+                        <span class="tag">效果展示</span>
+                        <span class="tag">技术原理</span>
+                        <span class="tag">术前术后</span>
                     </div>
-                </a>
-            </block>
+                    <div class="dashed-line"></div>
+                    <footer class="footer">
+                        <time>日期:<span th:text="${recommend.publishTime}"></span></time>
+                        <span>浏览量:<span th:text="${recommend.pv lt 10000 ? recommend.pv : '9999+'}"></span></span>
+                    </footer>
+                </div>
+            </a>
         </div>
     </section>
 </article>

+ 21 - 23
src/main/resources/templates/encyclopedia/product-detail.html

@@ -254,31 +254,29 @@
             <!-- <div class="line"></div> -->
         </div>
         <div class="content">
-            <block th:each="recommend,stat : *{recommendList}">
-                <a class="recommend-section" th:href="${ 'product-' +  recommend.productId + '.html'} ">
-                    <div class="cover">
-                        <img th:src="${recommend.image}" th:alt="${recommend.name}"/>
+            <a class="recommend-section" th:href="${ 'product-' +  recommend.productId + '.html'} " th:each="recommend,stat : *{recommendList}">
+                <div class="cover">
+                    <img th:src="${recommend.image}" th:alt="${recommend.name}"/>
+                </div>
+                <div class="content">
+                    <h3 th:text="${recommend.name}"></h3>
+                    <div class="title" th:text="${recommend.discription}"></div>
+                    <div class="question">
+                        <p th:each="question : ${recommend.questionList}" th:text="${question}"></p>
                     </div>
-                    <div class="content">
-                        <h3 th:text="${recommend.name}"></h3>
-                        <div class="title" th:text="${recommend.discription}"></div>
-                        <div class="question">
-                            <p th:each="question : ${recommend.questionList}" th:text="${question}"></p>
-                        </div>
-                        <div class="tag-list">
-                            <span class="tag">常见问题</span>
-                            <span class="tag">效果展示</span>
-                            <span class="tag">技术原理</span>
-                            <span class="tag">术前术后</span>
-                        </div>
-                        <div class="dashed-line"></div>
-                        <footer class="footer">
-                            <time>日期:<span th:text="${recommend.publishTime}"></span></time>
-                            <span>浏览量:<span th:text="${recommend.pv lt 10000 ? recommend.pv : '9999+'}"></span></span>
-                        </footer>
+                    <div class="tag-list">
+                        <span class="tag">常见问题</span>
+                        <span class="tag">效果展示</span>
+                        <span class="tag">技术原理</span>
+                        <span class="tag">术前术后</span>
                     </div>
-                </a>
-            </block>
+                    <div class="dashed-line"></div>
+                    <footer class="footer">
+                        <time>日期:<span th:text="${recommend.publishTime}"></span></time>
+                        <span>浏览量:<span th:text="${recommend.pv lt 10000 ? recommend.pv : '9999+'}"></span></span>
+                    </footer>
+                </div>
+            </a>
         </div>
     </section>