|
@@ -31,7 +31,7 @@ class HomeController extends AbstractAction |
|
@@ -31,7 +31,7 @@ class HomeController extends AbstractAction |
31
|
if (!$uid) {
|
31
|
if (!$uid) {
|
32
|
$uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true);
|
32
|
$uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true);
|
33
|
}
|
33
|
}
|
34
|
-
|
34
|
+
|
35
|
$action = $this->getRequest()->getActionName();
|
35
|
$action = $this->getRequest()->getActionName();
|
36
|
if (!$uid && $action !== 'index') {
|
36
|
if (!$uid && $action !== 'index') {
|
37
|
$this->go(Helpers::url('/signin.html'));
|
37
|
$this->go(Helpers::url('/signin.html'));
|
|
@@ -64,25 +64,25 @@ class HomeController extends AbstractAction |
|
@@ -64,25 +64,25 @@ class HomeController extends AbstractAction |
64
|
$this->_view->display('index', $data);
|
64
|
$this->_view->display('index', $data);
|
65
|
}
|
65
|
}
|
66
|
|
66
|
|
67
|
- /**
|
|
|
68
|
- * 为您优选
|
|
|
69
|
- */
|
|
|
70
|
- public function preferenceAction()
|
|
|
71
|
- {
|
|
|
72
|
- $result = array();
|
67
|
+ /**
|
|
|
68
|
+ * 为您优选
|
|
|
69
|
+ */
|
|
|
70
|
+ public function preferenceAction()
|
|
|
71
|
+ {
|
|
|
72
|
+ $result = array();
|
73
|
|
73
|
|
74
|
- if ($this->isAjax()) {
|
|
|
75
|
- // 优选新品数据
|
|
|
76
|
- $channel = Helpers::getChannelByCookie();
|
|
|
77
|
- $result = UserModel::getPreferenceData($channel);
|
|
|
78
|
- }
|
74
|
+ if ($this->isAjax()) {
|
|
|
75
|
+ // 优选新品数据
|
|
|
76
|
+ $channel = Helpers::getChannelByCookie();
|
|
|
77
|
+ $result = UserModel::getPreferenceData($channel);
|
|
|
78
|
+ }
|
79
|
|
79
|
|
80
|
- if (empty($result)) {
|
|
|
81
|
- echo ' ';
|
|
|
82
|
- } else {
|
|
|
83
|
- $this->_view->display('recommend-content', $result);
|
|
|
84
|
- }
|
|
|
85
|
- }
|
80
|
+ if (empty($result)) {
|
|
|
81
|
+ echo ' ';
|
|
|
82
|
+ } else {
|
|
|
83
|
+ $this->_view->display('recommend-content', $result);
|
|
|
84
|
+ }
|
|
|
85
|
+ }
|
86
|
|
86
|
|
87
|
/**
|
87
|
/**
|
88
|
* 用户收藏的商品
|
88
|
* 用户收藏的商品
|
|
@@ -147,9 +147,9 @@ class HomeController extends AbstractAction |
|
@@ -147,9 +147,9 @@ class HomeController extends AbstractAction |
147
|
|
147
|
|
148
|
if ($this->isAjax()) {
|
148
|
if ($this->isAjax()) {
|
149
|
$uid = $this->getUid();
|
149
|
$uid = $this->getUid();
|
150
|
- $udid = $this->getUdid();
|
|
|
151
|
- $page = $this->get('page', 1);
|
|
|
152
|
- $limit = $this->get('limit', 100);
|
150
|
+ $udid = $this->getUdid();
|
|
|
151
|
+ $page = $this->get('page', 1);
|
|
|
152
|
+ $limit = $this->get('limit', 100);
|
153
|
|
153
|
|
154
|
$result = UserModel::browserRecord($uid, $udid, $page, $limit);
|
154
|
$result = UserModel::browserRecord($uid, $udid, $page, $limit);
|
155
|
}
|
155
|
}
|
|
@@ -310,7 +310,7 @@ class HomeController extends AbstractAction |
|
@@ -310,7 +310,7 @@ class HomeController extends AbstractAction |
310
|
}
|
310
|
}
|
311
|
}
|
311
|
}
|
312
|
|
312
|
|
313
|
- /**
|
313
|
+ /**
|
314
|
* 在线客服
|
314
|
* 在线客服
|
315
|
*/
|
315
|
*/
|
316
|
public function onlineServiceAction()
|
316
|
public function onlineServiceAction()
|
|
@@ -469,13 +469,14 @@ class HomeController extends AbstractAction |
|
@@ -469,13 +469,14 @@ class HomeController extends AbstractAction |
469
|
$uid = $this->getUid();
|
469
|
$uid = $this->getUid();
|
470
|
$data = GradeModel::getGrade($gender, $channel, $uid);
|
470
|
$data = GradeModel::getGrade($gender, $channel, $uid);
|
471
|
$data['pageFooter'] = true;
|
471
|
$data['pageFooter'] = true;
|
472
|
-
|
472
|
+
|
473
|
$this->_view->display('vip-grade', $data);
|
473
|
$this->_view->display('vip-grade', $data);
|
474
|
}
|
474
|
}
|
475
|
|
475
|
|
476
|
/*
|
476
|
/*
|
477
|
* 会员特权查看页
|
477
|
* 会员特权查看页
|
478
|
*/
|
478
|
*/
|
|
|
479
|
+
|
479
|
public function preferentialAction()
|
480
|
public function preferentialAction()
|
480
|
{
|
481
|
{
|
481
|
//设置网站seo信息
|
482
|
//设置网站seo信息
|
|
@@ -494,6 +495,7 @@ class HomeController extends AbstractAction |
|
@@ -494,6 +495,7 @@ class HomeController extends AbstractAction |
494
|
/*
|
495
|
/*
|
495
|
* 我的订单页面,获得nav导航条焦点。并且异步请求订单详情列表页(getOrders)
|
496
|
* 我的订单页面,获得nav导航条焦点。并且异步请求订单详情列表页(getOrders)
|
496
|
*/
|
497
|
*/
|
|
|
498
|
+
|
497
|
public function orderAction()
|
499
|
public function orderAction()
|
498
|
{
|
500
|
{
|
499
|
//获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论。
|
501
|
//获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论。
|
|
@@ -554,6 +556,7 @@ class HomeController extends AbstractAction |
|
@@ -554,6 +556,7 @@ class HomeController extends AbstractAction |
554
|
/*
|
556
|
/*
|
555
|
* 我的订单-取消订单
|
557
|
* 我的订单-取消订单
|
556
|
*/
|
558
|
*/
|
|
|
559
|
+
|
557
|
public function cancelOrderAction()
|
560
|
public function cancelOrderAction()
|
558
|
{
|
561
|
{
|
559
|
//判断是不是ajax请求
|
562
|
//判断是不是ajax请求
|
|
@@ -574,6 +577,7 @@ class HomeController extends AbstractAction |
|
@@ -574,6 +577,7 @@ class HomeController extends AbstractAction |
574
|
/*
|
577
|
/*
|
575
|
* 我的订单-删除订单
|
578
|
* 我的订单-删除订单
|
576
|
*/
|
579
|
*/
|
|
|
580
|
+
|
577
|
public function delOrderAction()
|
581
|
public function delOrderAction()
|
578
|
{
|
582
|
{
|
579
|
//判断是不是ajax请求
|
583
|
//判断是不是ajax请求
|
|
@@ -594,6 +598,7 @@ class HomeController extends AbstractAction |
|
@@ -594,6 +598,7 @@ class HomeController extends AbstractAction |
594
|
/*
|
598
|
/*
|
595
|
* 我的订单-支付链接获取
|
599
|
* 我的订单-支付链接获取
|
596
|
*/
|
600
|
*/
|
|
|
601
|
+
|
597
|
private function paymentAction()
|
602
|
private function paymentAction()
|
598
|
{
|
603
|
{
|
599
|
$gender = Helpers::getGenderByCookie();
|
604
|
$gender = Helpers::getGenderByCookie();
|
|
@@ -604,6 +609,7 @@ class HomeController extends AbstractAction |
|
@@ -604,6 +609,7 @@ class HomeController extends AbstractAction |
604
|
/*
|
609
|
/*
|
605
|
* 我的订单-随便逛逛链接获取
|
610
|
* 我的订单-随便逛逛链接获取
|
606
|
*/
|
611
|
*/
|
|
|
612
|
+
|
607
|
private function strollAction()
|
613
|
private function strollAction()
|
608
|
{
|
614
|
{
|
609
|
//获取性别、频道数据
|
615
|
//获取性别、频道数据
|
|
@@ -662,24 +668,25 @@ class HomeController extends AbstractAction |
|
@@ -662,24 +668,25 @@ class HomeController extends AbstractAction |
662
|
* 帮助列表页
|
668
|
* 帮助列表页
|
663
|
*/
|
669
|
*/
|
664
|
private function IHelpAction()
|
670
|
private function IHelpAction()
|
665
|
- {
|
671
|
+ {
|
666
|
$this->setTitle('帮助中心');
|
672
|
$this->setTitle('帮助中心');
|
667
|
$this->setNavHeader('帮助中心');
|
673
|
$this->setNavHeader('帮助中心');
|
668
|
$data = array(
|
674
|
$data = array(
|
669
|
'iHelp' => array(
|
675
|
'iHelp' => array(
|
670
|
- array('name' => '新用户注册','url' => 'http://m.dev.yohobuy.com/' ),
|
|
|
671
|
- array('name' => '交款须知' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
672
|
- array('name' => '服务条款' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
673
|
- array('name' => '网站订购流程' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
674
|
- array('name' => '会员登录' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
675
|
- array('name' => '网站订单修改' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
676
|
- array('name' => 'YOHO币' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
677
|
- array('name' => '常见问题' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
678
|
- array('name' => '支付方式' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
679
|
- array('name' => '发票制度说明' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
680
|
- array('name' => '配送时间' ,'url' => 'http://m.dev.yohobuy.com/')
|
676
|
+ array('name' => '新用户注册', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
677
|
+ array('name' => '交款须知', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
678
|
+ array('name' => '服务条款', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
679
|
+ array('name' => '网站订购流程', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
680
|
+ array('name' => '会员登录', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
681
|
+ array('name' => '网站订单修改', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
682
|
+ array('name' => 'YOHO币', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
683
|
+ array('name' => '常见问题', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
684
|
+ array('name' => '支付方式', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
685
|
+ array('name' => '发票制度说明', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
686
|
+ array('name' => '配送时间', 'url' => 'http://m.dev.yohobuy.com/')
|
681
|
)
|
687
|
)
|
682
|
);
|
688
|
);
|
683
|
$this->_view->display('i-help', $data);
|
689
|
$this->_view->display('i-help', $data);
|
684
|
}
|
690
|
}
|
685
|
-} |
691
|
+
|
|
|
692
|
+} |