正在显示
1 个修改的文件
包含
22 行增加
和
21 行删除
@@ -170,28 +170,21 @@ | @@ -170,28 +170,21 @@ | ||
170 | 170 | ||
171 | <script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script> | 171 | <script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script> |
172 | <script> | 172 | <script> |
173 | - // swiper | ||
174 | - var swiper = new Swiper(".swiper-container", { | ||
175 | - slidesPerView: 3, | ||
176 | - paginationClickable: true, | ||
177 | - spaceBetween: 8, | ||
178 | - freeMode: true | ||
179 | - }); | ||
180 | - | ||
181 | - $('.navImg1 img').click(function() { | ||
182 | - if ($(this).attr('src') == "__TMPL__/public/assets/images/xx.png") { | ||
183 | - $('#video').show(); | ||
184 | - } else { | ||
185 | - $('#video').hide(); | ||
186 | - } | ||
187 | - }); | 173 | + $(function () { |
174 | + $('.navImg1 img').click(function() { | ||
175 | + if ($(this).attr('src') == "__TMPL__/public/assets/images/xx.png") { | ||
176 | + $('#video').show(); | ||
177 | + } else { | ||
178 | + $('#video').hide(); | ||
179 | + } | ||
180 | + }); | ||
188 | 181 | ||
189 | - // 禁止下载 | ||
190 | - $('video').bind('contextmenu', function() { | ||
191 | - return false; | ||
192 | - }); | ||
193 | - var video_index = getUrlParam('video_index'); | ||
194 | - //默认第一个视频 | 182 | + // 禁止下载 |
183 | + $('video').bind('contextmenu', function() { | ||
184 | + return false; | ||
185 | + }); | ||
186 | + var video_index = getUrlParam('video_index'); | ||
187 | + //默认第一个视频 | ||
195 | if(video_index == ''){ | 188 | if(video_index == ''){ |
196 | switch_video(0); | 189 | switch_video(0); |
197 | //更换视频路径index | 190 | //更换视频路径index |
@@ -203,7 +196,15 @@ | @@ -203,7 +196,15 @@ | ||
203 | video_index_url(video_index); | 196 | video_index_url(video_index); |
204 | video_share(); | 197 | video_share(); |
205 | } | 198 | } |
199 | + }); | ||
206 | 200 | ||
201 | + // swiper | ||
202 | + var swiper = new Swiper(".swiper-container", { | ||
203 | + slidesPerView: 3, | ||
204 | + paginationClickable: true, | ||
205 | + spaceBetween: 8, | ||
206 | + freeMode: true | ||
207 | + }); | ||
207 | 208 | ||
208 | //登录 | 209 | //登录 |
209 | var users = $('#users').val(); | 210 | var users = $('#users').val(); |
-
请 注册 或 登录 后发表评论