diff --git a/css/common.css b/css/common.css index 8864bf4..cc8032b 100644 --- a/css/common.css +++ b/css/common.css @@ -1,5 +1,5 @@ @import "../lib/fonts/iconfont.css"; -html{ +/*html{ webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); @@ -7,7 +7,7 @@ html{ filter: grayscale(100%); filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); filter: gray; -} +}*/ [v-cloak]{display:none!important} .ok-body{padding:10px} diff --git a/css/okadmin.animate.css b/css/okadmin.animate.css index 4d77e44..62965ba 100644 --- a/css/okadmin.animate.css +++ b/css/okadmin.animate.css @@ -3598,7 +3598,7 @@ } @media (print), (prefers-reduced-motion: reduce) { - .ok-anim { + .ok-anim, .layui-layer-oksetting { -webkit-animation-duration: 1ms !important; animation-duration: 1ms !important; -webkit-transition-duration: 1ms !important; @@ -3607,3 +3607,21 @@ animation-iteration-count: 1 !important; } } + + + + + + + + + + + + + + + + + + diff --git a/css/okadmin.css b/css/okadmin.css index 7b721a0..ecdda0c 100644 --- a/css/okadmin.css +++ b/css/okadmin.css @@ -1,8 +1,9 @@ @import "../lib/layui/css/layui.css"; @import "../lib/fonts/iconfont.css"; @import "./okadmin.theme.css"; +@import "./okadmin.animate.css"; @import "../lib/layui/css/okmodules/jquery.contextMenu.css"; -html{ +/*html{ webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); @@ -10,7 +11,7 @@ html{ filter: grayscale(100%); filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); filter: gray; -} +}*/ /*边距*/ .ptb20{ padding-top: 20px; @@ -302,6 +303,7 @@ html{ padding-left: 45px; padding-right: 30px; color: #FFF; + position: relative; /*color: #f2f2f2;*/ } @@ -627,6 +629,19 @@ html{ left: 0; } +/** + 弹出系统设置 +*/ +.layui-layer.ok-setting{ + -webkit-animation-duration: .25s; + animation-duration: .25s; + top: 50px!important; + bottom: 0; + height: 100%; + min-height: 500px; + overflow-y: auto; +} + /* * 以下都是移动端的处理响应 diff --git a/css/okadmin.theme.css b/css/okadmin.theme.css index 14b5634..5cd0562 100644 --- a/css/okadmin.theme.css +++ b/css/okadmin.theme.css @@ -21,3 +21,43 @@ .okadmin.blue_theme .ok-tab .okadmin-tabs-control:hover, .okadmin.blue_theme .ok-tab .layui-tab-title li.layui-this { color: #2D8CF0; } + +/**============================导航菜单的箭头 start============================*/ +#navBar.ok-arrow2 .layui-nav-item a span, +#navBar.ok-arrow2 .layui-nav-item.layui-nav-itemed dd a span{ + top: 14px!important; +} +#navBar.ok-arrow2 .layui-nav-item.layui-nav-itemed a span, +#navBar.ok-arrow2 .layui-nav-item dd.layui-nav-itemed a span { + top: 20px!important; +} + +#navBar.ok-arrow2 .layui-nav-item a span.layui-nav-more { + font-family: ok-icon !important; + font-size: 12px; + font-weight: 600; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + width: 12px; + height: 12px; + color: #FFFFFF; + border: 0; + display: block; +} +#navBar.ok-arrow2 .layui-nav-item a span.layui-nav-more:before { + content: "\e661"; + display: block; + position: absolute; + top: 0; + left: 0; + height: 12px; + line-height: 12px; + width: 100%; + font-size: 12px; + color: #FFFFFF; +} +#navBar.ok-arrow2 .layui-nav-itemed > a > span.layui-nav-more:before{ + content: "\e6de"; +} +/**============================导航菜单的箭头 end============================*/ \ No newline at end of file diff --git a/css/okadmin.theme.scss b/css/okadmin.theme.scss index 1edf060..1d061b8 100644 --- a/css/okadmin.theme.scss +++ b/css/okadmin.theme.scss @@ -12,9 +12,9 @@ $color: #FF4806, #2D8CF0; .okadmin { - @each $c in $name{ - $i:index($name,$c); - &.#{$c}_theme{ + @each $c in $name { + $i: index($name, $c); + &.#{$c}_theme { /**头部导航*/ /* .okadmin-header { .layui-nav-item a { @@ -39,18 +39,20 @@ $color: #FF4806, #2D8CF0; /**左侧菜单*/ .ok-left .okadmin-nav { .layui-nav-bar { - background: nth($color,$i); + background: nth($color, $i); } + .layui-nav-item { &.layui-this { a { - background: nth($color,$i); + background: nth($color, $i); } } + .layui-nav-child { .layui-this { a { - background: nth($color,$i); + background: nth($color, $i); } } } @@ -61,7 +63,7 @@ $color: #FF4806, #2D8CF0; .ok-tab { .okadmin-tabs-control:hover, .layui-tab-title li.layui-this { - color: nth($color,$i); + color: nth($color, $i); } } } @@ -69,3 +71,41 @@ $color: #FF4806, #2D8CF0; } } +/**============================导航菜单的箭头 start============================*/ +#navBar.ok-arrow2 .layui-nav-item a span, +#navBar.ok-arrow2 .layui-nav-item.layui-nav-itemed dd a span{ + top: 14px!important; +} +#navBar.ok-arrow2 .layui-nav-item.layui-nav-itemed a span, +#navBar.ok-arrow2 .layui-nav-item dd.layui-nav-itemed a span { + top: 20px!important; +} + +#navBar.ok-arrow2 .layui-nav-item a span.layui-nav-more { + font-family: ok-icon !important; + font-size: 12px; + font-weight: 600; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + width: 12px; + height: 12px; + color: #FFFFFF; + border: 0; + display: block; +} +#navBar.ok-arrow2 .layui-nav-item a span.layui-nav-more:before { + content: "\e661"; + display: block; + position: absolute; + top: 0; + left: 0; + height: 12px; + line-height: 12px; + width: 100%; + font-size: 12px; + color: #FFFFFF; +} +#navBar.ok-arrow2 .layui-nav-itemed > a > span.layui-nav-more:before{ + content: "\e6de"; +} \ No newline at end of file diff --git a/index.html b/index.html index d0d52df..05f0030 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,6 @@ -
@@ -57,7 +56,7 @@ @@ -79,6 +78,13 @@
"
- }, {
- title: "微信",
- content: "
"
- }]
- });
- });
+ function noticeFun() {
+ var srcWidth = okUtils.getBodyWidth();
+ layer.open({
+ type: 0, title: "系统公告", btn: "我知道啦", btnAlign: 'c', content: okHoliday.getContent(),
+ yes: function (index) {
+ if (srcWidth > 800) {
+ layer.tips('公告跑到这里去啦', '#notice', {
+ tips: [1, '#000'],
+ time: 2000
+ });
+ }
+ sessionStorage.setItem("notice", "true");
+ layer.close(index);
+ },
+ cancel: function (index) {
+ if (srcWidth > 800) {
+ layer.tips('公告跑到这里去啦', '#notice', {
+ tips: [1, '#000'],
+ time: 2000
+ });
+ }
+ }
+ });
+ }
- /**
- * QQ群交流
- */
- $("body").on("click", ".layui-footer button.communication, #noticeQQ", function () {
- layer.tab({
- area: ["auto", "370px"],
- tab: [{
- title: "QQ群3",
- content: "
"
- }, {
- title: "QQ群2(已满)",
- content: "
"
- }, {
- title: "QQ群1(已满)",
- content: "
"
- }]
- });
- });
+ /**
+ * 捐赠作者
+ */
+ $(".layui-footer button.donate").click(function () {
+ layer.tab({
+ area: ["330px", "350px"],
+ tab: [{
+ title: "支付宝",
+ content: "
"
+ }, {
+ title: "微信",
+ content: "
"
+ }]
+ });
+ });
- /**
- * 弹窗皮肤
- */
- $("#alertSkin").click(function () {
- okLayer.open("皮肤动画", "pages/system/alertSkin.html", "50%", "45%", function (layero) {
- }, function () {
- });
- });
+ /**
+ * QQ群交流
+ */
+ $("body").on("click", ".layui-footer button.communication, #noticeQQ", function () {
+ layer.tab({
+ area: ["auto", "370px"],
+ tab: [{
+ title: "QQ群3",
+ content: "
"
+ }, {
+ title: "QQ群2(已满)",
+ content: "
"
+ }, {
+ title: "QQ群1(已满)",
+ content: "
"
+ }]
+ });
+ });
- /**
- * 退出操作
- */
- $("#logout").click(function () {
- okLayer.confirm("确定要退出吗?", function (index) {
- okTab.removeTabStorage(function (res) {
- okTab.removeTabStorage();
- window.location = "pages/login.html";
- });
- });
- });
+ /**
+ * 弹窗皮肤
+ */
+ $("#alertSkin").click(function () {
+ okLayer.open("皮肤动画", "pages/system/alertSkin.html", "50%", "45%", function (layero) {
+ }, function () {
+ });
+ });
- /**
- * 锁定账户
- */
- $("#lock").click(function () {
- okLayer.confirm("确定要锁定账户吗?", function (index) {
- layer.close(index);
- $(".yy").show();
- layer.prompt({
- btn: ['确定'],
- title: '输入密码解锁(123456)',
- closeBtn: 0,
- formType: 1
- }, function (value, index, elem) {
- if (value == "123456") {
- layer.close(index);
- $(".yy").hide();
- } else {
- layer.msg('密码错误', {anim: 6, time: 1000});
- }
- });
- });
- });
+ /**
+ * 退出操作
+ */
+ $("#logout").click(function () {
+ okLayer.confirm("确定要退出吗?", function (index) {
+ okTab.removeTabStorage(function (res) {
+ okTab.removeTabStorage();
+ window.location = "pages/login.html";
+ });
+ });
+ });
- console.log(" __ .___ .__ \n" +
- " ____ | | __ _____ __| _/_____ |__| ____ \n" +
- " / _ \\| |/ / ______ \\__ \\ / __ |/ \\| |/ \\ \n" +
- "( <_> ) < /_____/ / __ \\_/ /_/ | Y Y \\ | | \\\n" +
- " \\____/|__|_ \\ (____ /\\____ |__|_| /__|___| /\n" +
- " \\/ \\/ \\/ \\/ \\/\n" +
- "" +
- "版本:v2.0\n" +
- "作者:bobi\n" +
- "邮箱:bobi1234@foxmail.com\n" +
- "企鹅:833539807\n" +
- "描述:一个很赞的,扁平化风格的,响应式布局的后台管理模版,旨为后端程序员减压!");
+ /**
+ * 锁定账户
+ */
+ $("#lock").click(function () {
+ okLayer.confirm("确定要锁定账户吗?", function (index) {
+ layer.close(index);
+ $(".yy").show();
+ layer.prompt({
+ btn: ['确定'],
+ title: '输入密码解锁(123456)',
+ closeBtn: 0,
+ formType: 1
+ }, function (value, index, elem) {
+ if (value == "123456") {
+ layer.close(index);
+ $(".yy").hide();
+ } else {
+ layer.msg('密码错误', {anim: 6, time: 1000});
+ }
+ });
+ });
+ });
+
+ console.log(" __ .___ .__ \n" +
+ " ____ | | __ _____ __| _/_____ |__| ____ \n" +
+ " / _ \\| |/ / ______ \\__ \\ / __ |/ \\| |/ \\ \n" +
+ "( <_> ) < /_____/ / __ \\_/ /_/ | Y Y \\ | | \\\n" +
+ " \\____/|__|_ \\ (____ /\\____ |__|_| /__|___| /\n" +
+ " \\/ \\/ \\/ \\/ \\/\n" +
+ "" +
+ "版本:v2.0\n" +
+ "作者:bobi\n" +
+ "邮箱:bobi1234@foxmail.com\n" +
+ "企鹅:833539807\n" +
+ "描述:一个很赞的,扁平化风格的,响应式布局的后台管理模版,旨为后端程序员减压!");
});
diff --git a/pages/system/setting.html b/pages/system/setting.html
new file mode 100644
index 0000000..67d1f1d
--- /dev/null
+++ b/pages/system/setting.html
@@ -0,0 +1,54 @@
+
+
+
+
+