Authored by Rock Zhang

去掉会员信息,订单列表,地址管理,优惠券,商品详情的评价和咨询,浏览记录,意见反馈页面的右上角导航

Code Review By Rock Zhang
... ... @@ -429,10 +429,10 @@ class AbstractAction extends Controller_Abstract
*
* @param string $title 头部标题
* @param mixed $backUrl 返回的链接
* @param string $homeUrl 返回首页的链接
* @param boolean $navBtn 是否显示右上角导航
* @return void
*/
protected function setNavHeader($title = '', $backUrl = true, $homeUrl = '/', $navBtn = false)
protected function setNavHeader($title = '', $backUrl = true, $navBtn = true)
{
$header = array();
... ... @@ -450,9 +450,9 @@ class AbstractAction extends Controller_Abstract
if (!empty($title)) {
$header['navTitle'] = $title;
}
if (!empty($homeUrl)) {
/*if (!empty($homeUrl)) {
$header['navHome'] = $homeUrl . '?go=1&t=' . time();
}
}*/
if ($navBtn) {
$header['navBtn'] = $navBtn;
}
... ...
... ... @@ -3,9 +3,9 @@
{{#navBack}}
<a href="{{#if backUrl}}{{backUrl}}{{^}}javascript:history.go(-1);{{/if}}" class="iconfont nav-back">&#xe610;</a>
{{/navBack}}
{{#navHome}}
{{#navBtn}}
<span class="iconfont nav-home">&#xe62d;</span>
{{/navHome}}
{{/navBtn}}
{{#currencyPage}}
<a href="/home/helpDetail?code=20151230-102233&caption=YOHO币介绍" class="iconfont nav-home">&#xe639;</a>
{{/currencyPage}}
... ... @@ -18,7 +18,8 @@
{{#navTitle}}
<p class="nav-title">{{.}}</p>
{{/navTitle}}
</header>
</header>
{{#navBtn}}
<div class="homebuttom none">
<ul>
<li>
... ... @@ -47,5 +48,6 @@
</li>
</ul>
</div>
{{/navBtn}}
{{/pageHeader}}
... ...
... ... @@ -186,7 +186,7 @@ class HomeController extends AbstractAction
// 设置网站标题
$this->setTitle('浏览记录');
$this->setNavHeader('浏览记录', true, SITE_MAIN);
$this->setNavHeader('浏览记录', true, false);
$this->_view->display('browse-record', array(
'browseRecordPage' => true,
... ... @@ -240,7 +240,7 @@ class HomeController extends AbstractAction
$this->auditJumpLogin();
$this->setTitle('个人信息');
$this->setNavHeader('个人信息');
$this->setNavHeader('个人信息', true, false);
$data = UserModel::getUserProfileData($this->_uid);
$data['personalDetailsPage'] = true;
... ... @@ -278,7 +278,7 @@ class HomeController extends AbstractAction
$this->auditJumpLogin();
$this->setTitle('优惠券');
$this->setNavHeader('优惠券', true, SITE_MAIN);
$this->setNavHeader('优惠券', true, false);
$coupons = array(
'couponsPage' => true,
... ... @@ -337,7 +337,7 @@ class HomeController extends AbstractAction
// 设置网站标题
$this->setTitle('地址管理');
$this->setNavHeader('地址管理', Helpers::url('/home'));
$this->setNavHeader('地址管理', Helpers::url('/home'), false);
$uid = $this->_uid;
$address = UserModel::getAddressData($uid);
... ... @@ -530,7 +530,7 @@ class HomeController extends AbstractAction
{
// 设置网站标题
$this->setTitle('意见反馈');
$this->setNavHeader('意见反馈');
$this->setNavHeader('意见反馈', true, false);
$udid = $this->getUdid();
$page = $this->get('page', 1);
... ... @@ -617,7 +617,7 @@ class HomeController extends AbstractAction
//设置网站seo信息
$this->setTitle('会员等级');
//显示网站导航头部信息
$this->setNavHeader('会员等级');
$this->setNavHeader('会员等级', true, false);
$channel = Helpers::getChannelByCookie();
$data = GradeModel::getGrade($channel, $this->_uid);
... ... @@ -638,7 +638,7 @@ class HomeController extends AbstractAction
//设置网站seo信息
$this->setTitle('会员等级');
//显示网站导航头部信息
$this->setNavHeader('会员特权详情');
$this->setNavHeader('会员特权详情', true, false);
$channel = Helpers::getChannelByCookie();
$data = GradeModel::getPreferential($channel, $this->_uid);
... ... @@ -658,7 +658,7 @@ class HomeController extends AbstractAction
$this->auditJumpLogin();
$this->setTitle('我的订单');
$this->setNavHeader('我的订单', Helpers::url('/home'));
$this->setNavHeader('我的订单', Helpers::url('/home'), false);
$order = array();
//获得type值,type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论
... ...
... ... @@ -116,9 +116,9 @@ class DetailController extends AbstractAction
$total = 0;
}
if ($total) {
$this->setNavHeader('购买评价(' . $total . ')');
$this->setNavHeader('购买评价(' . $total . ')', true, false);
} else {
$this->setNavHeader('购买评价');
$this->setNavHeader('购买评价', true, false);
}
$this->setTitle('购买评价');
... ... @@ -148,9 +148,9 @@ class DetailController extends AbstractAction
$total = 0;
}
if ($total) {
$this->setNavHeader('购买咨询(' . $total . ')');
$this->setNavHeader('购买咨询(' . $total . ')', true, false);
} else {
$this->setNavHeader('购买咨询');
$this->setNavHeader('购买咨询', true, false);
}
$this->setTitle('购买咨询');
... ...