diff --git a/component/layui/lay/extends/pearAdmin.js b/component/layui/lay/extends/pearAdmin.js index 8d433e1..9040853 100644 --- a/component/layui/lay/extends/pearAdmin.js +++ b/component/layui/lay/extends/pearAdmin.js @@ -40,6 +40,7 @@ layui.define(['table', 'jquery', 'element', 'form', 'pearAuth', 'pearTab', 'pear this.themeRender(option); this.noticeRender(option); this.permissionRender(option); + this.logoRender(option); } this.permissionRender = function(option) { @@ -47,6 +48,13 @@ layui.define(['table', 'jquery', 'element', 'form', 'pearAuth', 'pearTab', 'pear pearAuth.loadPermission(option.auth); } } + + this.logoRender = function(option){ + + $(".layui-logo .logo").attr("src",option.logoImage); + + $(".layui-logo .title").html(option.logoTitle); + } this.menuRender = function(option) { sideMenu = pearMenu.render({ @@ -248,7 +256,7 @@ layui.define(['table', 'jquery', 'element', 'form', 'pearAuth', 'pearTab', 'pear theme += ''; $("iframe").contents().find("head").append(theme); - $("#pearone-bg-color").html(style); + $("#pearadmin-bg-color").html(style); } diff --git a/index.html b/index.html index 8a7b186..6df4874 100644 --- a/index.html +++ b/index.html @@ -12,10 +12,11 @@ - + + - +
@@ -42,11 +43,12 @@
  • +
    @@ -57,18 +59,19 @@
    - +
    - +
    - +
    - +
    +