Authored by 2586703@qq.com

hot-rank

... ... @@ -86,8 +86,7 @@ module.exports = {
title: 'MACROPUS 复古帆布系列双肩包',
price: '¥469',
sPrice: '¥269'
}],
last: [{
}, {
url: '',
img: 'http://img11.static.yhbimg.com/goodsimg/2015/08/18/03/01dbfeb5602e11f8922c4c744917431489.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
rank: 7,
... ...
... ... @@ -6,4 +6,11 @@ var bannerSwiper = new Swiper('.header-banner', {
autoplay: 3000
});
$('.goods-nav').find('.nav-item').eq(0).addClass('focus');
\ No newline at end of file
$('.goods-nav').find('.nav-item').eq(0).addClass('focus');
//商品导航滑动
var navSwiper = new Swiper('.s-goods-nav', {
grabCursor: true,
slidesPerView: 'auto',
slideElement: 'li'
});
\ No newline at end of file
... ...
... ... @@ -6,7 +6,7 @@
<div class="rank-main">
<ul>
{{# list}}
<li rel="">
<li>
<a class="clearfix" href="{{url}}">
<div class="item-img">
<img class="lazy" src="{{img}}">
... ...
... ... @@ -12,9 +12,9 @@
{{# sListNav}}
<div class="goods-nav s-goods-nav">
<ul class="clearfix">
<ul class="swiper-wrapper clearfix">
{{# list}}
<li class="nav-item {{styleClass}}">
<li class="swiper-slide nav-item {{styleClass}}">
<a href="{{url}}">{{textCn}}</a>
</li>
{{/ list}}
... ...