Selaa lähdekoodia

审核真人认证

15954078560 3 vuotta sitten
vanhempi
commit
036fd74b51

+ 2 - 1
application/admin/view/userauthperson/edit.html

@@ -23,7 +23,8 @@
                 </div>
                 <span class="msg-box n-right" for="c-videofile"></span>
             </div>
-            <ul class="row list-inline faupload-preview" id="p-videofile"></ul>
+<!--            <ul class="row list-inline faupload-preview" id="p-videofile"></ul>-->
+            <video style="margin-top:5px;" width="240" height="180" controls><source src="{$row.videofile|htmlentities}" type="video/ogg"></video>
         </div>
     </div>
     <div class="form-group">

+ 10 - 1
public/assets/js/backend/userauthperson.js

@@ -30,7 +30,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
                         {field: 'user.mobile', title: __('User.mobile'), operate: 'LIKE'},
                         {field: 'actname', title: __('Actname'), operate: 'LIKE'},
-                        {field: 'videofile', title: __('Videofile'), operate: false},
+                        {field: 'videofile', title: __('Videofile'), operate: false,formatter: function(val, row) {
+                                if(val) {
+                                    return '<video width="120" height="90" preload="none" controls>'+
+                                        '<source src="'+val+'" type="video/ogg">'+
+                                        '</video>';
+                                } else {
+                                    return '暂无';
+                                }
+
+                            }},
                         {field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1'),"2":__('Status 2')}, formatter: Table.api.formatter.status},
                         {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
                         {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},