m0_70156489 1 týždeň pred
rodič
commit
a60af6d495

+ 2 - 2
application/admin/view/common/header.html

@@ -3,8 +3,8 @@
     <!-- 迷你模式下Logo的大小为50X50 -->
     <span class="logo-mini">{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'|htmlentities}</span>
     <!-- 普通模式下Logo -->
-    <span class="logo-lg" style=" font-size: 16px;">{$site.name|htmlentities}</span>
-    <!-- <span class="logo-lg" style=" font-size: 16px;">大数据协同系统</span> -->
+    <!-- <span class="logo-lg" style=" font-size: 16px;">{$site.name|htmlentities}</span> -->
+    <span class="logo-lg" style=" font-size: 16px;">大数据协同系统</span>
 
 </a>
 

+ 2 - 1
application/admin/view/common/meta.html

@@ -5,7 +5,8 @@
 <meta name="referrer" content="never">
 <meta name="robots" content="noindex, nofollow">
 
-<link rel="shortcut icon" href="__CDN__/assets/img/favicon.ico" />
+<link rel="shortcut icon" href="{$site.brand_logo|default='https://a-7in6-com.oss-cn-hangzhou.aliyuncs.com/xinhua/img/logo1.png'|htmlentities}" />
+<link rel="icon" href="{$site.brand_logo|default='https://a-7in6-com.oss-cn-hangzhou.aliyuncs.com/xinhua/img/logo1.png'|htmlentities}" />
 <!-- Loading Bootstrap -->
 <link href="__CDN__/assets/css/backend{$Think.config.app_debug?'':'.min'}.css?v={$Think.config.site.version}" rel="stylesheet">
 

+ 5 - 17
application/admin/view/index/login.html

@@ -19,7 +19,7 @@
             overflow-x: hidden;
             overflow-y: auto;
             background-color: #020b1e;
-            background-image: url('{:rtrim("__PUBLIC__", "/")}/img/login1.png');
+            background-image: url('https://a-7in6-com.oss-cn-hangzhou.aliyuncs.com/xinhua/img/login1.png');
             background-repeat: no-repeat;
             background-position: center center;
             background-size: 100% 100%;
@@ -40,7 +40,7 @@
             margin: 0 auto;
             width: min(460px, 58vw);
             height: 64px;
-            background: url('{:rtrim("__PUBLIC__", "/")}/img/login4.png') no-repeat center center;
+            background: url('https://a-7in6-com.oss-cn-hangzhou.aliyuncs.com/xinhua/img/login4.png') no-repeat center center;
             background-size: contain;
             pointer-events: none;
             user-select: none;
@@ -77,7 +77,7 @@
             width: auto;
             max-width: min(calc((106vh - 85px) * 16 / 9), 78vw);
             margin-left: clamp(32px, 4vw, 72px);
-            background: url('{:rtrim("__PUBLIC__", "/")}/img/login3.png') no-repeat center center;
+            background: url('https://a-7in6-com.oss-cn-hangzhou.aliyuncs.com/xinhua/img/login3.png') no-repeat center center;
             background-size: contain;
             pointer-events: none;
             user-select: none;
@@ -105,7 +105,7 @@
             width: 86%;
             height: 32px;
             margin: 0 auto;
-            background: url('{:rtrim("__PUBLIC__", "/")}/img/login5.png') no-repeat center center;
+            background: url('https://a-7in6-com.oss-cn-hangzhou.aliyuncs.com/xinhua/img/login5.png') no-repeat center center;
             background-size: contain;
             pointer-events: none;
             user-select: none;
@@ -119,7 +119,7 @@
             width: 100%;
             height: 15px;
             margin: 0;
-            background: url('{:rtrim("__PUBLIC__", "/")}/img/login6.png') no-repeat center 54%;
+            background: url('https://a-7in6-com.oss-cn-hangzhou.aliyuncs.com/xinhua/img/login6.png') no-repeat center 54%;
             background-size: 100% auto;
             pointer-events: none;
             user-select: none;
@@ -387,17 +387,5 @@
 </footer>
 
 {include file="common/script" /}
-<script>
-    (function () {
-        var $form = $('#login-form');
-        $('#btn-login-reset').on('click', function () {
-            $form[0].reset();
-            $('#errtips').addClass('hide').empty();
-        });
-        $('#btn-login-change-pwd').on('click', function () {
-            Layer.msg('请先登录系统,在右上角个人资料中修改密码');
-        });
-    })();
-</script>
 </body>
 </html>

+ 7 - 2
application/common/controller/Backend.php

@@ -237,8 +237,13 @@ class Backend extends Controller
         $this->assign('config', $config);
         //渲染权限对象
         $this->assign('auth', $this->auth);
-        //渲染管理员对象
-        $this->assign('admin', Session::get('admin'));
+        //渲染管理员对象(头像固定使用站点品牌 Logo)
+        $admin = Session::get('admin');
+        $brandLogo = Config::get('site.brand_logo');
+        if (is_array($admin) && $brandLogo) {
+            $admin['avatar'] = $brandLogo;
+        }
+        $this->assign('admin', $admin);
     }
 
     /**

+ 1 - 0
application/extra/site.php

@@ -2,6 +2,7 @@
 
 return array (
   'name' => '浙江印刷集团有限公司',
+  'brand_logo' => 'https://a-7in6-com.oss-cn-hangzhou.aliyuncs.com/xinhua/img/logo1.png',
   'beian' => '',
   'cdnurl' => '',
   'version' => '1.0.1',