diff --git a/application/admin/controller/Config.php b/application/admin/controller/Config.php index 51039b8a0..dc813d425 100644 --- a/application/admin/controller/Config.php +++ b/application/admin/controller/Config.php @@ -13,8 +13,11 @@ use controller\BasicAdmin; */ class Config extends BasicAdmin { - public function index() { + protected $table = 'SystemConfig'; + public function index() { + parent::_list($this->table); + } } \ No newline at end of file diff --git a/application/admin/controller/Login.php b/application/admin/controller/Login.php index 588d27965..ff773adf0 100644 --- a/application/admin/controller/Login.php +++ b/application/admin/controller/Login.php @@ -49,6 +49,6 @@ class Login extends BasicAdmin { */ public function out() { session('user', null); - $this->success('退出登录成功!', '@admin / login'); + $this->success('退出登录成功!', '@admin/login'); } } \ No newline at end of file diff --git a/application/admin/view/config.index.html b/application/admin/view/config.index.html new file mode 100644 index 000000000..3ccbc8508 --- /dev/null +++ b/application/admin/view/config.index.html @@ -0,0 +1,155 @@ +{extend name="extra@admin/content"} + +{block name="content"} +
+
网站设置
+
+
+
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ 帮助统计网页访问情况,可以去百度统计获取ID。 +
+
+
+ +
+ +
+
+ 帮助统计网页访问情况,可以去流量统计获取ID。 +
+
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+ 建议LOGO图片的尺寸为160x56px,此LOGO图片用于后台登陆页面。 +
+
+
+ +
+ + +
+
+ 建议上传ICO图标的尺寸为128x128px,此图标用于网站标题前,ICON在线制作。 +
+
+
+
+ +
+
+ +
+
+
+
+ +
+ +{/block} \ No newline at end of file diff --git a/application/extra/view/admin.content.html b/application/extra/view/admin.content.html index 6437f21fb..e958bb233 100644 --- a/application/extra/view/admin.content.html +++ b/application/extra/view/admin.content.html @@ -17,4 +17,5 @@ {block name="content"} {/block} + {block name='script'}{/block} \ No newline at end of file diff --git a/public/static/admin/plugs.js b/public/static/admin/plugs.js index 0d08fed0e..1719db622 100644 --- a/public/static/admin/plugs.js +++ b/public/static/admin/plugs.js @@ -262,6 +262,7 @@ define(['zeroclipboard', 'jquery'], function (ZeroClipboard) { }); }); }); + layui.use(['form', 'element']); JPlaceHolder.init(); /* 自动给必填字符加上样式 @zoujingli @by 2016-05-11 */ $container.find('[required]').parent().prevAll('label').addClass('label-required'); diff --git a/public/static/theme/default/css/console.css b/public/static/theme/default/css/console.css index a9fedefe0..1ad26738a 100644 --- a/public/static/theme/default/css/console.css +++ b/public/static/theme/default/css/console.css @@ -6,6 +6,13 @@ * date 2017/02/13 14:15 */ +/* layui 兼容处理 */ +.layui, .layui * { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} + /* 设置选择文字及背景颜色 */ ::selection { background-color: #ec494e;