作者 景龙
1 个管道 的构建 通过 耗费 0 秒

调试移动端视频

@@ -170,6 +170,14 @@ @@ -170,6 +170,14 @@
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 +
173 $('.navImg1 img').click(function() { 181 $('.navImg1 img').click(function() {
174 if ($(this).attr('src') == "__TMPL__/public/assets/images/xx.png") { 182 if ($(this).attr('src') == "__TMPL__/public/assets/images/xx.png") {
175 $('#video').show(); 183 $('#video').show();
@@ -182,20 +190,20 @@ @@ -182,20 +190,20 @@
182 $('video').bind('contextmenu', function() { 190 $('video').bind('contextmenu', function() {
183 return false; 191 return false;
184 }); 192 });
185 -  
186 var video_index = getUrlParam('video_index'); 193 var video_index = getUrlParam('video_index');
187 //默认第一个视频 194 //默认第一个视频
188 - if(video_index == ''){  
189 - switch_video(0);  
190 - //更换视频路径index  
191 - video_index_url(0);  
192 - video_share();  
193 - }else{  
194 - switch_video(video_index);  
195 - //更换视频路径index  
196 - video_index_url(video_index);  
197 - video_share();  
198 - } 195 + if(video_index == ''){
  196 + switch_video(0);
  197 + //更换视频路径index
  198 + video_index_url(0);
  199 + video_share();
  200 + }else{
  201 + switch_video(video_index);
  202 + //更换视频路径index
  203 + video_index_url(video_index);
  204 + video_share();
  205 + }
  206 +
199 207
200 //登录 208 //登录
201 var users = $('#users').val(); 209 var users = $('#users').val();
@@ -250,13 +258,7 @@ @@ -250,13 +258,7 @@
250 $(".fourth_video_start").hide(); 258 $(".fourth_video_start").hide();
251 } 259 }
252 260
253 - // swiper  
254 - var swiper = new Swiper(".swiper-container", {  
255 - slidesPerView: 3,  
256 - paginationClickable: true,  
257 - spaceBetween: 8,  
258 - freeMode: true  
259 - }); 261 +
260 $(".select input").click(function() { 262 $(".select input").click(function() {
261 if ($(this).next("img").attr("src") == "__TMPL__/public/assets/images/down2.png") { 263 if ($(this).next("img").attr("src") == "__TMPL__/public/assets/images/down2.png") {
262 $(this) 264 $(this)