|
@@ -79,10 +79,6 @@ $(function() { |
|
@@ -79,10 +79,6 @@ $(function() { |
79
|
$('.top-downloadbar').css({zIndex: 9});
|
79
|
$('.top-downloadbar').css({zIndex: 9});
|
80
|
}, 400);
|
80
|
}, 400);
|
81
|
|
81
|
|
82
|
-
|
|
|
83
|
- audioAction();
|
|
|
84
|
- listenVideo();
|
|
|
85
|
-
|
|
|
86
|
share({
|
82
|
share({
|
87
|
imgUrl: 'https://feature.yoho.cn/300x300.png',
|
83
|
imgUrl: 'https://feature.yoho.cn/300x300.png',
|
88
|
title: 'YOHO!BUY有货年度潮流账单——快来看看你的潮流形象!速戳>>',
|
84
|
title: 'YOHO!BUY有货年度潮流账单——快来看看你的潮流形象!速戳>>',
|
|
@@ -90,103 +86,108 @@ $(function() { |
|
@@ -90,103 +86,108 @@ $(function() { |
90
|
desc: 'YOHO!BUY有货2016潮流轨迹'
|
86
|
desc: 'YOHO!BUY有货2016潮流轨迹'
|
91
|
});
|
87
|
});
|
92
|
|
88
|
|
93
|
- mySwiper = new Swiper('.swiper-container', {
|
|
|
94
|
- direction: 'vertical',
|
|
|
95
|
- onTransitionEnd: function(swiper) {
|
|
|
96
|
- var aIndex = swiper.activeIndex;
|
|
|
97
|
- var i = 1;
|
|
|
98
|
-
|
|
|
99
|
- if (aIndex === 1) {
|
|
|
100
|
- setTimeout(function() {
|
|
|
101
|
- $nav2Img.addClass('n2-img-animation');
|
|
|
102
|
- $purdah1.addClass('purdah1-animation');
|
|
|
103
|
- }, 300);
|
|
|
104
|
- }
|
89
|
+ if ($('.account-share-page').length === 0) {
|
|
|
90
|
+ audioAction();
|
|
|
91
|
+ listenVideo();
|
|
|
92
|
+
|
|
|
93
|
+ mySwiper = new Swiper('.swiper-container', {
|
|
|
94
|
+ direction: 'vertical',
|
|
|
95
|
+ onTransitionEnd: function(swiper) {
|
|
|
96
|
+ var aIndex = swiper.activeIndex;
|
|
|
97
|
+ var i = 1;
|
|
|
98
|
+
|
|
|
99
|
+ if (aIndex === 1) {
|
|
|
100
|
+ setTimeout(function() {
|
|
|
101
|
+ $nav2Img.addClass('n2-img-animation');
|
|
|
102
|
+ $purdah1.addClass('purdah1-animation');
|
|
|
103
|
+ }, 300);
|
|
|
104
|
+ }
|
105
|
|
105
|
|
106
|
- if (aIndex === 2) {
|
|
|
107
|
- $purdahLeft.addClass('purdah-l-animation');
|
|
|
108
|
- $purdahRight.addClass('purdah-r-animation');
|
|
|
109
|
- if ($monthList.find('li').length === 0) {
|
|
|
110
|
- for (i; i <= 32; i++) {
|
|
|
111
|
- if (i === 7) {
|
|
|
112
|
- $monthList.find('ul').append('<li class="goods-' + i + '"><div class="goods-gif-' + i + '"></div></li>');
|
|
|
113
|
- } else {
|
|
|
114
|
- $monthList.find('ul').append('<li class="goods-' + i + '"></li>');
|
106
|
+ if (aIndex === 2) {
|
|
|
107
|
+ $purdahLeft.addClass('purdah-l-animation');
|
|
|
108
|
+ $purdahRight.addClass('purdah-r-animation');
|
|
|
109
|
+ if ($monthList.find('li').length === 0) {
|
|
|
110
|
+ for (i; i <= 32; i++) {
|
|
|
111
|
+ if (i === 7) {
|
|
|
112
|
+ $monthList.find('ul').append('<li class="goods-' + i + '"><div class="goods-gif-' + i + '"></div></li>');
|
|
|
113
|
+ } else {
|
|
|
114
|
+ $monthList.find('ul').append('<li class="goods-' + i + '"></li>');
|
|
|
115
|
+ }
|
115
|
}
|
116
|
}
|
116
|
}
|
117
|
}
|
|
|
118
|
+ $monthList.fadeIn();
|
117
|
}
|
119
|
}
|
118
|
- $monthList.fadeIn();
|
|
|
119
|
- }
|
|
|
120
|
|
120
|
|
121
|
- if (aIndex === 3) {
|
|
|
122
|
- $runMen.fadeIn();
|
|
|
123
|
- }
|
121
|
+ if (aIndex === 3) {
|
|
|
122
|
+ $runMen.fadeIn();
|
|
|
123
|
+ }
|
124
|
|
124
|
|
125
|
- if (aIndex !== 4) {
|
|
|
126
|
- $video[0].pause();
|
|
|
127
|
- if (audioStatus) {
|
|
|
128
|
- $audio[0].play();
|
125
|
+ if (aIndex !== 4) {
|
|
|
126
|
+ $video[0].pause();
|
|
|
127
|
+ if (audioStatus) {
|
|
|
128
|
+ $audio[0].play();
|
|
|
129
|
+ }
|
129
|
}
|
130
|
}
|
130
|
- }
|
|
|
131
|
|
131
|
|
132
|
- if (aIndex === 4) {
|
|
|
133
|
- $videoBox.addClass('video-animation');
|
|
|
134
|
- setTimeout(function() {
|
|
|
135
|
- $('#video').show();
|
|
|
136
|
- }, 600);
|
|
|
137
|
- }
|
132
|
+ if (aIndex === 4) {
|
|
|
133
|
+ $videoBox.addClass('video-animation');
|
|
|
134
|
+ setTimeout(function() {
|
|
|
135
|
+ $('#video').show();
|
|
|
136
|
+ }, 600);
|
|
|
137
|
+ }
|
138
|
|
138
|
|
139
|
- if (aIndex === 5) {
|
|
|
140
|
- $spokesman.addClass('spokesman-animation');
|
|
|
141
|
- tbTime = setTimeout(function() {
|
|
|
142
|
- $tB.addClass('txt-animation');
|
|
|
143
|
- }, 500);
|
|
|
144
|
- handTime = setTimeout(function() {
|
|
|
145
|
- $hand.addClass('hand-animation');
|
|
|
146
|
- }, 1000);
|
|
|
147
|
- twTime = setTimeout(function() {
|
|
|
148
|
- $tW.addClass('txt-animation');
|
|
|
149
|
- }, 1500);
|
|
|
150
|
- }
|
|
|
151
|
- },
|
|
|
152
|
- onSlideChangeStart: function(swiper) {
|
|
|
153
|
- var aIndex = swiper.activeIndex;
|
|
|
154
|
-
|
|
|
155
|
- if (aIndex === 1 || aIndex === 3) {
|
|
|
156
|
- $purdahLeft.removeClass('purdah-l-animation');
|
|
|
157
|
- $purdahRight.removeClass('purdah-r-animation');
|
|
|
158
|
- $monthList.fadeOut();
|
|
|
159
|
- $monthList.find('ul').scrollLeft(0);
|
|
|
160
|
- }
|
139
|
+ if (aIndex === 5) {
|
|
|
140
|
+ $spokesman.addClass('spokesman-animation');
|
|
|
141
|
+ tbTime = setTimeout(function() {
|
|
|
142
|
+ $tB.addClass('txt-animation');
|
|
|
143
|
+ }, 500);
|
|
|
144
|
+ handTime = setTimeout(function() {
|
|
|
145
|
+ $hand.addClass('hand-animation');
|
|
|
146
|
+ }, 1000);
|
|
|
147
|
+ twTime = setTimeout(function() {
|
|
|
148
|
+ $tW.addClass('txt-animation');
|
|
|
149
|
+ }, 1500);
|
|
|
150
|
+ }
|
|
|
151
|
+ },
|
|
|
152
|
+ onSlideChangeStart: function(swiper) {
|
|
|
153
|
+ var aIndex = swiper.activeIndex;
|
|
|
154
|
+
|
|
|
155
|
+ if (aIndex === 1 || aIndex === 3) {
|
|
|
156
|
+ $purdahLeft.removeClass('purdah-l-animation');
|
|
|
157
|
+ $purdahRight.removeClass('purdah-r-animation');
|
|
|
158
|
+ $monthList.fadeOut();
|
|
|
159
|
+ $monthList.find('ul').scrollLeft(0);
|
|
|
160
|
+ }
|
161
|
|
161
|
|
162
|
- if (aIndex === 0 || aIndex === 2) {
|
|
|
163
|
- $nav2Img.removeClass('n2-img-animation');
|
|
|
164
|
- $purdah1.removeClass('purdah1-animation');
|
|
|
165
|
- }
|
162
|
+ if (aIndex === 0 || aIndex === 2) {
|
|
|
163
|
+ $nav2Img.removeClass('n2-img-animation');
|
|
|
164
|
+ $purdah1.removeClass('purdah1-animation');
|
|
|
165
|
+ }
|
166
|
|
166
|
|
167
|
- if (aIndex === 2 || aIndex === 4) {
|
|
|
168
|
- $runMen.hide();
|
|
|
169
|
- }
|
167
|
+ if (aIndex === 2 || aIndex === 4) {
|
|
|
168
|
+ $runMen.hide();
|
|
|
169
|
+ }
|
170
|
|
170
|
|
171
|
- if (aIndex === 3 || aIndex === 5) {
|
|
|
172
|
- $videoBox.removeClass('video-animation');
|
|
|
173
|
- $('#video').hide();
|
|
|
174
|
- }
|
171
|
+ if (aIndex === 3 || aIndex === 5) {
|
|
|
172
|
+ $videoBox.removeClass('video-animation');
|
|
|
173
|
+ $('#video').hide();
|
|
|
174
|
+ }
|
175
|
|
175
|
|
176
|
- if (aIndex === 4 || aIndex === 6) {
|
|
|
177
|
- clearTimeout(tbTime);
|
|
|
178
|
- clearTimeout(twTime);
|
|
|
179
|
- clearTimeout(handTime);
|
|
|
180
|
- $spokesman.removeClass('spokesman-animation');
|
|
|
181
|
- $tB.removeClass('txt-animation');
|
|
|
182
|
- $hand.removeClass('hand-animation');
|
|
|
183
|
- $tW.removeClass('txt-animation');
|
176
|
+ if (aIndex === 4 || aIndex === 6) {
|
|
|
177
|
+ clearTimeout(tbTime);
|
|
|
178
|
+ clearTimeout(twTime);
|
|
|
179
|
+ clearTimeout(handTime);
|
|
|
180
|
+ $spokesman.removeClass('spokesman-animation');
|
|
|
181
|
+ $tB.removeClass('txt-animation');
|
|
|
182
|
+ $hand.removeClass('hand-animation');
|
|
|
183
|
+ $tW.removeClass('txt-animation');
|
|
|
184
|
+ }
|
184
|
}
|
185
|
}
|
185
|
- }
|
|
|
186
|
- });
|
186
|
+ });
|
187
|
|
187
|
|
188
|
- // 开启2016潮流轨迹按钮
|
|
|
189
|
- $('.start-btn').on('click', function() {
|
|
|
190
|
- mySwiper.slideTo(1, 1000, true);
|
|
|
191
|
- });
|
188
|
+ // 开启2016潮流轨迹按钮
|
|
|
189
|
+ $('.start-btn').on('click', function() {
|
|
|
190
|
+ mySwiper.slideTo(1, 1000, true);
|
|
|
191
|
+ });
|
|
|
192
|
+ }
|
192
|
}); |
193
|
}); |