|
|
@@ -44,8 +44,8 @@ $(function () {
|
|
|
var videoInfo = videoInfoList[i];
|
|
|
str += "<li class=\"col-lg-8 col-md-6 col-sm-4 col-xs-3\">" +
|
|
|
" <div class=\"myui-vodlist__box\">" +
|
|
|
- "<a class=\"myui-vodlist__thumb lazyload\" title=\"\" style=\"background-image: url("image/" + videoInfo.imgUrl + "");\">" +
|
|
|
- " <span class=\"play hidden-xs\"></span>" +
|
|
|
+ " <a class=\"myui-vodlist__thumb lazyload\" title=\"\" style=\"background-image: url("qibing/" + videoInfo.imgUrl + "");\">" +
|
|
|
+ " <span class=\"playvideo play hidden-xs\" videoUrl='" + videoInfo.videoUrl + "'></span>" +
|
|
|
" <span class=\"pic-tag pic-tag-top\">" +
|
|
|
" <span class=\"tag\" style=\"background-color: #FB7299;\">" + videoInfo.identificationCode + "</span>" +
|
|
|
" <span class=\"tag\" style=\"background-color: #00C0FF;\">" + videoInfo.issueDate + "</span>" +
|
|
|
@@ -53,7 +53,7 @@ $(function () {
|
|
|
" <span class=\"pic-text text-right\">" + videoInfo.score + "</span>" +
|
|
|
" </a>" +
|
|
|
" <div class=\"myui-vodlist__detail\">" +
|
|
|
- " <h4 class=\"title text-overflow\"><a title=\" " + videoInfo.name + " \">" + videoInfo.name + "</a></h4>" +
|
|
|
+ " <h4 class=\"bigpreview title text-overflow\" imgUrl='" + videoInfo.imgUrl + "' ><a title=\" " + videoInfo.name + " \">" + videoInfo.name + "</a></h4>" +
|
|
|
" <p class=\"text text-overflow text-muted hidden-xs\">直属:" + videoInfo.mainWho + "</p>" +
|
|
|
" </div>" +
|
|
|
" </div>" +
|
|
|
@@ -89,6 +89,26 @@ $(function () {
|
|
|
search(pageNo);
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $(".playvideo").click(function () {
|
|
|
+ if ($("#playvideo").css("display") === 'none') {
|
|
|
+ $("#playvideo").css("display", "block");
|
|
|
+ $("#playvideo").find("video").attr("src", "qibing/" + $(this).attr("videoUrl"));
|
|
|
+ $("#playvideo").find("video").prop('muted', true);
|
|
|
+ } else if ($("#playvideo").css("display") === 'block') {
|
|
|
+ $("#playvideo").css("display", "none");
|
|
|
+ $("#playvideo").find("video").attr("src", "");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $(".bigpreview").click(function () {
|
|
|
+ if ($("#bigpreview").css("display") === 'none') {
|
|
|
+ $("#bigpreview").css("display", "block");
|
|
|
+ $("#bigpreview").find("img").attr("src", "qibing/" + $(this).attr("imgUrl"));
|
|
|
+ } else if ($("#bigpreview").css("display") === 'block') {
|
|
|
+ $("#bigpreview").css("display", "none");
|
|
|
+ $("#bigpreview").find("img").attr("src", "");
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
} else {
|
|
|
alert(data.message);
|
|
|
@@ -131,6 +151,12 @@ $(function () {
|
|
|
$(".dropdown-hover").mouseout(function () {
|
|
|
$(".dropdown-box").attr("style", "display: none;");
|
|
|
});
|
|
|
+ $(".clearAll").click(function (){
|
|
|
+ $("#playvideo").find("video").attr("src", "");
|
|
|
+ $("#bigpreview").find("img").attr("src", "");
|
|
|
+ $("#playvideo").css("display", "none");
|
|
|
+ $("#bigpreview").css("display", "none");
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
function search(pageNo) {
|
|
|
@@ -170,8 +196,8 @@ function search(pageNo) {
|
|
|
|
|
|
str += "<li class=\"col-lg-8 col-md-6 col-sm-4 col-xs-3\">" +
|
|
|
" <div class=\"myui-vodlist__box\">" +
|
|
|
- "<a class=\"myui-vodlist__thumb lazyload\" title=\"\" style=\"background-image: url("image/" + videoInfo.imgUrl + "");\">" +
|
|
|
- " <span class=\"play hidden-xs\"></span>" +
|
|
|
+ " <a class=\"myui-vodlist__thumb lazyload\" title=\"\" style=\"background-image: url("qibing/" + videoInfo.imgUrl + "");\">" +
|
|
|
+ " <span class=\"playvideo play hidden-xs\" videoUrl='" + videoInfo.videoUrl + "'></span>" +
|
|
|
" <span class=\"pic-tag pic-tag-top\">" +
|
|
|
" <span class=\"tag\" style=\"background-color: #FB7299;\">" + videoInfo.identificationCode + "</span>" +
|
|
|
" <span class=\"tag\" style=\"background-color: #00C0FF;\">" + date + "</span>" +
|
|
|
@@ -179,7 +205,7 @@ function search(pageNo) {
|
|
|
" <span class=\"pic-text text-right\">" + videoInfo.score + "</span>" +
|
|
|
" </a>" +
|
|
|
" <div class=\"myui-vodlist__detail\">" +
|
|
|
- " <h4 class=\"title text-overflow\"><a title=\" " + videoInfo.name + " \">" + videoInfo.name + "</a></h4>" +
|
|
|
+ " <h4 class=\"bigpreview title text-overflow\" imgUrl='" + videoInfo.imgUrl + "' ><a title=\" " + videoInfo.name + " \">" + videoInfo.name + "</a></h4>" +
|
|
|
" <p class=\"text text-overflow text-muted hidden-xs\">直属:" + videoInfo.mainWho + "</p>" +
|
|
|
" </div>" +
|
|
|
" </div>" +
|
|
|
@@ -203,6 +229,25 @@ function search(pageNo) {
|
|
|
search(pageNo);
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $(".playvideo").click(function () {
|
|
|
+ if ($("#playvideo").css("display") === 'none') {
|
|
|
+ $("#playvideo").css("display", "block");
|
|
|
+ $("#playvideo").find("video").attr("src", "qibing/" + $(this).attr("videoUrl"));
|
|
|
+ } else if ($("#playvideo").css("display") === 'block') {
|
|
|
+ $("#playvideo").css("display", "none");
|
|
|
+ $("#playvideo").find("video").attr("src", "");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $(".bigpreview").click(function () {
|
|
|
+ if ($("#bigpreview").css("display") === 'none') {
|
|
|
+ $("#bigpreview").css("display", "block");
|
|
|
+ $("#bigpreview").find("img").attr("src", "qibing/" + $(this).attr("imgUrl"));
|
|
|
+ } else if ($("#bigpreview").css("display") === 'block') {
|
|
|
+ $("#bigpreview").css("display", "none");
|
|
|
+ $("#bigpreview").find("img").attr("src", "");
|
|
|
+ }
|
|
|
+ });
|
|
|
} else {
|
|
|
alert(data.message);
|
|
|
}
|