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

调试视频

... ... @@ -170,42 +170,33 @@
<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script>
$(function () {
$('.navImg1 img').click(function() {
if ($(this).attr('src') == "__TMPL__/public/assets/images/xx.png") {
$('#video').show();
} else {
$('#video').hide();
}
});
// 禁止下载
$('video').bind('contextmenu', function() {
return false;
});
var video_index = getUrlParam('video_index');
//默认第一个视频
if(video_index == ''){
switch_video(0);
//更换视频路径index
video_index_url(0);
video_share();
}else{
switch_video(video_index);
//更换视频路径index
video_index_url(video_index);
video_share();
$('.navImg1 img').click(function() {
if ($(this).attr('src') == "__TMPL__/public/assets/images/xx.png") {
$('#video').show();
} else {
$('#video').hide();
}
});
// swiper
var swiper = new Swiper(".swiper-container", {
slidesPerView: 3,
paginationClickable: true,
spaceBetween: 8,
freeMode: true
// 禁止下载
$('video').bind('contextmenu', function() {
return false;
});
var video_index = getUrlParam('video_index');
//默认第一个视频
if(video_index == ''){
switch_video(0);
//更换视频路径index
video_index_url(0);
video_share();
}else{
switch_video(video_index);
//更换视频路径index
video_index_url(video_index);
video_share();
}
//登录
var users = $('#users').val();
if (users == 0) {
... ... @@ -259,7 +250,13 @@
$(".fourth_video_start").hide();
}
// swiper
var swiper = new Swiper(".swiper-container", {
slidesPerView: 3,
paginationClickable: true,
spaceBetween: 8,
freeMode: true
});
$(".select input").click(function() {
if ($(this).next("img").attr("src") == "__TMPL__/public/assets/images/down2.png") {
$(this)
... ...
... ... @@ -363,7 +363,14 @@ function getUrlParam(paraName) {
arr = arrPara[i].split("=");
if (arr != null && arr[0] == paraName) {
return arr[1];
var arr1;
//此处为了解决#定位视频问题
if(arr[1].indexOf('#') != -1){
arr1 = arr[1].split("#");
return arr1[0];
}else{
return arr[1];
}
}
}
return "";
... ...