...
|
...
|
@@ -13,10 +13,9 @@ var page = 1, |
|
|
id = '';
|
|
|
|
|
|
function hotrank(page, sort, tabId, notab) {
|
|
|
console.log(sort);
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/product/newsale/selectHotrank?'+sort,
|
|
|
url: '/product/newsale/selectHotrank?' + sort,
|
|
|
dataType: 'html',
|
|
|
data: {
|
|
|
page: page,
|
...
|
...
|
@@ -25,14 +24,9 @@ function hotrank(page, sort, tabId, notab) { |
|
|
},
|
|
|
success: function(data) {
|
|
|
if (page === 1) {
|
|
|
$('.rank-main').html('');
|
|
|
}
|
|
|
console.log(notab);
|
|
|
if (notab === 1) {
|
|
|
$('.rank-main').append(data);
|
|
|
} else {
|
|
|
$('#hotRank').append(data);
|
|
|
$('.rank-main').remove();
|
|
|
}
|
|
|
$('#hotRank').append(data);
|
|
|
lazyLoad($('img.lazy'));
|
|
|
$('#yoho-footer').css('position', 'static');
|
|
|
$('.rank-main ul li:gt(2)').find('.item-content i').removeClass('top');
|
...
|
...
|
@@ -48,6 +42,7 @@ 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;
|
...
|
...
|
|