Kirin 2 rokov pred
rodič
commit
0df6d9acb2
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      app/admin/view/user/user_cert/index.php

+ 5 - 1
app/admin/view/user/user_cert/index.php

@@ -11,6 +11,10 @@
                 <div class="layui-card-body">
                     <table class="layui-hide" id="List" lay-filter="List"></table>
 
+                    <script type="text/html" id="photo">
+                        <img src='{{d.photo}}' lay-event='open_image'>
+                    </script>
+
                     <script type="text/html" id="act">
                         {{# if(d.status == 0 ){ }}
                         <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='edit'>
@@ -36,7 +40,7 @@
             {field: 'gender_name', title: '性别', width: '5%'},
             {field: 'idcard', title: '身份证号码', width: '15%'},
             {field: 'job', title: '职业', width: '7%'},
-            {field: 'photo', title: '照片', width: '10%',toolbar:"<img src='{{d.photo}}' lay-event='open_image'>"},
+            {field: 'photo', title: '照片', width: '10%',toolbar:"#photo"},
             {field: 'level_name', title: '等级', width: '5%'},
             {field: 'code', title: '编码'},
             {field: 'add_time', title: '提交时间', width: '12%'},