bug fix for 1330/1328/1326/1323/1295
Showing
4 changed files
with
44 additions
and
11 deletions
@@ -137,6 +137,7 @@ favTabHammer.on('tap', function(e) { | @@ -137,6 +137,7 @@ favTabHammer.on('tap', function(e) { | ||
137 | index = $cur.index(); | 137 | index = $cur.index(); |
138 | 138 | ||
139 | if (index === 0) { | 139 | if (index === 0) { |
140 | + brandTab = false; | ||
140 | if ($favProductList.find('li').length === 0 && | 141 | if ($favProductList.find('li').length === 0 && |
141 | $favProductList.closest('.fav-type').find('.fav-null-box').hasClass('hide')) { | 142 | $favProductList.closest('.fav-type').find('.fav-null-box').hasClass('hide')) { |
142 | loadData($favProductList, 'favProduct', 1); | 143 | loadData($favProductList, 'favProduct', 1); |
@@ -202,6 +203,11 @@ favContentHammer.on('tap', function(e) { | @@ -202,6 +203,11 @@ favContentHammer.on('tap', function(e) { | ||
202 | }).fail(function() { | 203 | }).fail(function() { |
203 | 204 | ||
204 | //TODO | 205 | //TODO |
206 | + | ||
207 | + diaLog.showDialog({ | ||
208 | + autoHide: true, | ||
209 | + dialogText: '网络错误~' | ||
210 | + }); | ||
205 | }); | 211 | }); |
206 | }); | 212 | }); |
207 | }); | 213 | }); |
@@ -126,6 +126,11 @@ $likeBtn.bind('click', function() { | @@ -126,6 +126,11 @@ $likeBtn.bind('click', function() { | ||
126 | }).fail(function(data) { | 126 | }).fail(function(data) { |
127 | 127 | ||
128 | //TODO | 128 | //TODO |
129 | + | ||
130 | + diaLog.showDialog({ | ||
131 | + autoHide: true, | ||
132 | + dialogText: '网络错误~' | ||
133 | + }); | ||
129 | }); | 134 | }); |
130 | }); | 135 | }); |
131 | 136 | ||
@@ -148,5 +153,10 @@ $disLikeBtn.bind('click', function() { | @@ -148,5 +153,10 @@ $disLikeBtn.bind('click', function() { | ||
148 | }).fail(function(data) { | 153 | }).fail(function(data) { |
149 | 154 | ||
150 | //TODO | 155 | //TODO |
156 | + | ||
157 | + diaLog.showDialog({ | ||
158 | + autoHide: true, | ||
159 | + dialogText: '网络错误~' | ||
160 | + }); | ||
151 | }); | 161 | }); |
152 | }); | 162 | }); |
@@ -126,6 +126,7 @@ | @@ -126,6 +126,7 @@ | ||
126 | 126 | ||
127 | .price-underline { | 127 | .price-underline { |
128 | text-decoration: line-through; | 128 | text-decoration: line-through; |
129 | + margin-left: pxToRem(15px); | ||
129 | } | 130 | } |
130 | } | 131 | } |
131 | 132 | ||
@@ -188,6 +189,11 @@ | @@ -188,6 +189,11 @@ | ||
188 | } | 189 | } |
189 | //品牌收藏 | 190 | //品牌收藏 |
190 | .fav-brand-swiper { | 191 | .fav-brand-swiper { |
192 | + border-bottom: 1px solid #ccc; | ||
193 | + | ||
194 | + &.none-border-bottom { | ||
195 | + border-bottom: none; | ||
196 | + } | ||
191 | 197 | ||
192 | .swiper-header { | 198 | .swiper-header { |
193 | height: pxToRem(100px); | 199 | height: pxToRem(100px); |
@@ -239,17 +245,26 @@ | @@ -239,17 +245,26 @@ | ||
239 | } | 245 | } |
240 | } | 246 | } |
241 | .fav-more { | 247 | .fav-more { |
242 | - $width: pxToRem(image_width(sprite-file($fav, fav-more))); | ||
243 | - $height: pxToRem(image_height(sprite-file($fav, fav-more))); | ||
244 | - | ||
245 | - @include rem-sprite($fav, fav-more); | ||
246 | - width: $width; | ||
247 | - height: $height; | ||
248 | - | 248 | + width: 2.5rem; |
249 | + height: 2.5rem; | ||
249 | position: absolute; | 250 | position: absolute; |
250 | - top: 50%; | ||
251 | - right: pxToRem(30px); | ||
252 | - margin-top: -$height / 2; | 251 | + top: 0; |
252 | + right: 0; | ||
253 | + | ||
254 | + &:after { | ||
255 | + $width: pxToRem(image_width(sprite-file($fav, fav-more))); | ||
256 | + $height: pxToRem(image_height(sprite-file($fav, fav-more))); | ||
257 | + | ||
258 | + @include rem-sprite($fav, fav-more); | ||
259 | + width: $width; | ||
260 | + height: $height; | ||
261 | + | ||
262 | + position: absolute; | ||
263 | + top: 50%; | ||
264 | + right: pxToRem(30px); | ||
265 | + margin-top: -$height / 2; | ||
266 | + content: ''; | ||
267 | + } | ||
253 | } | 268 | } |
254 | } | 269 | } |
255 | .swiper-container { | 270 | .swiper-container { |
1 | {{# hasFavBrand}} | 1 | {{# hasFavBrand}} |
2 | -<div class="fav-brand-swiper"> | 2 | +<div class="fav-brand-swiper {{#if productList}}none-border-bottom{{/if}}"> |
3 | <div class="swiper-header"> | 3 | <div class="swiper-header"> |
4 | <div class="swiper-logo"> | 4 | <div class="swiper-logo"> |
5 | <img src="{{brandImg}}" alt=""/> | 5 | <img src="{{brandImg}}" alt=""/> |
@@ -17,6 +17,7 @@ | @@ -17,6 +17,7 @@ | ||
17 | </div> | 17 | </div> |
18 | <a class="fav-more" href="{{link}}"></a> | 18 | <a class="fav-more" href="{{link}}"></a> |
19 | </div> | 19 | </div> |
20 | + {{#if productList}} | ||
20 | <div id="swiper-container-{{id}}" class="swiper-container" data-id="{{id}}"> | 21 | <div id="swiper-container-{{id}}" class="swiper-container" data-id="{{id}}"> |
21 | <ul class="swiper-wrapper swiper-wrapper-{{id}}"> | 22 | <ul class="swiper-wrapper swiper-wrapper-{{id}}"> |
22 | {{# productList}} | 23 | {{# productList}} |
@@ -33,5 +34,6 @@ | @@ -33,5 +34,6 @@ | ||
33 | {{/ productList}} | 34 | {{/ productList}} |
34 | </ul> | 35 | </ul> |
35 | </div> | 36 | </div> |
37 | + {{/if}} | ||
36 | </div> | 38 | </div> |
37 | {{/ hasFavBrand}} | 39 | {{/ hasFavBrand}} |
-
Please register or login to post a comment