Sfoglia il codice sorgente

解决商户信息审核-入驻审核、商户信息审核中,查看商家详情,营业执照,企业宣传图片不展示问题

kouchengxing 4 anni fa
parent
commit
8963b8b44e

+ 3 - 0
dgtly-admin/src/main/java/com/dgtly/web/controller/company/CompanyController.java

@@ -155,6 +155,9 @@ public class CompanyController extends BaseController
     {
         CompanyReviewed companyReviewed = companyReviewedService.selectCompanyReviewedById(id);
         mmap.put("companyReviewed", companyReviewed);
+        mmap.put("businessLicenseUrls", companyReviewed.getBusinessLicenseUrl().split(","));
+        mmap.put("propagandaImgUrls", companyReviewed.getPropagandaImgUrl().split(","));
+
         return prefix + "/enterexamine/approve";
     }
 

+ 10 - 6
dgtly-admin/src/main/resources/templates/company/enterexamine/approve.html

@@ -122,9 +122,11 @@
                         <label class="col-sm-4 control-label">营业执照:</label>
                         <div class="col-sm-8">
                             <div class="fileinput fileinput-new">
-                                <div class="fileinput-new thumbnail"
-                                     style="width: 140px; height: 140px;" onclick="openImg(this)">
-                                    <img th:src="@{*{businessLicenseUrl}}" id="img-businessLicenseUrl" style=" width: 100%; height: 100%;">
+                                <div class="row" style="margin-left: 0px;">
+                                    <div class="fileinput-new thumbnail col-sm-6"
+                                         style="width: 140px; height: 140px;" onclick="openImg(this)" th:each="item,it:${businessLicenseUrls}">
+                                        <img th:src="${item}" id="img-businessLicenseUrl" style=" width: 100%; height: 100%;">
+                                    </div>
                                 </div>
                             </div>
                         </div>
@@ -151,9 +153,11 @@
                     <label class="col-sm-4 control-label">企业宣传图片:</label>
                     <div class="col-sm-8">
                         <div class="fileinput fileinput-new">
-                            <div class="fileinput-new thumbnail"
-                                 style="width: 140px; height: 140px;" onclick="openImg(this)">
-                                <img th:src="@{*{propagandaImgUrl}}" id="img-propagandaImgUrl" style=" width: 100%; height: 100%;">
+                            <div class="row" style="margin-left: 0px;">
+                                <div class="fileinput-new thumbnail col-sm-6"
+                                     style="width: 140px; height: 140px;" onclick="openImg(this)" th:each="item,it:${propagandaImgUrls}">
+                                    <img th:src="${item}" id="img-propagandaImgUrl" style=" width: 100%; height: 100%;">
+                                </div>
                             </div>
                         </div>
                     </div>