|
@@ -5,13 +5,11 @@ |
|
@@ -5,13 +5,11 @@ |
5
|
*/
|
5
|
*/
|
6
|
var $ = require('jquery'),
|
6
|
var $ = require('jquery'),
|
7
|
Swiper = require('yoho.iswiper'),
|
7
|
Swiper = require('yoho.iswiper'),
|
8
|
- lazyLoad = require('yoho.lazyload'),
|
|
|
9
|
- Handlebars = require('yoho.handlebars');
|
8
|
+ lazyLoad = require('yoho.lazyload');
|
10
|
|
9
|
|
11
|
var goodsSwiper,
|
10
|
var goodsSwiper,
|
12
|
sizeSwiper,
|
11
|
sizeSwiper,
|
13
|
- refSwiper,
|
|
|
14
|
- handleHelper;
|
12
|
+ refSwiper;
|
15
|
|
13
|
|
16
|
require('./desc');
|
14
|
require('./desc');
|
17
|
require('./comments-consults');
|
15
|
require('./comments-consults');
|
|
@@ -38,27 +36,6 @@ goodsSwiper = new Swiper('.banner-swiper', { |
|
@@ -38,27 +36,6 @@ goodsSwiper = new Swiper('.banner-swiper', { |
38
|
}
|
36
|
}
|
39
|
})();
|
37
|
})();
|
40
|
|
38
|
|
41
|
-// $('#nav-tab li').on('click', function() {
|
|
|
42
|
-// var index = $(this).index();
|
|
|
43
|
-
|
|
|
44
|
-// if ($(this).hasClass('comment-nav') && 0 === commentsNum) {
|
|
|
45
|
-// alert('暂无商品评价');
|
|
|
46
|
-// } else {
|
|
|
47
|
-// if (!$(this).hasClass('focus')) {
|
|
|
48
|
-
|
|
|
49
|
-// $('#nav-tab li').each(function() {
|
|
|
50
|
-// $(this).removeClass('focus');
|
|
|
51
|
-// });
|
|
|
52
|
-// $('#feedback-content .content').each(function() {
|
|
|
53
|
-// $(this).addClass('hide');
|
|
|
54
|
-// });
|
|
|
55
|
-
|
|
|
56
|
-// $(this).addClass('focus');
|
|
|
57
|
-// $('#feedback-content .content:eq(' + index + ')').removeClass('hide');
|
|
|
58
|
-// }
|
|
|
59
|
-// }
|
|
|
60
|
-// });
|
|
|
61
|
-
|
|
|
62
|
$('.goodsDiscount .dropdown').on('click', function() {
|
39
|
$('.goodsDiscount .dropdown').on('click', function() {
|
63
|
if ($('.goodsDiscount .discount-folder').is(':hidden')) {
|
40
|
if ($('.goodsDiscount .discount-folder').is(':hidden')) {
|
64
|
$('.goodsDiscount .first-item span').removeClass('icon-down');
|
41
|
$('.goodsDiscount .first-item span').removeClass('icon-down');
|
|
@@ -82,13 +59,4 @@ refSwiper = new Swiper('#reference-swiper-container',{ |
|
@@ -82,13 +59,4 @@ refSwiper = new Swiper('#reference-swiper-container',{ |
82
|
});
|
59
|
});
|
83
|
|
60
|
|
84
|
|
61
|
|
85
|
-handleHelper = Handlebars.registerHelper('addOne', function(index) {
|
|
|
86
|
- return index + 1;
|
|
|
87
|
-});
|
|
|
88
|
-
|
|
|
89
|
|
62
|
|
90
|
-//srcoll to load more
|
|
|
91
|
-// $(window).scroll(function () {
|
|
|
92
|
-// if ($(window).scrollTop() + winH >= $(document).height() - 50) {
|
|
|
93
|
-// }
|
|
|
94
|
-// }); |
|
|