chao 4 роки тому
батько
коміт
5603433572
1 змінених файлів з 4 додано та 2 видалено
  1. 4 2
      src/main/resources/templates/product/detail.html

+ 4 - 2
src/main/resources/templates/product/detail.html

@@ -197,7 +197,7 @@
     <div class="wrap clear">
         <div v-if="!isPC" class="mShopBox">
             <a th:href="@{'/supplier/index.html?id=' + ${product.shopId}}">
-                <span class="name"><em th:text="${product.shopTitle}"></em><i v-if="product.license" class="icon mIcon shop"></i></span>
+                <span class="name"><em th:text="${product.shopTitle}"></em><i th:if="not${#strings.isEmpty(product.license)}" class="icon mIcon shop"></i></span>
                 <span>经营范围:<em th:text="${product.businessScope}"></em></span>
                 <span>所在地区:<em th:text="${product.shopAddress}"></em></span>
                 <span>满意度:<em><i th:each="i:${#numbers.sequence(1,5)}" class="mIcon heart"></i></em></span>
@@ -244,7 +244,9 @@
             <div class="shopBox">
                 <div class="hd">供应商信息</div>
                 <div class="bd">
-                    <div class="name"><span th:text="${product.shopTitle}"></span><i class="icon shop"></i></div>
+                    <a th:href="@{'/supplier/index.html?id=' + ${product.shopId}}">
+                        <div class="name"><span th:text="${product.shopTitle}"></span><i th:if="not${#strings.isEmpty(product.license)}" class="icon shop"></i></div>
+                    </a>
                     <div class="tit">经营范围:</div>
                     <div class="con" th:text="${product.businessScope}"></div>
                     <div class="tit">所在地区:</div>