소스 검색

供应商主页图片为空显示

Administrator 4 년 전
부모
커밋
cff0afc49d
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      src/main/resources/templates/supplier/index.html

+ 5 - 3
src/main/resources/templates/supplier/index.html

@@ -177,9 +177,10 @@
                 <div class="part">
                     <div class="title">营业执照</div>
                     <div class="photo">
-                        <a th:href="${supplier.businessLicense}" target="_blank" >
+                        <a th:href="${supplier.businessLicense}" target="_blank" th:if="not${#strings.isEmpty(supplier.businessLicense)}">
                             <img th:src="${supplier.businessLicense}">
                         </a>
+                        <div class="cont" th:if="${#strings.isEmpty(supplier.businessLicense)}">暂无</div>
                     </div>
                 </div>
                 <div class="part" >
@@ -188,15 +189,16 @@
                         <a th:href="${supplier.taxCertificate}" target="_blank" th:if="not${#strings.isEmpty(supplier.taxCertificate)}">
                             <img th:src="${supplier.taxCertificate}">
                         </a>
-                         <div th:if="${#strings.isEmpty(supplier.taxCertificate)}">暂无</div>
+                         <div class="cont" th:if="${#strings.isEmpty(supplier.taxCertificate)}">暂无</div>
                     </div>
                 </div>
                 <div class="part" >
                     <div class="title">授权牌照</div>
                     <div class="photo">
-                        <a th:href="${supplier.license}" target="_blank">
+                        <a th:href="${supplier.license}" target="_blank" th:if="not${#strings.isEmpty(supplier.license)}">
                             <img th:src="${supplier.license}">
                         </a>
+                        <div class="cont" th:if="${#strings.isEmpty(supplier.license)}">暂无</div>
                     </div>
                 </div>
             </div>