全局变更背景色
parent
db5162daad
commit
1ce534d349
|
|
@ -77,9 +77,5 @@ layui.define(["jquery","layer"], function (exports) {
|
||||||
$("#pearadmin-bg-color").html(style);
|
$("#pearadmin-bg-color").html(style);
|
||||||
}
|
}
|
||||||
|
|
||||||
theme.changeAll = function () {
|
|
||||||
console.log("change theme123");
|
|
||||||
}
|
|
||||||
|
|
||||||
exports(MOD_NAME, theme);
|
exports(MOD_NAME, theme);
|
||||||
});
|
});
|
||||||
|
|
@ -46,4 +46,5 @@ layui.config({
|
||||||
theme: "theme" // 主题转换
|
theme: "theme" // 主题转换
|
||||||
}).use(['layer', 'theme'], function () {
|
}).use(['layer', 'theme'], function () {
|
||||||
var pearTheme = layui.theme;
|
var pearTheme = layui.theme;
|
||||||
|
pearTheme.changeTheme(window, false);
|
||||||
});
|
});
|
||||||
|
|
@ -46,5 +46,5 @@ layui.config({
|
||||||
theme: "theme" // 主题转换
|
theme: "theme" // 主题转换
|
||||||
}).use(['layer', 'theme'], function () {
|
}).use(['layer', 'theme'], function () {
|
||||||
var pearTheme = layui.theme;
|
var pearTheme = layui.theme;
|
||||||
pearTheme.changeAll();
|
pearTheme.changeTheme(window, false);
|
||||||
});
|
});
|
||||||
|
|
@ -8,6 +8,8 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
<link rel="stylesheet" href="../../component/pear/css/pear.css" />
|
<link rel="stylesheet" href="../../component/pear/css/pear.css" />
|
||||||
<link rel="stylesheet" href="../../admin/css/other/console1.css" />
|
<link rel="stylesheet" href="../../admin/css/other/console1.css" />
|
||||||
|
<!-- 主 题 更 换 -->
|
||||||
|
<style id="pearadmin-bg-color"></style>
|
||||||
</head>
|
</head>
|
||||||
<body class="pear-container">
|
<body class="pear-container">
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue