Authored by Lynnic

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop

@@ -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/';
@@ -214,7 +214,7 @@ function tsAnimate() { @@ -214,7 +214,7 @@ function tsAnimate() {
214 214
215 setTimeout(tsAnimate, 3000); 215 setTimeout(tsAnimate, 3000);
216 216
217 -$('.home-header .search-btn').on('touchstart', function() { 217 +$('.home-header .iconfont').on('touchstart', function() {
218 $(this).addClass('highlight'); 218 $(this).addClass('highlight');
219 }).on('touchend touchcancel', function() { 219 }).on('touchend touchcancel', function() {
220 $(this).removeClass('highlight'); 220 $(this).removeClass('highlight');
@@ -75,11 +75,11 @@ @@ -75,11 +75,11 @@
75 font-size: 40rem / $pxConvertRem; 75 font-size: 40rem / $pxConvertRem;
76 line-height: 90rem / $pxConvertRem; 76 line-height: 90rem / $pxConvertRem;
77 } 77 }
  78 + }
78 79
79 - &.highlight { 80 + .iconfont.highlight {
80 background: rgba(200,200,200,.4); 81 background: rgba(200,200,200,.4);
81 } 82 }
82 - }  
83 } 83 }
84 84
85 .girls-wrap .home-header { 85 .girls-wrap .home-header {
@@ -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;