Merge branch 'develop' into test
Showing
6 changed files
with
22 additions
and
10 deletions
@@ -146,7 +146,10 @@ function rePosFooter() { | @@ -146,7 +146,10 @@ function rePosFooter() { | ||
146 | var uid = getUid(); | 146 | var uid = getUid(); |
147 | 147 | ||
148 | uid = uid === 0 ? '' : uid; | 148 | uid = uid === 0 ? '' : uid; |
149 | - window._yas(1 * new Date(), '1.0.8', 'yohobuy_m', uid, ''); | 149 | + |
150 | + if (window._yas) { | ||
151 | + window._yas(1 * new Date(), '1.0.8', 'yohobuy_m', uid, ''); | ||
152 | + } | ||
150 | }()); | 153 | }()); |
151 | 154 | ||
152 | 155 |
@@ -86,9 +86,7 @@ likeHammer.on('tap', function(e) { | @@ -86,9 +86,7 @@ likeHammer.on('tap', function(e) { | ||
86 | if (data.code === 200) { | 86 | if (data.code === 200) { |
87 | $this.toggleClass('like'); | 87 | $this.toggleClass('like'); |
88 | } else if (data.code === 400 || data.code === 412) { | 88 | } else if (data.code === 400 || data.code === 412) { |
89 | - | ||
90 | - //code:412 用户ID不正确,即未登录 | ||
91 | - tip.show('未登录'); | 89 | + location.href = data.data; //未登录跳转登录页面 |
92 | } else { | 90 | } else { |
93 | tip.show(data.message); | 91 | tip.show(data.message); |
94 | } | 92 | } |
@@ -104,6 +104,8 @@ function initFilter(opt) { | @@ -104,6 +104,8 @@ function initFilter(opt) { | ||
104 | var $this = $(e.target), | 104 | var $this = $(e.target), |
105 | $cur; | 105 | $cur; |
106 | 106 | ||
107 | + e.preventDefault();//防止透点 | ||
108 | + | ||
107 | if ($this.closest('.filter-body').length > 0) { | 109 | if ($this.closest('.filter-body').length > 0) { |
108 | $cur = $this.closest('.sub-item'); | 110 | $cur = $this.closest('.sub-item'); |
109 | if ($cur.length > 0) { | 111 | if ($cur.length > 0) { |
@@ -401,7 +401,7 @@ if ($brandHeader.length > 0) { | @@ -401,7 +401,7 @@ if ($brandHeader.length > 0) { | ||
401 | if (data.code === 200) { | 401 | if (data.code === 200) { |
402 | $this.toggleClass('coled'); | 402 | $this.toggleClass('coled'); |
403 | } else if (data.code === 400 || data.code === 412) { | 403 | } else if (data.code === 400 || data.code === 412) { |
404 | - tip.show('未登录'); | 404 | + location.href = data.data;//未登录跳转登录页 |
405 | } else { | 405 | } else { |
406 | tip.show(data.message); | 406 | tip.show(data.message); |
407 | } | 407 | } |
@@ -184,10 +184,19 @@ | @@ -184,10 +184,19 @@ | ||
184 | color: #999; | 184 | color: #999; |
185 | } | 185 | } |
186 | 186 | ||
187 | + .nav-txt { | ||
188 | + display: inline-block; | ||
189 | + height: 100%; | ||
190 | + box-sizing: border-box; | ||
191 | + } | ||
192 | + | ||
187 | .active > a { | 193 | .active > a { |
188 | - border-bottom: 2px solid #000; | ||
189 | color: #000; | 194 | color: #000; |
190 | 195 | ||
196 | + .nav-txt { | ||
197 | + border-bottom: 2px solid #000; | ||
198 | + } | ||
199 | + | ||
191 | .iconfont { | 200 | .iconfont { |
192 | color: #999; | 201 | color: #999; |
193 | 202 |
@@ -52,13 +52,13 @@ | @@ -52,13 +52,13 @@ | ||
52 | <ul id="list-nav" class="list-nav clearfix"> | 52 | <ul id="list-nav" class="list-nav clearfix"> |
53 | <li class="new active"> | 53 | <li class="new active"> |
54 | <a href="javascript:void(0);"> | 54 | <a href="javascript:void(0);"> |
55 | - 最新 | 55 | + <span class="nav-txt">最新</span> |
56 | <span class="iconfont cur"></span> | 56 | <span class="iconfont cur"></span> |
57 | </a> | 57 | </a> |
58 | </li> | 58 | </li> |
59 | <li class="price"> | 59 | <li class="price"> |
60 | <a href="javascript:void(0);"> | 60 | <a href="javascript:void(0);"> |
61 | - 价格 | 61 | + <span class="nav-txt">价格</span> |
62 | <span class="icon"> | 62 | <span class="icon"> |
63 | <i class="iconfont up"></i> | 63 | <i class="iconfont up"></i> |
64 | <i class="iconfont down cur"></i> | 64 | <i class="iconfont down cur"></i> |
@@ -67,7 +67,7 @@ | @@ -67,7 +67,7 @@ | ||
67 | </li> | 67 | </li> |
68 | <li class="discount"> | 68 | <li class="discount"> |
69 | <a href="javascript:void(0);"> | 69 | <a href="javascript:void(0);"> |
70 | - 折扣 | 70 | + <span class="nav-txt">折扣</span> |
71 | <span class="icon"> | 71 | <span class="icon"> |
72 | <i class="iconfont up"></i> | 72 | <i class="iconfont up"></i> |
73 | <i class="iconfont down cur"></i> | 73 | <i class="iconfont down cur"></i> |
@@ -76,7 +76,7 @@ | @@ -76,7 +76,7 @@ | ||
76 | </li> | 76 | </li> |
77 | <li class="filter"> | 77 | <li class="filter"> |
78 | <a href="javascript:void(0);"> | 78 | <a href="javascript:void(0);"> |
79 | - 筛选 | 79 | + <span class="nav-txt">筛选</span> |
80 | <span class="iconfont"></span> | 80 | <span class="iconfont"></span> |
81 | </a> | 81 | </a> |
82 | </li> | 82 | </li> |
-
Please register or login to post a comment