Authored by yangyang

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

... ... @@ -8,18 +8,18 @@ var page = 1,
hotnav,
listTop,
navSwiper,
notab=0,
notab = 0,
sort = '',
id = '';
function hotrank(page, sort, tabId, notab) {
console.log(sort);
$.ajax({
type: 'GET',
url: '/product/newsale/selectHotrank',
url: '/product/newsale/selectHotrank?'+sort,
dataType: 'html',
data: {
page: page,
sort: sort,
tab_id: tabId,
notab: notab
},
... ... @@ -48,8 +48,8 @@ function hotrank(page, sort, tabId, notab) {
hotnav = new Hammer($('.s-goods-nav .nav-item')[index]);
hotnav.on('tap', function(e) {
var navItme = $('.s-goods-nav .nav-item').eq(index);
id = navItme.data('id') ? navItme.data('id') : '';
sort = navItme.data('sort') ? navItme.data('sort') : '';
page = 1;
notab = 1;
hotrank(page, sort, id, notab);
... ...