Showing
1 changed file
with
7 additions
and
3 deletions
@@ -40,8 +40,8 @@ seckillObj = { | @@ -40,8 +40,8 @@ seckillObj = { | ||
40 | var focus = $el.$navUl.find('>li.focus'); | 40 | var focus = $el.$navUl.find('>li.focus'); |
41 | 41 | ||
42 | self.$productList = $('.product-list'); | 42 | self.$productList = $('.product-list'); |
43 | - $el.$navUl.find('>li').click(function() { | ||
44 | - self.selectTime(self); | 43 | + $el.$navUl.find('>li').click(function(event) { |
44 | + self.selectTime(event.currentTarget); | ||
45 | }); | 45 | }); |
46 | 46 | ||
47 | $(window).resize(function() { | 47 | $(window).resize(function() { |
@@ -208,8 +208,12 @@ seckillObj = { | @@ -208,8 +208,12 @@ seckillObj = { | ||
208 | 208 | ||
209 | // 刷新商品列表 | 209 | // 刷新商品列表 |
210 | var focusElem = $el.$navUl.find('>li.focus'); | 210 | var focusElem = $el.$navUl.find('>li.focus'); |
211 | + | ||
211 | if (focusElem.length) { | 212 | if (focusElem.length) { |
212 | - that.refreshProductList(focusElem.find('input.activityId').val()); | 213 | + that.refreshProductList( |
214 | + focusElem.find('input.activityId').val(), | ||
215 | + focusElem.find('input.date').val() | ||
216 | + ); | ||
213 | } | 217 | } |
214 | }, | 218 | }, |
215 | 219 |
-
Please register or login to post a comment