Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
1 changed file
with
4 additions
and
4 deletions
@@ -8,18 +8,18 @@ var page = 1, | @@ -8,18 +8,18 @@ var page = 1, | ||
8 | hotnav, | 8 | hotnav, |
9 | listTop, | 9 | listTop, |
10 | navSwiper, | 10 | navSwiper, |
11 | - notab=0, | 11 | + notab = 0, |
12 | sort = '', | 12 | sort = '', |
13 | id = ''; | 13 | id = ''; |
14 | 14 | ||
15 | function hotrank(page, sort, tabId, notab) { | 15 | function hotrank(page, sort, tabId, notab) { |
16 | + console.log(sort); | ||
16 | $.ajax({ | 17 | $.ajax({ |
17 | type: 'GET', | 18 | type: 'GET', |
18 | - url: '/product/newsale/selectHotrank', | 19 | + url: '/product/newsale/selectHotrank?'+sort, |
19 | dataType: 'html', | 20 | dataType: 'html', |
20 | data: { | 21 | data: { |
21 | page: page, | 22 | page: page, |
22 | - sort: sort, | ||
23 | tab_id: tabId, | 23 | tab_id: tabId, |
24 | notab: notab | 24 | notab: notab |
25 | }, | 25 | }, |
@@ -48,8 +48,8 @@ function hotrank(page, sort, tabId, notab) { | @@ -48,8 +48,8 @@ function hotrank(page, sort, tabId, notab) { | ||
48 | hotnav = new Hammer($('.s-goods-nav .nav-item')[index]); | 48 | hotnav = new Hammer($('.s-goods-nav .nav-item')[index]); |
49 | hotnav.on('tap', function(e) { | 49 | hotnav.on('tap', function(e) { |
50 | var navItme = $('.s-goods-nav .nav-item').eq(index); | 50 | var navItme = $('.s-goods-nav .nav-item').eq(index); |
51 | - | ||
52 | id = navItme.data('id') ? navItme.data('id') : ''; | 51 | id = navItme.data('id') ? navItme.data('id') : ''; |
52 | + sort = navItme.data('sort') ? navItme.data('sort') : ''; | ||
53 | page = 1; | 53 | page = 1; |
54 | notab = 1; | 54 | notab = 1; |
55 | hotrank(page, sort, id, notab); | 55 | hotrank(page, sort, id, notab); |
-
Please register or login to post a comment