瀏覽代碼

授权牌照

chao 4 年之前
父節點
當前提交
efa9ec1f11

+ 1 - 0
src/main/java/com/caimei/www/pojo/page/ProductDetail.java

@@ -42,6 +42,7 @@ public class ProductDetail extends ProductList {
     private Integer shopId;
 	private String shopTitle;
 	private String businessScope;
+	private String license;
 	private String shopAddress;
 	/** 活动状态:1有效,0失效 */
 	private Integer activityFlag;

+ 1 - 1
src/main/java/com/caimei/www/pojo/page/SupplierDetail.java

@@ -31,7 +31,7 @@ public class SupplierDetail implements Serializable {
     /** 税务登记证 */
     private String taxCertificate;
     /** 供应商授权采美代理证书 */
-    private String certificate;
+    private String license;
     /** 介绍 */
     private String info;
     /** 主打产品说明 */

+ 1 - 0
src/main/resources/mapper/ProductMapper.xml

@@ -35,6 +35,7 @@
 			p.shopID as shopId,
 			sh.name as shopTitle,
 			sh.businessScope as businessScope,
+			sh.authorizationCertificateImage as license,
 			CONCAT(pr.name, ci.name) as shopAddress
 
 

+ 1 - 1
src/main/resources/mapper/SupplierMapper.xml

@@ -12,7 +12,7 @@
             s.businessScope,
             s.businessLicenseImage as businessLicense,
             s.taxCertificateImage as taxCertificate,
-            s.authorizationCertificateImage as certificate,
+            s.authorizationCertificateImage as license,
             s.info,
             s.productDesc,
             s.site

+ 1 - 1
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 class="mIcon shop"></i></span>
+                <span class="name"><em th:text="${product.shopTitle}"></em><i v-if="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>

+ 4 - 4
src/main/resources/templates/supplier/index.html

@@ -27,7 +27,7 @@
         <div class="title">
             <img th:src="${supplier.logo}">
             <h1 th:text="${supplier.name}"></h1>
-            <a href="javascript:void(0);"><i class="icon mIcon shop"><em class="tips">点击查看授权牌照</em></i></a>
+            <a th:if="not${#strings.isEmpty(supplier.license)}" th:href="${supplier.license}" target="_blank"><i class="icon mIcon shop"><em class="tips">点击查看授权牌照</em></i></a>
         </div>
         <div class="search">
             <input class="keyword" v-model.trim="params.keyword" type="text" placeholder="请输入商品名称(商铺内商品)">
@@ -181,11 +181,11 @@
                         </a>
                     </div>
                 </div>
-                <div class="part" th:if="not${#strings.isEmpty(supplier.certificate)}">
+                <div class="part" th:if="not${#strings.isEmpty(supplier.license)}">
                     <div class="title">授权牌照</div>
                     <div class="photo">
-                        <a th:href="${supplier.certificate}" target="_blank">
-                            <img th:src="${supplier.certificate}">
+                        <a th:href="${supplier.license}" target="_blank">
+                            <img th:src="${supplier.license}">
                         </a>
                     </div>
                 </div>