正在显示
1 个修改的文件
包含
13 行增加
和
8 行删除
@@ -182,7 +182,7 @@ | @@ -182,7 +182,7 @@ | ||
182 | $('video').bind('contextmenu', function() { | 182 | $('video').bind('contextmenu', function() { |
183 | return false; | 183 | return false; |
184 | }); | 184 | }); |
185 | - | 185 | + swiper(); |
186 | var video_index = getUrlParam('video_index'); | 186 | var video_index = getUrlParam('video_index'); |
187 | //默认第一个视频 | 187 | //默认第一个视频 |
188 | if(video_index == ''){ | 188 | if(video_index == ''){ |
@@ -250,13 +250,16 @@ | @@ -250,13 +250,16 @@ | ||
250 | $(".fourth_video_start").hide(); | 250 | $(".fourth_video_start").hide(); |
251 | } | 251 | } |
252 | 252 | ||
253 | - // swiper | ||
254 | - var swiper = new Swiper(".swiper-container", { | ||
255 | - slidesPerView: 3, | ||
256 | - paginationClickable: true, | ||
257 | - spaceBetween: 8, | ||
258 | - freeMode: true | ||
259 | - }); | 253 | + function swiper(){ |
254 | + // swiper | ||
255 | + var swiper = new Swiper(".swiper-container", { | ||
256 | + slidesPerView: 3, | ||
257 | + paginationClickable: true, | ||
258 | + spaceBetween: 8, | ||
259 | + freeMode: true | ||
260 | + }); | ||
261 | + } | ||
262 | + | ||
260 | $(".select input").click(function() { | 263 | $(".select input").click(function() { |
261 | if ($(this).next("img").attr("src") == "__TMPL__/public/assets/images/down2.png") { | 264 | if ($(this).next("img").attr("src") == "__TMPL__/public/assets/images/down2.png") { |
262 | $(this) | 265 | $(this) |
@@ -396,6 +399,8 @@ | @@ -396,6 +399,8 @@ | ||
396 | 399 | ||
397 | //是否点赞 | 400 | //是否点赞 |
398 | is_likes(id); | 401 | is_likes(id); |
402 | + | ||
403 | + swiper(); | ||
399 | } | 404 | } |
400 | 405 | ||
401 | //是否收藏 | 406 | //是否收藏 |
-
请 注册 或 登录 后发表评论