소스 검색

美博会bugfix

chao 3 년 전
부모
커밋
dec26daf2a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/main/resources/templates/product/instruelist.html

+ 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">