Showing
4 changed files
with
12 additions
and
6 deletions
@@ -86,8 +86,7 @@ module.exports = { | @@ -86,8 +86,7 @@ module.exports = { | ||
86 | title: 'MACROPUS 复古帆布系列双肩包', | 86 | title: 'MACROPUS 复古帆布系列双肩包', |
87 | price: '¥469', | 87 | price: '¥469', |
88 | sPrice: '¥269' | 88 | sPrice: '¥269' |
89 | - }], | ||
90 | - last: [{ | 89 | + }, { |
91 | url: '', | 90 | url: '', |
92 | img: 'http://img11.static.yhbimg.com/goodsimg/2015/08/18/03/01dbfeb5602e11f8922c4c744917431489.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | 91 | img: 'http://img11.static.yhbimg.com/goodsimg/2015/08/18/03/01dbfeb5602e11f8922c4c744917431489.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', |
93 | rank: 7, | 92 | rank: 7, |
@@ -6,4 +6,11 @@ var bannerSwiper = new Swiper('.header-banner', { | @@ -6,4 +6,11 @@ var bannerSwiper = new Swiper('.header-banner', { | ||
6 | autoplay: 3000 | 6 | autoplay: 3000 |
7 | }); | 7 | }); |
8 | 8 | ||
9 | -$('.goods-nav').find('.nav-item').eq(0).addClass('focus'); | ||
9 | +$('.goods-nav').find('.nav-item').eq(0).addClass('focus'); | ||
10 | + | ||
11 | +//商品导航滑动 | ||
12 | +var navSwiper = new Swiper('.s-goods-nav', { | ||
13 | + grabCursor: true, | ||
14 | + slidesPerView: 'auto', | ||
15 | + slideElement: 'li' | ||
16 | +}); |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <div class="rank-main"> | 6 | <div class="rank-main"> |
7 | <ul> | 7 | <ul> |
8 | {{# list}} | 8 | {{# list}} |
9 | - <li rel=""> | 9 | + <li> |
10 | <a class="clearfix" href="{{url}}"> | 10 | <a class="clearfix" href="{{url}}"> |
11 | <div class="item-img"> | 11 | <div class="item-img"> |
12 | <img class="lazy" src="{{img}}"> | 12 | <img class="lazy" src="{{img}}"> |
@@ -12,9 +12,9 @@ | @@ -12,9 +12,9 @@ | ||
12 | 12 | ||
13 | {{# sListNav}} | 13 | {{# sListNav}} |
14 | <div class="goods-nav s-goods-nav"> | 14 | <div class="goods-nav s-goods-nav"> |
15 | - <ul class="clearfix"> | 15 | + <ul class="swiper-wrapper clearfix"> |
16 | {{# list}} | 16 | {{# list}} |
17 | - <li class="nav-item {{styleClass}}"> | 17 | + <li class="swiper-slide nav-item {{styleClass}}"> |
18 | <a href="{{url}}">{{textCn}}</a> | 18 | <a href="{{url}}">{{textCn}}</a> |
19 | </li> | 19 | </li> |
20 | {{/ list}} | 20 | {{/ list}} |
-
Please register or login to post a comment