Showing
2 changed files
with
16 additions
and
26 deletions
@@ -355,25 +355,15 @@ class AbstractAction extends Controller_Abstract | @@ -355,25 +355,15 @@ class AbstractAction extends Controller_Abstract | ||
355 | * | 355 | * |
356 | * @return void | 356 | * @return void |
357 | */ | 357 | */ |
358 | - protected function setNavFooter() | 358 | + protected function setNavFooterTab() |
359 | { | 359 | { |
360 | - $footer = array(); | ||
361 | - | ||
362 | - // 已登录 @todo | ||
363 | - $name = $this->getUname(); | ||
364 | - if (!empty($name)) { | ||
365 | - $footer['user'] = array(); | ||
366 | - $footer['user']['name'] = $name; // 昵称 | ||
367 | - $footer['user']['url'] = ''; // 个人中心链接 | ||
368 | - $footer['user']['signoutUrl'] = '/passport/login/out'; // 登出链接 | ||
369 | - } | ||
370 | - // 未登录 | ||
371 | - else { | ||
372 | - $footer['loginUrl'] = '/signin.html'; // 登录链接 | ||
373 | - $footer['signupUrl'] = '/reg.html'; // 注册链接 | ||
374 | - } | ||
375 | - | ||
376 | - $this->_view->assign('pageFooter', $footer); | 360 | + $this->_view->assign('showFooterTab', array( |
361 | + 'indexUrl' => Helpers::url('/?go=1'), //首页 | ||
362 | + 'categoryUrl' => Helpers::url('/cate'), // 分类 | ||
363 | + 'guangUrl' => Helpers::url('', null, 'guang'), // 逛首页 | ||
364 | + 'shoppingCartUrl' => Helpers::url('/cart/index/index'), // 购物车 | ||
365 | + 'mineUrl' => Helpers::url('/home'), // 个人中心 | ||
366 | + )); | ||
377 | } | 367 | } |
378 | 368 | ||
379 | /** | 369 | /** |
@@ -17,16 +17,16 @@ use Plugin\Cache; | @@ -17,16 +17,16 @@ use Plugin\Cache; | ||
17 | class Yohobuy | 17 | class Yohobuy |
18 | { | 18 | { |
19 | 19 | ||
20 | - // /* 正式环境 */ | ||
21 | - // const API_URL = 'http://api2.open.yohobuy.com/'; | ||
22 | - // const SERVICE_URL = 'http://service.api.yohobuy.com/'; | ||
23 | - // const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
24 | - | ||
25 | - /* 测试环境 */ | ||
26 | - const API_URL = 'http://test2.open.yohobuy.com/'; | ||
27 | - const SERVICE_URL = 'http://test.service.api.yohobuy.com/'; | 20 | + /* 正式环境 */ |
21 | + const API_URL = 'http://api2.open.yohobuy.com/'; | ||
22 | + const SERVICE_URL = 'http://service.api.yohobuy.com/'; | ||
28 | const YOHOBUY_URL = 'http://www.yohobuy.com/'; | 23 | const YOHOBUY_URL = 'http://www.yohobuy.com/'; |
29 | 24 | ||
25 | +// /* 测试环境 */ | ||
26 | +// const API_URL = 'http://test2.open.yohobuy.com/'; | ||
27 | +// const SERVICE_URL = 'http://test.service.api.yohobuy.com/'; | ||
28 | +// const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
29 | + | ||
30 | /** | 30 | /** |
31 | * 私钥列表 | 31 | * 私钥列表 |
32 | * | 32 | * |
-
Please register or login to post a comment