sugangqiang 2 years ago
parent
commit
691c54f35f

+ 12 - 12
app/admin/view/enterprise_change_record/goto_enterprise_change_detail_page.html

@@ -89,7 +89,7 @@
                                         {if condition="$ecr['oldImgurl_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldImgurl|getStoragePath}" style="max-width:100px;">
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;">
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;">
                                         {/if}
                                     </li>
                                     {else/}
@@ -98,7 +98,7 @@
                                         {if condition="$ecr['oldImgurl_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldImgurl|getStoragePath}" style="max-width:100px;"><i class="old">旧</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;"><i class="old">旧</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;"><i class="old">旧</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -107,7 +107,7 @@
                                         {if condition="$ecr['newImgurl_is_img'] eq 1"}
                                         <img src="{$ecr.newImgurl|getStoragePath}" onclick="Feng.showImg(this)" style="max-width:100px;"/><i class="new">新</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.newImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;"><i class="new">新</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;"><i class="new">新</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -156,7 +156,7 @@
                                         {if condition="$ecr['oldBankImg_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldBankImg|getStoragePath}" style="max-width:100px;">
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;">
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;">
                                         {/if}
                                     </li>
                                     {else/}
@@ -165,7 +165,7 @@
                                         {if condition="$ecr['oldBankImg_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldBankImg|getStoragePath}" style="max-width:100px;"><i class="old">旧</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;"><i class="old">旧</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;"><i class="old">旧</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -174,7 +174,7 @@
                                         {if condition="$ecr['newBankImg_is_img'] eq 1"}
                                         <img src="{$ecr.newBankImg|getStoragePath}" onclick="Feng.showImg(this)" style="max-width:100px;"/><i class="new">新</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.newBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;"><i class="new">新</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;"><i class="new">新</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -237,7 +237,7 @@
                                         {if condition="$ecr['oldDomainImg_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldDomainImg|getStoragePath}" style="max-width:100px;">
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;">
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;">
                                         {/if}
                                     </li>
                                     {else/}
@@ -246,7 +246,7 @@
                                         {if condition="$ecr['oldDomainImg_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldDomainImg|getStoragePath}" style="max-width:100px;"><i class="old">旧</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;"><i class="old">旧</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;"><i class="old">旧</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -255,7 +255,7 @@
                                         {if condition="$ecr['newDomainImg_is_img'] eq 1"}
                                         <img src="{$ecr.newDomainImg|getStoragePath}" onclick="Feng.showImg(this)" style="max-width:100px;"/><i class="new">新</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.newDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;"><i class="new">新</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;"><i class="new">新</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -299,7 +299,7 @@
                                         {if condition="$ecr['oldBeian_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldBeian|getStoragePath}" style="max-width:100px;">
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-width:100px;">
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-width:100px;">
                                         {/if}
                                     </li>
                                     {else/}
@@ -308,7 +308,7 @@
                                         {if condition="$ecr['oldBeian_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldBeian|getStoragePath}" style="max-width:100px;"><i class="old">旧</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-width:100px;"><i class="old">旧</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-width:100px;"><i class="old">旧</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -317,7 +317,7 @@
                                         {if condition="$ecr['newBeian_is_img'] eq 1"}
                                         <img src="{$ecr.newBeian|getStoragePath}" onclick="Feng.showImg(this)" style="max-width:100px;"/><i class="new">新</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.newBeian|getStoragePath}', 'beian')" style="max-width:100px;"><i class="new">新</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newBeian|getStoragePath}', 'beian')" style="max-width:100px;"><i class="new">新</i>
                                         {/if}
                                     </li>
                                     {/if}

+ 2 - 2
app/common/validate/Upload.php

@@ -6,7 +6,7 @@ use think\Validate;
 class Upload extends Validate
 {
     protected $rule = [
-        'image' => ['fileExt' => 'jpg,png,gif,jpeg', 'fileSize' => 5 * 1024 * 1024, 'fileMime' => 'image/jpg,image/png,image/gif,image/jpeg'],
+        'image' => ['fileExt' => 'jpg,png,gif,jpeg', 'fileSize' => 10 * 1024 * 1024, 'fileMime' => 'image/jpg,image/png,image/gif,image/jpeg'],
         'file' => ['fileExt' => 'pdf,doc,docx,xlsx,xls,csv', 'fileSize' => 10 * 1024 * 1024,'fileMime' => 'application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
         'hybrid' => ['fileExt' => 'zip,rar,7z', 'fileSize' => 10 * 1024 * 1024, 'fileMime' => 'application/zip,application/x-rar-compressed,application/x-7z-compressed'],
         'system' => ['fileExt' => 'jpg,png,gif,jpeg,pdf,doc,docx,xlsx,xls,csv', 'fileSize' => 10 * 1024 * 1024, 'fileMime' => 'image/jpg,image/png,image/gif,image/jpeg,application/pdf,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']
@@ -14,7 +14,7 @@ class Upload extends Validate
 
     protected $message = [
         'image.fileExt' => '图片的格式仅支持:png,jpg,jpeg,gif',
-        'image.fileSize' => '图片大小不能大于5兆',
+        'image.fileSize' => '图片大小不能大于10兆',
         'image.fileMime' => '图片的文件类型不正确',
         'file.fileExt' => '文件的格式支持:pdf,doc,docx,xlsx,xls,csv',
         'file.fileSize' => '文件大小不能大于10兆',

+ 4 - 4
app/common/view/auth/enterprise_edit.html

@@ -49,7 +49,7 @@
                                                 {if condition="$ep['imgurl_is_img'] eq 1"}
                                                 <img src="{$ep.imgurl|getStoragePath}" style="height: 60px;" onclick="$('#imgurl').click()">
                                                 {else/}
-                                                <img src="/static/img/File.png" style="height: 60px;" onclick="$('#imgurl').click()">
+                                                <img src="/static/img/Pdf.png" style="height: 60px;" onclick="$('#imgurl').click()">
                                                 {/if}
                                                 {else/}
                                                 <img src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#imgurl').click()" >
@@ -122,7 +122,7 @@
                                                 {if condition="$ep['bankImg_is_img'] eq 1"}
                                                 <img src="{$ep.bankImg|getStoragePath}" style="height: 60px;" onclick="$('#bankImg').click()">
                                                 {else/}
-                                                <img src="/static/img/File.png" style="height: 60px;" onclick="$('#bankImg').click()">
+                                                <img src="/static/img/Pdf.png" style="height: 60px;" onclick="$('#bankImg').click()">
                                                 {/if}
                                                 {else/}
                                                 <img src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#bankImg').click()" >
@@ -172,7 +172,7 @@
                                                     {if condition="$ep['domainImg_is_img'] eq 1"}
                                                     <img src="{$ep.domainImg|getStoragePath}" style="height: 60px;" onclick="$('#domainImg').click()">
                                                     {else/}
-                                                    <img src="/static/img/File.png" style="height: 60px;" onclick="$('#domainImg').click()">
+                                                    <img src="/static/img/Pdf.png" style="height: 60px;" onclick="$('#domainImg').click()">
                                                     {/if}
                                                     {else/}
                                                     <img src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#domainImg').click()" >
@@ -223,7 +223,7 @@
                                                 {if condition="$ep['beian_is_img'] eq 1"}
                                                 <img src="{$ep.beian|getStoragePath}" style="height: 60px;" onclick="$('#beian').click()">
                                                 {else/}
-                                                <img src="/static/img/File.png" style="height: 60px;" onclick="$('#beian').click()">
+                                                <img src="/static/img/Pdf.png" style="height: 60px;" onclick="$('#beian').click()">
                                                 {/if}
                                                 {else/}
                                                 <img src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#beian').click()" >

+ 4 - 4
app/enterprise/view/api/to_add.html

@@ -65,7 +65,7 @@
                                     {eq name="ecr.imgurl_is_img" value="1"}
                                     <img src="{$ecr.imgurl|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)">
                                     {else/}
-                                    <img src="/static/img/File.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.imgurl|getStoragePath}', 'imgurl')">
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.imgurl|getStoragePath}', 'imgurl')">
                                     {/eq}
                                     {else/}
                                     <img src="/static/img/yyzz.png" style="height: 60px;">
@@ -119,7 +119,7 @@
                                     {eq name="ecr.bankImg_is_img" value="1"}
                                     <img src="{$ecr.bankImg|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
                                     {else/}
-                                    <img src="/static/img/File.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.bankImg|getStoragePath}', 'bankImg')">
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.bankImg|getStoragePath}', 'bankImg')">
                                     {/eq}
                                     {else/}
                                     <img src="/static/img/yyzz.png" style="height: 60px;">
@@ -172,7 +172,7 @@
                                         {eq name="ecr.domainImg_is_img" value="1"}
                                         <img src="{$ecr.domainImg|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
                                         {else/}
-                                        <img src="/static/img/File.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.domainImg|getStoragePath}', 'domainImg')">
+                                        <img src="/static/img/Pdf.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.domainImg|getStoragePath}', 'domainImg')">
                                         {/eq}
                                         {else/}
                                         <img src="/static/img/yyzz.png" style="height: 60px;">
@@ -232,7 +232,7 @@
                                     {eq name="ecr.beian_is_img" value="1"}
                                     <img src="{$ecr.beian|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
                                     {else/}
-                                    <img src="/static/img/File.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.beian|getStoragePath}', 'beian')">
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.beian|getStoragePath}', 'beian')">
                                     {/eq}
                                     {else/}
                                     <img src="/static/img/yyzz.png" style="height: 60px;">

+ 12 - 12
app/enterprise/view/api/to_detail.html

@@ -89,7 +89,7 @@
                                         {if condition="$ecr['oldImgurl_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldImgurl|getStoragePath}" style="max-width:100px;">
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;">
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;">
                                         {/if}
                                     </li>
                                     {else/}
@@ -98,7 +98,7 @@
                                         {if condition="$ecr['oldImgurl_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldImgurl|getStoragePath}" style="max-width:100px;"><i class="old">旧</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;"><i class="old">旧</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;"><i class="old">旧</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -107,7 +107,7 @@
                                         {if condition="$ecr['newImgurl_is_img'] eq 1"}
                                         <img src="{$ecr.newImgurl|getStoragePath}" onclick="Feng.showImg(this)" style="max-width:100px;"/><i class="new">新</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.newImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;"><i class="new">新</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newImgurl|getStoragePath}', 'imgurl')" style="max-width:100px;"><i class="new">新</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -156,7 +156,7 @@
                                         {if condition="$ecr['oldBankImg_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldBankImg|getStoragePath}" style="max-width:100px;">
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;">
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;">
                                         {/if}
                                     </li>
                                     {else/}
@@ -165,7 +165,7 @@
                                         {if condition="$ecr['oldBankImg_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldBankImg|getStoragePath}" style="max-width:100px;"><i class="old">旧</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;"><i class="old">旧</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;"><i class="old">旧</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -174,7 +174,7 @@
                                         {if condition="$ecr['newBankImg_is_img'] eq 1"}
                                         <img src="{$ecr.newBankImg|getStoragePath}" onclick="Feng.showImg(this)" style="max-width:100px;"/><i class="new">新</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.newBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;"><i class="new">新</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newBankImg|getStoragePath}', 'bankImg')" style="max-width:100px;"><i class="new">新</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -237,7 +237,7 @@
                                         {if condition="$ecr['oldDomainImg_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldDomainImg|getStoragePath}" style="max-width:100px;">
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;">
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;">
                                         {/if}
                                     </li>
                                     {else/}
@@ -246,7 +246,7 @@
                                         {if condition="$ecr['oldDomainImg_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldDomainImg|getStoragePath}" style="max-width:100px;"><i class="old">旧</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;"><i class="old">旧</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;"><i class="old">旧</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -255,7 +255,7 @@
                                         {if condition="$ecr['newDomainImg_is_img'] eq 1"}
                                         <img src="{$ecr.newDomainImg|getStoragePath}" onclick="Feng.showImg(this)" style="max-width:100px;"/><i class="new">新</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.newDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;"><i class="new">新</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newDomainImg|getStoragePath}', 'domainImg')" style="max-width:100px;"><i class="new">新</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -299,7 +299,7 @@
                                         {if condition="$ecr['oldBeian_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldBeian|getStoragePath}" style="max-width:100px;">
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-width:100px;">
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-width:100px;">
                                         {/if}
                                     </li>
                                     {else/}
@@ -308,7 +308,7 @@
                                         {if condition="$ecr['oldBeian_is_img'] eq 1"}
                                         <img onclick="Feng.showImg(this)" src="{$ecr.oldBeian|getStoragePath}" style="max-width:100px;"><i class="old">旧</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-width:100px;"><i class="old">旧</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.oldBeian|getStoragePath}', 'beian')" style="max-width:100px;"><i class="old">旧</i>
                                         {/if}
                                     </li>
                                     {/if}
@@ -317,7 +317,7 @@
                                         {if condition="$ecr['newBeian_is_img'] eq 1"}
                                         <img src="{$ecr.newBeian|getStoragePath}" onclick="Feng.showImg(this)" style="max-width:100px;"/><i class="new">新</i>
                                         {else/}
-                                        <img src="/static/img/File.png" onclick="Feng.showPdf('{$ecr.newBeian|getStoragePath}', 'beian')" style="max-width:100px;"><i class="new">新</i>
+                                        <img src="/static/img/Pdf.png" onclick="Feng.showPdf('{$ecr.newBeian|getStoragePath}', 'beian')" style="max-width:100px;"><i class="new">新</i>
                                         {/if}
                                     </li>
                                     {/if}

+ 4 - 4
app/enterprise/view/api/to_update.html

@@ -68,7 +68,7 @@
                                     {eq name="ecr.imgurl_is_img" value="1"}
                                     <img src="{$ecr.newImgurl|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)">
                                     {else/}
-                                    <img src="/static/img/File.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.newImgurl|getStoragePath}', 'imgurl')">
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.newImgurl|getStoragePath}', 'imgurl')">
                                     {/eq}
                                     {else/}
                                     <img src="/static/img/yyzz.png" style="height: 60px;">
@@ -122,7 +122,7 @@
                                     {eq name="ecr.bankImg_is_img" value="1"}
                                     <img src="{$ecr.newBankImg|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
                                     {else/}
-                                    <img src="/static/img/File.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.newBankImg|getStoragePath}', 'bankImg')">
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.newBankImg|getStoragePath}', 'bankImg')">
                                     {/eq}
                                     {else/}
                                     <img src="/static/img/yyzz.png" style="height: 60px;">
@@ -175,7 +175,7 @@
                                         {eq name="ecr.domainImg_is_img" value="1"}
                                         <img src="{$ecr.newDomainImg|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
                                         {else/}
-                                        <img src="/static/img/File.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.newDomainImg|getStoragePath}', 'domainImg')">
+                                        <img src="/static/img/Pdf.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.newDomainImg|getStoragePath}', 'domainImg')">
                                         {/eq}
                                         {else/}
                                         <img src="/static/img/yyzz.png" style="height: 60px;">
@@ -235,7 +235,7 @@
                                     {eq name="ecr.beian_is_img" value="1"}
                                     <img src="{$ecr.newBeian|getStoragePath}" style="height: 60px;" onclick="Feng.showImg(this)" >
                                     {else/}
-                                    <img src="/static/img/File.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.newBeian|getStoragePath}', 'beian')">
+                                    <img src="/static/img/Pdf.png" style="height: 60px;" onclick="Feng.showPdf('{$ecr.newBeian|getStoragePath}', 'beian')">
                                     {/eq}
                                     {else/}
                                     <img src="/static/img/yyzz.png" style="height: 60px;">

+ 4 - 4
app/enterprise/view/index/center_page.html

@@ -67,7 +67,7 @@
                                                         {if condition="$ep['imgurl_is_img'] eq 1"}
                                                         <img onclick="Feng.showImg(this)" id="yyzz" src="{$ep.imgurl|getStoragePath}" style="max-width: 100px;">
                                                         {else/}
-                                                        <img onclick="Feng.showPdf('{$ep.imgurl|getStoragePath}', 'imgurl')" src="/static/img/File.png" style="max-width: 100px;">
+                                                        <img onclick="Feng.showPdf('{$ep.imgurl|getStoragePath}', 'imgurl')" src="/static/img/Pdf.png" style="max-width: 100px;">
                                                         {/if}
                                                         {/if}
                                                     </td>
@@ -128,7 +128,7 @@
                                                         {if condition="$ep['bankImg_is_img'] eq 1"}
                                                         <img onclick="Feng.showImg(this)" id="bankImg" src="{$ep.bankImg|getStoragePath}" style="max-width: 100px;">
                                                         {else/}
-                                                        <img onclick="Feng.showPdf('{$ep.bankImg|getStoragePath}', 'bankImg')" src="/static/img/File.png" style="max-width: 100px;">
+                                                        <img onclick="Feng.showPdf('{$ep.bankImg|getStoragePath}', 'bankImg')" src="/static/img/Pdf.png" style="max-width: 100px;">
                                                         {/if}
                                                         {/if}
                                                     </td>
@@ -180,7 +180,7 @@
                                                         {if condition="$ep['domainImg_is_img'] eq 1"}
                                                         <img onclick="Feng.showImg(this)" id="domainImg" src="{$ep.domainImg|getStoragePath}" style="max-width: 100px;">
                                                         {else/}
-                                                        <img onclick="Feng.showPdf('{$ep.domainImg|getStoragePath}', 'domainImg')" src="/static/img/File.png" style="max-width: 100px;">
+                                                        <img onclick="Feng.showPdf('{$ep.domainImg|getStoragePath}', 'domainImg')" src="/static/img/Pdf.png" style="max-width: 100px;">
                                                         {/if}
                                                         {/if}
                                                     </td>
@@ -229,7 +229,7 @@
                                                         {if condition="$ep['beian_is_img'] eq 1"}
                                                         <img onclick="Feng.showImg(this)" id="domainImg" src="{$ep.beian|getStoragePath}" style="max-width: 100px;">
                                                         {else/}
-                                                        <img onclick="Feng.showPdf('{$ep.beian|getStoragePath}', 'beian')" src="/static/img/File.png" style="max-width: 100px;">
+                                                        <img onclick="Feng.showPdf('{$ep.beian|getStoragePath}', 'beian')" src="/static/img/Pdf.png" style="max-width: 100px;">
                                                         {/if}
                                                         {/if}
                                                     </td>

+ 1 - 1
public/static/js/register.js

@@ -637,7 +637,7 @@ $(function () {
                 imgSrc = this.result;
                 $(that).prev("img").attr("src", imgSrc);
             } else {
-                $(that).prev("img").attr("src", Feng.ctxPath + "/static/img/File.png");
+                $(that).prev("img").attr("src", Feng.ctxPath + "/static/img/Pdf.png");
             }
         };
     });

+ 3 - 3
public/static/modular/gate/enterprise/enterprise_change_edit.js

@@ -320,7 +320,7 @@ EpChangeEdit.checkFile = function (fileTypeId, fileId) {
     }
     $("#upload_file").unbind("change");
     $("#upload_file").change(function () {
-        if (!Feng.chkFileInvalid(this.files[0], 5, 10))
+        if (!Feng.chkFileInvalid(this.files[0], 10, 10, ["image/jpeg", "image/gif", "image/png", "image/jpg", "application/pdf"], "只允许上传PDF或图片"))
             return;
         EpChangeEdit.upload(fileTypeId, fileId);
     });
@@ -518,7 +518,7 @@ EpChangeEdit.industryChange = function () {
 
 $("#imgurl,#bankImg,#beian,#domainImg").change(function (e) {
     var that = this;
-    if (!Feng.chkFileInvalid(that.files[0], 5, 10)) {
+    if (!Feng.chkFileInvalid(that.files[0], 10, 10, ["image/jpeg", "image/gif", "image/png", "image/jpg", "application/pdf"], "只允许上传PDF或图片")) {
         return;
     }
     var file = that.files[0];
@@ -530,7 +530,7 @@ $("#imgurl,#bankImg,#beian,#domainImg").change(function (e) {
             imgSrc = this.result;
             $(that).prev("img").attr("src", imgSrc);
         } else {
-            $(that).prev("img").attr("src", Feng.ctxPath + "/static/img/File.png");
+            $(that).prev("img").attr("src", Feng.ctxPath + "/static/img/Pdf.png");
         }
     };
 });

+ 2 - 2
public/static/modular/gate/enterprise/enterprise_edit.js

@@ -169,7 +169,7 @@ Register.industryChange = function () {
 }
 $("#imgurl,#bankImg,#beian,#domainImg").change(function (e) {
     var that = this;
-    if (!Feng.chkFileInvalid(that.files[0], 5, 10)) {
+    if (!Feng.chkFileInvalid(that.files[0], 10, 10, ["image/jpeg", "image/gif", "image/png", "image/jpg", "application/pdf"], "只允许上传PDF或图片")) {
         return;
     }
     var file = that.files[0];
@@ -181,7 +181,7 @@ $("#imgurl,#bankImg,#beian,#domainImg").change(function (e) {
             imgSrc = this.result;
             $(that).prev("img").attr("src", imgSrc);
         } else {
-            $(that).prev("img").attr("src", Feng.ctxPath + "/static/img/File.png");
+            $(that).prev("img").attr("src", Feng.ctxPath + "/static/img/Pdf.png");
         }
     };
 });