正在显示
1 个修改的文件
包含
10 行增加
和
10 行删除
@@ -183,6 +183,14 @@ | @@ -183,6 +183,14 @@ | ||
183 | return false; | 183 | return false; |
184 | }); | 184 | }); |
185 | 185 | ||
186 | + // swiper | ||
187 | + var swiper = new Swiper(".swiper-container", { | ||
188 | + slidesPerView: 3, | ||
189 | + paginationClickable: true, | ||
190 | + spaceBetween: 8, | ||
191 | + freeMode: true | ||
192 | + }); | ||
193 | + | ||
186 | var video_index = getUrlParam('video_index'); | 194 | var video_index = getUrlParam('video_index'); |
187 | //默认第一个视频 | 195 | //默认第一个视频 |
188 | if(video_index == ''){ | 196 | if(video_index == ''){ |
@@ -307,6 +315,8 @@ | @@ -307,6 +315,8 @@ | ||
307 | }); | 315 | }); |
308 | }); | 316 | }); |
309 | 317 | ||
318 | + | ||
319 | + | ||
310 | function video_index_url(index){ | 320 | function video_index_url(index){ |
311 | var city_id = getUrlParam('city_id'); | 321 | var city_id = getUrlParam('city_id'); |
312 | if(city_id == ''){ | 322 | if(city_id == ''){ |
@@ -389,16 +399,6 @@ | @@ -389,16 +399,6 @@ | ||
389 | 399 | ||
390 | //是否点赞 | 400 | //是否点赞 |
391 | is_likes(id); | 401 | is_likes(id); |
392 | - | ||
393 | - // swiper | ||
394 | - var swiper = new Swiper(".swiper-container", { | ||
395 | - loop:true, | ||
396 | - slidesPerView: 3, | ||
397 | - paginationClickable: true, | ||
398 | - spaceBetween: 8, | ||
399 | - freeMode: true, | ||
400 | - loopedSlides: index | ||
401 | - }); | ||
402 | } | 402 | } |
403 | 403 | ||
404 | //是否收藏 | 404 | //是否收藏 |
-
请 注册 或 登录 后发表评论