Commit a5a02bbd by 梁建民

bug

parent c2fdcb6b
...@@ -11,7 +11,7 @@ class IndexController extends BaseController ...@@ -11,7 +11,7 @@ class IndexController extends BaseController
public function _initialize() public function _initialize()
{ {
parent::_initialize(); parent::_initialize();
if (!cookie('token') && ACTION_NAME != 'login' && ACTION_NAME != 'register' && ACTION_NAME != 'index' && ACTION_NAME != 'indexsearch') { if (!cookie('token') && ACTION_NAME != 'login' && ACTION_NAME != 'register' && ACTION_NAME != 'index' && ACTION_NAME != 'indexsearch' && ACTION_NAME != 'forget') {
$this->redirect('/login'); $this->redirect('/login');
} }
} }
......
...@@ -107,6 +107,8 @@ ...@@ -107,6 +107,8 @@
if (!$mobile.val()) { if (!$mobile.val()) {
$mobile.parent('.input-wrap').addClass('error'); $mobile.parent('.input-wrap').addClass('error');
$(".error-text").show().find("span").text('请填写手机号');
return false; return false;
...@@ -115,6 +117,8 @@ ...@@ -115,6 +117,8 @@
if (!$password.val() && type === 1) { if (!$password.val() && type === 1) {
$password.parent().parent('.input-wrap').addClass('error'); $password.parent().parent('.input-wrap').addClass('error');
$(".error-text").show().find("span").text('请填写密码');
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment