Ver código fonte

美博会bugfix

chao 3 anos atrás
pai
commit
dec26daf2a

+ 3 - 1
src/main/resources/templates/product/instruelist.html

@@ -157,7 +157,9 @@
                         <a class="image" th:href="'/product-'+ *{productId} +'.html'">
                             <img src="/img/base/placeholder.png"  th:attr="data-original=*{image}" th:alt="*{name}">
                             <p class="name">
-                                <span th:if="*{beautyActFlag}==1" class="tag">美博会</span>
+                                <th:block th:if="${product.containsKey('beautyActFlag')}">
+                                    <span th:if="*{beautyActFlag}==1" class="tag">美博会</span>
+                                </th:block>
                                 <th:block th:text="*{name}"></th:block>
                             </p>
                             <div class="price">