From 62fdbd88e91e2b3ec67773220f238c38f3e0504c Mon Sep 17 00:00:00 2001 From: xiaoz Date: Wed, 1 Jun 2022 21:35:41 +0800 Subject: [PATCH] update --- templates/admin/click.php | 46 +++++++++++++-------- templates/admin/setting/transition_page.php | 4 +- templates/admin/static/embed.js | 5 ++- 3 files changed, 35 insertions(+), 20 deletions(-) diff --git a/templates/admin/click.php b/templates/admin/click.php index 8a580aa..3e27086 100755 --- a/templates/admin/click.php +++ b/templates/admin/click.php @@ -21,6 +21,10 @@ padding-top:1em; padding-bottom:1em; } + #menu{ + width:100%; + background-color: #343a40!important; + } - - - +
@@ -139,10 +151,10 @@

diff --git a/templates/admin/setting/transition_page.php b/templates/admin/setting/transition_page.php index 47b4b42..ba898b4 100644 --- a/templates/admin/setting/transition_page.php +++ b/templates/admin/setting/transition_page.php @@ -46,12 +46,12 @@
-
+
diff --git a/templates/admin/static/embed.js b/templates/admin/static/embed.js index 58c79c4..7ec3e73 100755 --- a/templates/admin/static/embed.js +++ b/templates/admin/static/embed.js @@ -452,15 +452,18 @@ layui.use(['element','table','layer','form','upload','iconHhysFa'], function(){ //保存站点设置 form.on('submit(set_transition_page)', function(data){ + var index = layer.load(1); $.post('/index.php?c=api&method=set_transition_page',data.field,function(data,status){ if(data.code == 0) { + layer.closeAll('loading'); layer.msg(data.data, {icon: 1}); } else{ + layer.closeAll('loading'); layer.msg(data.err_msg, {icon: 5}); } }); - console.log(data.field) //当前容器的全部表单字段,名值对形式:{name: value} + //console.log(data.field) //当前容器的全部表单字段,名值对形式:{name: value} return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。 });