linwu 3 years ago
parent
commit
4f3f63a8ea
2 changed files with 6 additions and 6 deletions
  1. 1 1
      config/admin.php
  2. 5 5
      resources/views/admin/ajax/buy_house_detail.blade.php

+ 1 - 1
config/admin.php

@@ -85,7 +85,7 @@ return [
     | If your page is going to be accessed via https, set it to `true`.
     |
     */
-    'https' => env('ADMIN_HTTPS', false),
+    'https' => env('ADMIN_HTTPS', true),
 
     /*
     |--------------------------------------------------------------------------

+ 5 - 5
resources/views/admin/ajax/buy_house_detail.blade.php

@@ -76,7 +76,7 @@
             <div style="padding: 10px 0;display:flex;flex-wrap:wrap;">
                 @foreach($info['certificates'] as $k => $v)
                     <div style="padding:10px;width:25%;">
-                        <img class="attchment" data-name="{{$v->response->filename}}" data-src="{{ $v->response->path }}" src="{{ $v->response->path }}" />
+                        <img class="attchment" data-name="{{$v->response->filename}}" src="{{ $v->response->path }}" />
                         <p>{{$v->response->filename}}</p>
                     </div>
                 @endforeach
@@ -110,7 +110,7 @@
                 <div style="padding: 10px 0;display:flex;flex-wrap:wrap;">
                     @foreach($info['marry_prove'] as $k => $v)
                         <div style="padding:10px;width:25%;">
-                            <img class="attchment" data-key="{{$k}}" data-name="marry_prove" data-src="{{ $v->response->path }}" src="{{ $v->response->path }}" />
+                            <img class="attchment" data-key="{{$k}}" data-name="marry_prove" src="{{ $v->response->path }}" />
                             <p>{{$v->response->filename}}</p>
                         </div>
                     @endforeach
@@ -127,7 +127,7 @@
             <div style="padding: 10px 0;display:flex;flex-wrap:wrap;">
                 @foreach($info['household_register'] as $k => $v)
                     <div style="padding:10px;width:25%;">
-                        <img class="attchment" data-key="{{$k}}" data-name="household_register" data-src="{{ $v->response->path }}" src="{{ $v->response->path }}" />
+                        <img class="attchment" data-key="{{$k}}" data-name="household_register" src="{{ $v->response->path }}" />
                         <p>{{$v->response->filename}}</p>
                     </div>
                 @endforeach
@@ -195,7 +195,7 @@
             <div style="padding: 10px 0;display:flex;flex-wrap:wrap;">
                 @foreach($info['work_prove'] as $k => $v)
                     <div style="padding:10px;width:25%;">
-                        <img class="attchment" data-key="{{$k}}" data-name="work_prove" data-src="{{ $v->response->path }}" src="{{ $v->response->path }}" />
+                        <img class="attchment" data-key="{{$k}}" data-name="work_prove" src="{{ $v->response->path }}" />
                         <p>{{$v->response->filename}}</p>
                     </div>
                 @endforeach
@@ -350,7 +350,7 @@
     });
 
     $('.attchment').click(function(){
-        let src = encodeURI($(this).data('src'));
+        let src = encodeURI($(this).attr('src'));
         let title = $(this).data('name');
         layer.open({
             type: 2 //此处以iframe举例