Showing
1 changed file
with
96 additions
and
96 deletions
@@ -11,99 +11,99 @@ var iscroll = require('./outlet/nav'); | @@ -11,99 +11,99 @@ var iscroll = require('./outlet/nav'); | ||
11 | 11 | ||
12 | lazyLoad($('img.lazy')); | 12 | lazyLoad($('img.lazy')); |
13 | 13 | ||
14 | - | ||
15 | -// 搜索条件初始化 | ||
16 | -function searchInitParam(dom) { | ||
17 | - var href = dom.attr('href'), | ||
18 | - querys = href.split('?')[1].split('&'); | ||
19 | - | ||
20 | - var query = {}; | ||
21 | - | ||
22 | - querys.forEach(function(value) { | ||
23 | - var queryPairs = value.split('='), | ||
24 | - key = queryPairs[0], | ||
25 | - val = queryPairs[1]; | ||
26 | - | ||
27 | - if (key === 'actiontype') { | ||
28 | - return; | ||
29 | - } | ||
30 | - | ||
31 | - query[key] = val; | ||
32 | - }); | ||
33 | - | ||
34 | - return query; | ||
35 | -} | ||
36 | - | ||
37 | -if ($el.length > 0) { | ||
38 | - $el.each(function() { | ||
39 | - new Countdown.Countdown({ | ||
40 | - el: $(this) | ||
41 | - }); | ||
42 | - }); | ||
43 | -} | ||
44 | - | ||
45 | -if ($('.swiper-container .swiper-slide').length > 1) { | ||
46 | - new Swiper('.swiper-container', { | ||
47 | - lazyLoading: true, | ||
48 | - lazyLoadingInPrevNext: true, | ||
49 | - loop: true, | ||
50 | - autoplay: 3000, | ||
51 | - autoplayDisableOnInteraction: true, | ||
52 | - paginationClickable: true, | ||
53 | - pagination: '.banner-top .pagination-inner' | ||
54 | - }); | ||
55 | -} | ||
56 | - | ||
57 | -$categoryNavItem.on('click', function(e) { | ||
58 | - var query = searchInitParam($(this)); | ||
59 | - | ||
60 | - $('.category a').removeClass('active'); | ||
61 | - $(this).addClass('active'); | ||
62 | - | ||
63 | - e.preventDefault(); | ||
64 | - | ||
65 | - search.start({ | ||
66 | - type: 'category' | ||
67 | - }, query); | ||
68 | -}); | ||
69 | - | ||
70 | -// 触发第一个search | ||
71 | -if ($categoryNavItem.length > 0) { | ||
72 | - // $categoryNavItem.eq(0).trigger('click'); | ||
73 | - | ||
74 | - search.start({ | ||
75 | - type: 'category' | ||
76 | - }, searchInitParam($categoryNavItem.eq(0))); | ||
77 | -} | ||
78 | - | ||
79 | -// 导航滚动 | ||
80 | -if ($('#index_nav').length > 0) { | ||
81 | - iscroll({ | ||
82 | - el: '#index_nav' | ||
83 | - }).goto($('#index_nav').find('.active').index()); | ||
84 | -} | ||
85 | - | ||
86 | -if ($('.outlet-category-nav').length > 0) { | ||
87 | - iscroll({ | ||
88 | - el: '.outlet-category-nav' | ||
89 | - }).goto(0); | ||
90 | -} | ||
91 | - | ||
92 | -// 更多活动按钮 | ||
93 | -if ($('.back-ground-white').length > 10) { | ||
94 | - $('.more-activity').show(); | ||
95 | - $('.back-ground-white').each(function(index, e) { | ||
96 | - if (index > 9) { | ||
97 | - $(e).hide(); | ||
98 | - } | ||
99 | - }); | ||
100 | -} | ||
101 | - | ||
102 | -$('.more-activity').click(function() { | ||
103 | - $('.more-activity').hide(); | ||
104 | - $('.back-ground-white').each(function(index, e) { | ||
105 | - if (index > 9) { | ||
106 | - $(e).show(); | ||
107 | - } | ||
108 | - }); | ||
109 | -}); | 14 | +// |
15 | +// // 搜索条件初始化 | ||
16 | +// function searchInitParam(dom) { | ||
17 | +// var href = dom.attr('href'), | ||
18 | +// querys = href.split('?')[1].split('&'); | ||
19 | +// | ||
20 | +// var query = {}; | ||
21 | +// | ||
22 | +// querys.forEach(function(value) { | ||
23 | +// var queryPairs = value.split('='), | ||
24 | +// key = queryPairs[0], | ||
25 | +// val = queryPairs[1]; | ||
26 | +// | ||
27 | +// if (key === 'actiontype') { | ||
28 | +// return; | ||
29 | +// } | ||
30 | +// | ||
31 | +// query[key] = val; | ||
32 | +// }); | ||
33 | +// | ||
34 | +// return query; | ||
35 | +// } | ||
36 | +// | ||
37 | +// if ($el.length > 0) { | ||
38 | +// $el.each(function() { | ||
39 | +// new Countdown.Countdown({ | ||
40 | +// el: $(this) | ||
41 | +// }); | ||
42 | +// }); | ||
43 | +// } | ||
44 | +// | ||
45 | +// if ($('.swiper-container .swiper-slide').length > 1) { | ||
46 | +// new Swiper('.swiper-container', { | ||
47 | +// lazyLoading: true, | ||
48 | +// lazyLoadingInPrevNext: true, | ||
49 | +// loop: true, | ||
50 | +// autoplay: 3000, | ||
51 | +// autoplayDisableOnInteraction: true, | ||
52 | +// paginationClickable: true, | ||
53 | +// pagination: '.banner-top .pagination-inner' | ||
54 | +// }); | ||
55 | +// } | ||
56 | +// | ||
57 | +// $categoryNavItem.on('click', function(e) { | ||
58 | +// var query = searchInitParam($(this)); | ||
59 | +// | ||
60 | +// $('.category a').removeClass('active'); | ||
61 | +// $(this).addClass('active'); | ||
62 | +// | ||
63 | +// e.preventDefault(); | ||
64 | +// | ||
65 | +// search.start({ | ||
66 | +// type: 'category' | ||
67 | +// }, query); | ||
68 | +// }); | ||
69 | +// | ||
70 | +// // 触发第一个search | ||
71 | +// if ($categoryNavItem.length > 0) { | ||
72 | +// // $categoryNavItem.eq(0).trigger('click'); | ||
73 | +// | ||
74 | +// search.start({ | ||
75 | +// type: 'category' | ||
76 | +// }, searchInitParam($categoryNavItem.eq(0))); | ||
77 | +// } | ||
78 | +// | ||
79 | +// // 导航滚动 | ||
80 | +// if ($('#index_nav').length > 0) { | ||
81 | +// iscroll({ | ||
82 | +// el: '#index_nav' | ||
83 | +// }).goto($('#index_nav').find('.active').index()); | ||
84 | +// } | ||
85 | +// | ||
86 | +// if ($('.outlet-category-nav').length > 0) { | ||
87 | +// iscroll({ | ||
88 | +// el: '.outlet-category-nav' | ||
89 | +// }).goto(0); | ||
90 | +// } | ||
91 | +// | ||
92 | +// // 更多活动按钮 | ||
93 | +// if ($('.back-ground-white').length > 10) { | ||
94 | +// $('.more-activity').show(); | ||
95 | +// $('.back-ground-white').each(function(index, e) { | ||
96 | +// if (index > 9) { | ||
97 | +// $(e).hide(); | ||
98 | +// } | ||
99 | +// }); | ||
100 | +// } | ||
101 | +// | ||
102 | +// $('.more-activity').click(function() { | ||
103 | +// $('.more-activity').hide(); | ||
104 | +// $('.back-ground-white').each(function(index, e) { | ||
105 | +// if (index > 9) { | ||
106 | +// $(e).show(); | ||
107 | +// } | ||
108 | +// }); | ||
109 | +// }); |
-
Please register or login to post a comment