Authored by uedxwg

hotrand

... ... @@ -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;
... ...
... ... @@ -46,7 +46,7 @@
background: url("../img/me/employ/rank-t.png") no-repeat;
background-position: center top;
background-size: 100%;
line-height: 58rem / $pxConvertRem;
line-height: 54rem / $pxConvertRem;
}
}
... ...
{{#if tabs}}
<div class="s-goods-nav goods-nav">
<ul class="swiper-wrapper clearfix">
{{# tabs}}
{{# tabs}}
{{# title}}
<li class="swiper-slide nav-item" data-sort="{{ params}}" data-id="{{ id}}">
<span>{{ name}}</span>
</li>
{{/ title}}
{{/ tabs}}
{{/ tabs}}
</ul>
</div>
{{/if}}
<div class="rank-main">
<ul>
{{# goods}}
... ...
... ... @@ -175,6 +175,7 @@ class HomeController extends AbstractAction
'couponsPage' => true
);
print_r($coupons);
$this->_view->display('coupons', $coupons);
}
... ...