Authored by ccbikai

个人中心首页登录注册按钮

@@ -18,10 +18,10 @@ class Yohobuy @@ -18,10 +18,10 @@ class Yohobuy
18 { 18 {
19 19
20 // /* 正式环境 */ 20 // /* 正式环境 */
21 -// const API_URL = 'http://api2.open.yohobuy.com/';  
22 -// const API_URL2 = 'http://api.open.yohobuy.com/';  
23 -// const SERVICE_URL = 'http://service.api.yohobuy.com/';  
24 -// const YOHOBUY_URL = 'http://www.yohobuy.com/'; 21 + // const API_URL = 'http://api2.open.yohobuy.com/';
  22 + // const API_URL2 = 'http://api.open.yohobuy.com/';
  23 + // const SERVICE_URL = 'http://service.api.yohobuy.com/';
  24 + // const YOHOBUY_URL = 'http://www.yohobuy.com/';
25 25
26 /* 测试环境 */ 26 /* 测试环境 */
27 const API_URL = 'http://test2.open.yohobuy.com/'; 27 const API_URL = 'http://test2.open.yohobuy.com/';
@@ -21,15 +21,15 @@ @@ -21,15 +21,15 @@
21 </div> 21 </div>
22 <div class="my-link clearfix {{^isLogin}}no-login{{/isLogin}}"> 22 <div class="my-link clearfix {{^isLogin}}no-login{{/isLogin}}">
23 <a class="link-item" href="/home/favorite"> 23 <a class="link-item" href="/home/favorite">
24 - {{#if product_favorite_total}}{{product_favorite_total}}{{/if}} 24 + {{#isLogin}}{{product_favorite_total}}{{/isLogin}}
25 <p>收藏的商品</p> 25 <p>收藏的商品</p>
26 </a> 26 </a>
27 <a class="link-item" href="/home/favorite?tab=brand"> 27 <a class="link-item" href="/home/favorite?tab=brand">
28 - {{#if brand_favorite_total}}{{brand_favorite_total}}{{/if}} 28 + {{#isLogin}}{{brand_favorite_total}}{{/isLogin}}
29 <p>收藏的品牌</p> 29 <p>收藏的品牌</p>
30 </a> 30 </a>
31 <a class="link-item" href="/home/"> 31 <a class="link-item" href="/home/">
32 - {{#if product_browse}}{{product_browse}}{{/if}} 32 + {{#isLogin}}{{product_browse}}{{/isLogin}}
33 <p>浏览记录</p> 33 <p>浏览记录</p>
34 </a> 34 </a>
35 </div> 35 </div>
@@ -48,7 +48,7 @@ class HomeController extends AbstractAction @@ -48,7 +48,7 @@ class HomeController extends AbstractAction
48 'myIndexPage' => true, 48 'myIndexPage' => true,
49 'pageFooter' => true 49 'pageFooter' => true
50 ); 50 );
51 - echo $this->getRequest()->getActionName(); 51 + // echo $this->getRequest()->getActionName();
52 $uid = $this->getUid(); 52 $uid = $this->getUid();
53 if ($uid) { 53 if ($uid) {
54 $data['isLogin'] = true; 54 $data['isLogin'] = true;