瀏覽代碼

医疗器械标签

zhengjinyi 3 年之前
父節點
當前提交
cbf627a3c2
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 3 1
      src/main/resources/templates/index.html
  2. 3 1
      src/main/resources/templates/product/instrument.html

+ 3 - 1
src/main/resources/templates/index.html

@@ -319,7 +319,9 @@
                                         <th:block th:each="pros : ${floor.get('floorImageList')}"  th:object="${pros}">
                                             <a th:href="*{link}" class="page_main_item ad_04 swiper-slide" target="_blank">
                                                 <img class="page_main_image" src="/img/base/placeholder.png" th:attr="data-original=*{image}" th:alt="*{name}">
-                                                <div class="page_main_type" th:if="*{productType}== 2">医疗器械</div>
+                                                <th:block th:if="${pros.get('product')}!=null" th:object="${pros.get('product')}">
+                                                    <div class="page_main_type" th:if="*{productType}==2">医疗器械</div>
+                                                </th:block>
                                                 <div class="page_main_tag" th:if="*{listType}==2"><p th:text="*{label}"></p></div>
                                                 <div class="page_main_text">
                                                     <th:block th:if="${pros.containsKey('product')}">

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

@@ -244,7 +244,9 @@
                                     <th:block th:each="pros : ${floor.get('floorImageList')}"  th:object="${pros}">
                                         <a th:href="*{link}" class="page_main_item ad_04 swiper-slide" target="_blank">
                                             <img class="page_main_image" src="/img/base/placeholder.png" th:attr="data-original=*{image}" th:alt="*{name}">
-                                            <div class="page_main_type" th:if="*{productType}== 2">医疗器械</div>
+                                            <th:block th:if="${pros.get('product')}!=null" th:object="${pros.get('product')}">
+                                                <div class="page_main_type" th:if="*{productType}==2">医疗器械</div>
+                                            </th:block>
                                             <div class="page_main_tag" th:if="*{listType}==2"><p th:text="*{label}"></p></div>
                                             <div class="page_main_text">
                                                 <th:block th:if="${pros.containsKey('product')}">