...
|
...
|
@@ -14,7 +14,6 @@ use Index\UserModel as UserModel; |
|
|
* @package
|
|
|
* @copyright yoho.inc
|
|
|
* @version 1.0 (2015-10-28 16:28:32)
|
|
|
* @author fei.hong <fei.hong@yoho.cn>
|
|
|
*/
|
|
|
class HomeController extends AbstractAction
|
|
|
{
|
...
|
...
|
@@ -27,7 +26,12 @@ class HomeController extends AbstractAction |
|
|
public function init()
|
|
|
{
|
|
|
// 检查用户是否登录, 未登录则跳转到登录页
|
|
|
$uid = 8826435; //$this->getUid(true);
|
|
|
// @todo 为了方便测试,支持传uid参数
|
|
|
$uid = $this->getUid();
|
|
|
if (!$uid) {
|
|
|
$uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true);
|
|
|
}
|
|
|
|
|
|
$action = $this->getRequest()->getActionName();
|
|
|
if (!$uid && $action !== 'index') {
|
|
|
$this->go(Helpers::url('/signin.html'));
|
...
|
...
|
@@ -654,4 +658,28 @@ class HomeController extends AbstractAction |
|
|
$this->_view->display('order-detail', array('orderDetail' => $data, 'orderDetailPage' => true));
|
|
|
}
|
|
|
|
|
|
} |
|
|
/**
|
|
|
* 帮助列表页
|
|
|
*/
|
|
|
private function IHelpAction()
|
|
|
{
|
|
|
$this->setTitle('帮助中心');
|
|
|
$this->setNavHeader('帮助中心');
|
|
|
$data = array(
|
|
|
'iHelp' => array(
|
|
|
array('name' => '新用户注册','url' => 'http://m.dev.yohobuy.com/' ),
|
|
|
array('name' => '交款须知' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
array('name' => '服务条款' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
array('name' => '网站订购流程' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
array('name' => '会员登录' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
array('name' => '网站订单修改' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
array('name' => 'YOHO币' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
array('name' => '常见问题' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
array('name' => '支付方式' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
array('name' => '发票制度说明' ,'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
array('name' => '配送时间' ,'url' => 'http://m.dev.yohobuy.com/')
|
|
|
)
|
|
|
);
|
|
|
$this->_view->display('i-help', $data);
|
|
|
}
|
|
|
} |
...
|
...
|
|