diff --git a/service/Application/Home/Controller/CommonController.class.php b/service/Application/Home/Controller/CommonController.class.php index be3460570..f93c38093 100755 --- a/service/Application/Home/Controller/CommonController.class.php +++ b/service/Application/Home/Controller/CommonController.class.php @@ -84,7 +84,12 @@ class CommonController extends Controller { if(empty($_SESSION['user'])) { - $this->error(L('common_login_invalid'), U('Home/User/LoginInfo')); + if(IS_AJAX) + { + $this->ajaxReturn(L('common_login_invalid'), -400); + } else { + redirect(U('Home/User/LoginInfo')); + } } } diff --git a/service/Application/Home/View/Default/Goods/Index.html b/service/Application/Home/View/Default/Goods/Index.html index 7c4cb51e2..d98e7677b 100755 --- a/service/Application/Home/View/Default/Goods/Index.html +++ b/service/Application/Home/View/Default/Goods/Index.html @@ -59,7 +59,7 @@
-

{{$goods.title}}

+

style="color:{{$goods.title_color}};">{{$goods.title}}

@@ -217,7 +217,7 @@
- {{$v.title}} + style="color:{{$v.title_color}};">{{$v.title}}
¥{{$v.price}}
@@ -273,6 +273,7 @@ +