Browse Source

Merge remote-tracking branch 'origin/master'

wushaodong 4 năm trước cách đây
mục cha
commit
c4f75ac74d
1 tập tin đã thay đổi với 10 bổ sung4 xóa
  1. 10 4
      uis/tenant/company/detail.html

+ 10 - 4
uis/tenant/company/detail.html

@@ -20,9 +20,9 @@
             margin-bottom: 20px;
             margin-bottom: 20px;
         }
         }
         /*企业营业执照样式*/
         /*企业营业执照样式*/
-        .imgStyle {
-            width: 100px;
-            height: 100px;
+        .imgStyle{
+            width: 200px;
+            height: auto;
         }
         }
     </style>
     </style>
 </head>
 </head>
@@ -81,7 +81,7 @@
                     {{# if(d.image){ }}
                     {{# if(d.image){ }}
                     <li class="tenant-li">
                     <li class="tenant-li">
                         <h3>企业营业执照:</h3>
                         <h3>企业营业执照:</h3>
-                        <img src="{{ d.image }}" class="imgStyle"/>
+                        <img src="{{d.image}}" id="check_img" class="imgStyle" />
                     </li>
                     </li>
                     {{# } }}
                     {{# } }}
                 </ui>
                 </ui>
@@ -110,6 +110,12 @@
         laytpl(getTpl).render(data, function (html) {
         laytpl(getTpl).render(data, function (html) {
             tenant_detail.innerHTML = html;
             tenant_detail.innerHTML = html;
         });
         });
+        //点击企业执照图片
+        $('#check_img').on('click', function(e) {
+          //  打开新的页面,渲染图片
+          var newPage=window.open();
+          newPage.document.write("<img src="+ data.image +" />")
+        })
         admin.req({
         admin.req({
             url: '/tenant/company/' + data.id + '/get_renew_record/'
             url: '/tenant/company/' + data.id + '/get_renew_record/'
             , done: function (res) {
             , done: function (res) {