|
@@ -8,8 +8,6 @@ import './public.js';
|
|
|
$(function () {
|
|
|
var pageSize = 10,
|
|
|
thePageNo = 1,
|
|
|
- nutt = 0,
|
|
|
- videoHtml = '',
|
|
|
name='',
|
|
|
thePageLength = 1,
|
|
|
noLength = `<div class="noLength"></div>`;
|
|
@@ -89,6 +87,7 @@ $(function () {
|
|
|
$(".contImg").html(contHtml);
|
|
|
} else {
|
|
|
$(".contImg").html(noLength);
|
|
|
+ $('.pagination_box').hide();
|
|
|
return false;
|
|
|
}
|
|
|
//分页部分的处理
|
|
@@ -127,7 +126,7 @@ $(function () {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- //标题点击事件
|
|
|
+ //点击跳转事件
|
|
|
function jumpFun() {
|
|
|
videoHtml = '';
|
|
|
$(".contImg ul li").on("click", function () {
|
|
@@ -137,62 +136,10 @@ $(function () {
|
|
|
window.location.hash = 'jump';
|
|
|
return false;
|
|
|
}
|
|
|
- nutt = $(this).index();
|
|
|
let urls = $(this).find('.videoId').val();
|
|
|
window.location.href=globalConfig.context+'/open/protal/videoDetail?id='+urls;
|
|
|
- //let urls = $(this).find('input').val();
|
|
|
- // videoHtml = `<source src="http://118.190.205.7:8000${urls}" type="video/mp4">`;
|
|
|
- // $('.videoPlay').show(100);
|
|
|
- // $('.videoPlay').addClass('active');
|
|
|
- // $('#videoAt').html(videoHtml);
|
|
|
- // let videoNew = document.getElementById('videoAt');
|
|
|
- // videoNew.load();
|
|
|
})
|
|
|
}
|
|
|
- videoCz();
|
|
|
- //视频操作
|
|
|
- function videoCz() {
|
|
|
- //关闭按钮
|
|
|
- $('.videoTopM .glyphicon-remove').click(function () {
|
|
|
- let video = document.getElementById('videoAt');
|
|
|
- $('.videoPlay').hide(100);
|
|
|
- $('.videoPlay').removeClass('active');
|
|
|
- video.pause();
|
|
|
- nutt=0;
|
|
|
- });
|
|
|
- //点击上一个,下一个
|
|
|
- $('.videoPre').click(function () {
|
|
|
- nutt-=1;
|
|
|
- if (nutt < 0) {
|
|
|
- msg('已经到第一个了.');
|
|
|
- nutt = 0;
|
|
|
- return false;
|
|
|
- };
|
|
|
- let video = document.getElementById('videoAt');
|
|
|
- video.pause();
|
|
|
- let urlT = $('.contImg ul li').eq(nutt).find('input').val();
|
|
|
- videoHtml = `<source src="http://118.190.205.7:8000${urlT}" type="video/mp4">`;
|
|
|
- $('#videoAt').html(videoHtml);
|
|
|
- let videoNew = document.getElementById('videoAt');
|
|
|
- videoNew.load();
|
|
|
- });
|
|
|
- $('.videoNext').click(function () {
|
|
|
- nutt+=1;
|
|
|
- if (nutt > $('.contImg ul li').length - 1) {
|
|
|
- nutt = $('.contImg ul li').length - 1;
|
|
|
- msg('已经到最后一个了.');
|
|
|
- return false;
|
|
|
- }
|
|
|
- let video = document.getElementById('videoAt');
|
|
|
- video.pause();
|
|
|
- let urlT = $('.contImg ul li').eq(nutt).find('input').val();
|
|
|
- videoHtml = `<source src="http://118.190.205.7:8000${urlT}" type="video/mp4">`;
|
|
|
- $('#videoAt').html(videoHtml);
|
|
|
- let videoNew = document.getElementById('videoAt');
|
|
|
- videoNew.load();
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
//f分页
|
|
|
function pages() {
|
|
|
$('.pagination').on('click', 'li', function (e) {
|
|
@@ -243,14 +190,4 @@ $(function () {
|
|
|
$('#msg').val('');
|
|
|
}, 2000)
|
|
|
}
|
|
|
- //防止下载
|
|
|
- $('#videoAt').hover(function(){
|
|
|
- document.oncontextmenu=function(e){
|
|
|
- return false
|
|
|
- }
|
|
|
- },function(){
|
|
|
- document.oncontextmenu=function(e){
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
})
|