...
|
...
|
@@ -36,9 +36,12 @@ class HomeController extends AbstractAction |
|
|
$excludeActions = array(
|
|
|
'index',
|
|
|
'onlineservice',
|
|
|
'onlineservicedetail',
|
|
|
'suggest',
|
|
|
'suggestsub',
|
|
|
'suggestimgupload',
|
|
|
'help',
|
|
|
'helpdetail',
|
|
|
);
|
|
|
if (!$this->_uid && !in_array($action, $excludeActions) && !$this->isAjax()) {
|
|
|
$this->go(Helpers::url('/signin.html'));
|
...
|
...
|
@@ -789,25 +792,31 @@ class HomeController extends AbstractAction |
|
|
/**
|
|
|
* 帮助列表页
|
|
|
*/
|
|
|
private function IHelpAction()
|
|
|
public 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/')
|
|
|
)
|
|
|
);
|
|
|
|
|
|
$data = UserModel::getHelpListData();
|
|
|
|
|
|
$this->_view->display('i-help', $data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 帮助详情页
|
|
|
*/
|
|
|
public function helpdetailAction()
|
|
|
{
|
|
|
$code = $this->get('code', null);
|
|
|
if (empty($code)) {
|
|
|
$this->error();
|
|
|
}
|
|
|
|
|
|
$this->setTitle('帮助中心');
|
|
|
$this->setNavHeader('帮助中心');
|
|
|
|
|
|
$data = array('content'=>UserModel::getHelpDetailData($code));
|
|
|
|
|
|
$this->_view->display('i-help', $data);
|
|
|
}
|
|
|
} |
...
|
...
|
|