标准化格式

This commit is contained in:
邹景立 2017-02-16 15:38:29 +08:00
parent 37d95013db
commit 1440b4fd8a
11 changed files with 84 additions and 84 deletions

View File

@ -1,4 +1,5 @@
<?php <?php
namespace app\admin\controller; namespace app\admin\controller;
use controller\BasicAdmin; use controller\BasicAdmin;

View File

@ -17,7 +17,6 @@ class Config extends BasicAdmin {
public function index() { public function index() {
parent::_list($this->table); parent::_list($this->table);
} }
} }

View File

@ -1,4 +1,5 @@
<?php <?php
namespace app\admin\controller; namespace app\admin\controller;
use controller\BasicAdmin; use controller\BasicAdmin;
@ -13,7 +14,6 @@ use think\Db;
*/ */
class Login extends BasicAdmin { class Login extends BasicAdmin {
/** /**
* 控制器基础方法 * 控制器基础方法
*/ */
@ -51,4 +51,5 @@ class Login extends BasicAdmin {
session('user', null); session('user', null);
$this->success('退出登录成功!', '@admin/login'); $this->success('退出登录成功!', '@admin/login');
} }
} }

View File

@ -127,7 +127,6 @@ class Menu extends BasicAdmin {
} }
} }
/** /**
* 添加菜单 * 添加菜单
*/ */

View File

@ -1,4 +1,5 @@
<?php <?php
namespace app\admin\controller; namespace app\admin\controller;
use controller\BasicAdmin; use controller\BasicAdmin;

View File

@ -1,4 +1,5 @@
<?php <?php
namespace app\admin\controller; namespace app\admin\controller;
use controller\BasicAdmin; use controller\BasicAdmin;

View File

@ -2,7 +2,6 @@
namespace app\admin\model; namespace app\admin\model;
use think\Model; use think\Model;
class User extends Model { class User extends Model {

View File

@ -4,8 +4,7 @@
<link rel="stylesheet" href="__STATIC__/theme/default/css/login.css"> <link rel="stylesheet" href="__STATIC__/theme/default/css/login.css">
{/block} {/block}
{block name="bodyTag"} {block name="body"}
<body>
<div class="login-container" style="height:100%"> <div class="login-container" style="height:100%">
<div class="clouds clouds-footer"></div> <div class="clouds clouds-footer"></div>
@ -72,6 +71,9 @@
</div> </div>
<div class="footer">{:sysconf('site_company')} &copy; {:date('Y')}</div> <div class="footer">{:sysconf('site_company')} &copy; {:date('Y')}</div>
</div> </div>
{/block}
{block name="script"}
<script> <script>
require(['jquery'], function ($) { require(['jquery'], function ($) {
$('[name="password"]').on('focus', function () { $('[name="password"]').on('focus', function () {
@ -83,5 +85,4 @@
}); });
}); });
</script> </script>
</body>
{/block} {/block}

View File

@ -9,9 +9,7 @@
<th class='list-table-check-td'> <th class='list-table-check-td'>
<input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/> <input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/>
</th> </th>
<th class='list-table-sort-td'> <th class='list-table-sort-td'><button>排序</button></th>
<button>排序</button>
</th>
<th class='text-center'></th> <th class='text-center'></th>
<th>菜单名称</th> <th>菜单名称</th>
<th>链接</th> <th>链接</th>