Jonlin 6 年之前
父节点
当前提交
01d2570db0

+ 1 - 1
application/admin/controller/Settings.php

@@ -28,7 +28,7 @@ class Settings extends Base
             $group = db('groups')->select();
             foreach($result as $key=>$vo){
                 // 优化显示头像
-                $result[$key]['image'] = '<img src="' . $vo['image'] . '" width="40px" height="40px">';
+                $result[$key]['image'] = '<img src="' . $vo['image'] . '" height="40px">';
 
                 if($vo['group_id'] == 'all'){
                     $result[$key]['user_group'] = '所有客服组';

+ 1 - 1
application/admin/controller/Users.php

@@ -34,7 +34,7 @@ class Users extends Base
             $result = db('users')->where($where)->limit($offset, $limit)->order('id', 'desc')->select();
             foreach($result as $key=>$vo){
                 // 优化显示头像
-                $result[$key]['user_avatar'] = '<img src="' . $vo['user_avatar'] . '" width="40px" height="40px">';
+                $result[$key]['user_avatar'] = '<img src="' . $vo['user_avatar'] . '" height="40px">';
 
                 // 优化显示状态
                 if(1 == $vo['status']){

+ 0 - 4
application/admin/view/robot/index.html

@@ -146,10 +146,8 @@
                     layer.alert(res.msg, {title: '友情提示', icon: 2});
                 }
             });
-
             layer.close(index);
         })
-
     }
 
     function allDel(){
@@ -166,10 +164,8 @@
                     layer.alert(res.msg, {title: '友情提示', icon: 2});
                 }
             });
-
             layer.close(index);
         })
-
     }
 </script>
 </body>

+ 1 - 1
application/admin/view/settings/add.html

@@ -94,7 +94,7 @@
             ,done: function(res){
                 //上传完毕回调
                 if(0 == res.code){
-                    $("#images").html('<img src="' + res.data.src + '" width="50px" height="50px">');
+                    $("#images").html('<img src="' + res.data.src + '" height="40px">');
                     $("#image").val(res.data.src);
                 }else{
                     layer.msg(res.msg);

+ 2 - 2
application/admin/view/settings/edit.html

@@ -57,7 +57,7 @@
                             </div>
                             <span>建议上传42px*42px</span>
                             <div class="input-group col-sm-3" id="images">
-                                <img src="{$info['image']}" width="40px" height="40px"/>
+                                <img src="{$info['image']}" height="40px"/>
                             </div>
                         </div>
 
@@ -96,7 +96,7 @@
             ,done: function(res){
                 //上传完毕回调
                 if(0 == res.code){
-                    $("#images").html('<img src="' + res.data.src + '" width="50px" height="50px">');
+                    $("#images").html('<img src="' + res.data.src + '" height="40px">');
                     $("#image").val(res.data.src);
                 }else{
                     layer.msg(res.msg);

+ 5 - 5
application/admin/view/system/basics.html

@@ -54,7 +54,7 @@
                             </div>
                             <span>建议上传420px*700px</span>
                             <div class="input-group col-sm-3" id="avatar">
-                                <img src="{$advertisement['advertisement_img']}" width="40px" height="40px"/>
+                                <img src="{$advertisement['advertisement_img']}" height="40px"/>
                             </div>
 
                         </div>
@@ -69,7 +69,7 @@
                             </div>
                         </div>
 
-                        <h4 style="margin-bottom: 10px; margin-top: 40px">logo设置</h4>
+                        <h4 style="margin-bottom: 10px; margin-top: 40px">企业logo设置</h4>
                         <div class="ibox-title">
                         </div>
                         <div class="form-group layui-form-item form-inline" style="height: 60px;">
@@ -81,7 +81,7 @@
                             </div>
                             <span>建议上传70px*70px</span>
                             <div class="input-group col-sm-3" id="logo">
-                                <img src="{$settings['logo']}" width="40px" height="40px"/>
+                                <img src="{$settings['logo']}" height="40px"/>
                             </div>
                         </div>
 
@@ -119,7 +119,7 @@
             ,done: function(res){
                 //上传完毕回调
                 if(0 == res.code){
-                    $("#avatar").html('<img src="' + res.data.src + '" width="50px" height="50px">');
+                    $("#avatar").html('<img src="' + res.data.src + '" height="40px">');
                     $("#advertisement_img").val(res.data.src);
                 }else{
                     layer.msg(res.msg);
@@ -137,7 +137,7 @@
             ,done: function(res){
                 //上传完毕回调
                 if(0 == res.code){
-                    $("#logo").html('<img src="' + res.data.src + '" width="50px" height="50px">');
+                    $("#logo").html('<img src="' + res.data.src + '" height="40px">');
                     $("#logo_img").val(res.data.src);
                 }else{
                     layer.msg(res.msg);

+ 1 - 1
application/admin/view/users/adduser.html

@@ -134,7 +134,7 @@
             ,done: function(res){
                 //上传完毕回调
                 if(0 == res.code){
-                    $("#avatar").html('<img src="' + res.data.src + '" width="50px" height="50px">');
+                    $("#avatar").html('<img src="' + res.data.src + '" height="40px">');
                     $("#user_avatar").val(res.data.src);
                 }else{
                     layer.msg(res.msg);

+ 2 - 2
application/admin/view/users/edituser.html

@@ -31,7 +31,7 @@
                             </div>
                             <span>建议上传180px*180px</span>
                             <div class="input-group col-sm-3" id="avatar">
-                                <img src="{$info['user_avatar']}" width="40px" height="40px"/>
+                                <img src="{$info['user_avatar']}" height="40px"/>
                             </div>
                         </div>
                         <div class="form-group">
@@ -137,7 +137,7 @@
             ,done: function(res){
                 //上传完毕回调
                 if(0 == res.code){
-                    $("#avatar").html('<img src="' + res.data.src + '" width="50px" height="50px">');
+                    $("#avatar").html('<img src="' + res.data.src + '" height="40px">');
                     $("#user_avatar").val(res.data.src);
                 }else{
                     layer.msg(res.msg);