Showing
1 changed file
with
5 additions
and
2 deletions
@@ -9,6 +9,8 @@ var $ = require('jquery'), | @@ -9,6 +9,8 @@ var $ = require('jquery'), | ||
9 | 9 | ||
10 | var diaLog = require('./dialog'); | 10 | var diaLog = require('./dialog'); |
11 | 11 | ||
12 | +var tip = require('../plugin/tip'); | ||
13 | + | ||
12 | var $navLi = $('#fav-tab > li'), | 14 | var $navLi = $('#fav-tab > li'), |
13 | $favContainer = $('.fav-content > .fav-type'), | 15 | $favContainer = $('.fav-content > .fav-type'), |
14 | swiperObj = {}, | 16 | swiperObj = {}, |
@@ -90,6 +92,7 @@ function loadData($parent, url, page) { | @@ -90,6 +92,7 @@ function loadData($parent, url, page) { | ||
90 | if (data === ' ') { | 92 | if (data === ' ') { |
91 | $loadingMask.addClass('hide'); | 93 | $loadingMask.addClass('hide'); |
92 | $parent.closest('.fav-type').find('.fav-null-box').removeClass('hide'); | 94 | $parent.closest('.fav-type').find('.fav-null-box').removeClass('hide'); |
95 | + window.rePosFooter(); | ||
93 | } else if (data === 'end') { | 96 | } else if (data === 'end') { |
94 | 97 | ||
95 | //处理data等于end时如果loadingMask存在且没有hide样式的情况 | 98 | //处理data等于end时如果loadingMask存在且没有hide样式的情况 |
@@ -257,7 +260,7 @@ $(document).on('touchend', '.swiper-header', function() { | @@ -257,7 +260,7 @@ $(document).on('touchend', '.swiper-header', function() { | ||
257 | } | 260 | } |
258 | }); | 261 | }); |
259 | 262 | ||
260 | -$('.invalidGoods').on('touchstart touchend', function() { | 263 | +$('.invalidGoods').on('touchstart touchend', function(e) { |
261 | var $this = $(e.target).closest('span'); | 264 | var $this = $(e.target).closest('span'); |
262 | 265 | ||
263 | if ($this.hasClass('del-fav')) { | 266 | if ($this.hasClass('del-fav')) { |
@@ -265,4 +268,4 @@ $('.invalidGoods').on('touchstart touchend', function() { | @@ -265,4 +268,4 @@ $('.invalidGoods').on('touchstart touchend', function() { | ||
265 | } | 268 | } |
266 | tip.show('商品已下架'); | 269 | tip.show('商品已下架'); |
267 | return false; | 270 | return false; |
268 | -}); | ||
271 | +}); |
-
Please register or login to post a comment