<html lang="zh-cn">
|
|
<head>
|
<meta charset="utf-8">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="referrer" content="never">
|
<title>爱奇艺专辑更新</title>
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
<link href="css/maincontent.css" rel="stylesheet">
|
<link href="css/tablestyle.css" rel="stylesheet">
|
<style>
|
.form-group {
|
margin-bottom: 30px;
|
}
|
|
.checkbox input[type=checkbox] {
|
top: 6px;
|
}
|
|
#container-video {
|
display: block;
|
}
|
|
#container-web {
|
display: none;
|
}
|
|
#container-special {
|
display: none;
|
}
|
|
#dialog-chooselink {
|
padding: 20px;
|
}
|
|
#dialog-chooselink select {
|
width: 100px;
|
}
|
|
#dialog-chooselink label {
|
display: inline;
|
}
|
|
#dialog-chooselink input[type=text] {
|
display: inline;
|
width: 500px;
|
}
|
|
#dialog-chooselink ul {
|
display: block;
|
list-style: none;
|
}
|
|
#dialog-chooselink ul li {
|
display: inline;
|
list-style: none;
|
width: 33%;
|
float: left;
|
}
|
|
#dialog-chooselink input[type=radio] {
|
width: 20px;
|
height: 20px;
|
}
|
|
#dialog-chooselink .search-result {
|
height: 630px;
|
overflow-y: scroll;
|
}
|
</style>
|
</head>
|
|
<body>
|
<nav class="navbar navbar-default navbar-fixed-top"></nav>
|
<div id="mainbody">
|
<div id="sidebar">
|
<dl>
|
</dl>
|
</div>
|
<div id="neirong">
|
<div class="erjidh">
|
<ol class="breadcrumb">
|
<li><a href="tuijian-lanmuneirong.html">爱奇艺</a></li>
|
<li class="active">专辑更新</li>
|
</ol>
|
</div>
|
<form class="form-horizontal"
|
style="width: 800px; margin-top: 10px; border-style: solid; border-width: 2px; padding: 10px;">
|
|
<h4>爱奇艺专辑更新</h4>
|
|
<div class="form-group">
|
<label for="input1" class="changdu1 control-label">播放链接</label>
|
<div class="col-sm-7">
|
<input type="text" class="form-control" id="playurl"
|
placeholder="爱奇艺播放链接">
|
</div>
|
</div>
|
|
<div class="button0">
|
<div class="button">
|
<button type="button" class="btn btn-primary save">提交</button>
|
</div>
|
<div class="button">
|
<input type="reset" class="btn btn-default" value="重置" />
|
</div>
|
</div>
|
</form>
|
|
|
|
<div id="shortVideoForm"
|
style="width: 800px; margin-top: 100px; border-style: solid; border-width: 2px; padding: 10px;">
|
<h4>爱奇艺短视频添加到首页推荐</h4>
|
<div id="content"></div>
|
|
<button class="btn btn-primary" id="add">添加</button>
|
|
|
<div class="button0">
|
<div class="button">
|
<button type="button" class="btn btn-primary" id="addShortVideo">提交</button>
|
</div>
|
|
</div>
|
</div>
|
|
|
<div
|
style="width: 800px; margin-top: 100px; border-style: solid; border-width: 2px; padding: 10px;">
|
<h4>视频更新手动操作</h4>
|
|
<div class="button0">
|
<div class="button">
|
<button type="button" class="btn btn-primary" id="iqiyiUpdate">爱奇艺视频更新</button>
|
<button type="button" class="btn btn-primary" id="acfunUpdate">ACFUN视频更新</button>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<script src="js/jquery-1.9.1.min.js"></script>
|
<script src="js/bootstrap.min.js"></script>
|
<script src="js/nav.js"></script>
|
<script src="js/common.js"></script>
|
<script src="layer/layer.js"></script>
|
<script>
|
$(function() {
|
$(".save").click(
|
function() {
|
if ($("#playurl").val() == ''
|
|| $("#playurl").val().length <= 0)
|
return;
|
|
$.post('/BuWan/admin/new/api/video/updateIqiyiAlbum', {
|
url : $("#playurl").val()
|
}, function(data) {
|
if (data.code == 0) {
|
alert("更新成功")
|
}
|
}, 'json');
|
});
|
|
//爱奇艺短视频添加到推荐
|
$("#add")
|
.click(
|
function() {
|
var html = "";
|
html += "<div class='form-group'>";
|
html += "<label for='input1' class='changdu1 control-label'>播放链接</label>";
|
html += "<div class='col-sm-7'>";
|
html += "<input type='text' class='form-control shorturl' id='playurl'";
|
html+="placeholder='爱奇艺播放链接'>";
|
html += "</div>";
|
html += "<button class='btn btn-default del'>删除</button></div>";
|
$("#content").append(html);
|
|
$(".del").bind("click", function() {
|
$(this).parent().remove();
|
});
|
});
|
$("#addShortVideo").click(function() {
|
|
var videoArray = new Array();
|
for (var i = 0; i < $(".shorturl").length; i++) {
|
videoArray.push($(".shorturl").eq(i).val());
|
}
|
|
var index = layer.confirm('是否提交?', {
|
btn : [ '是', '否' ]
|
//按钮
|
}, function() {
|
layer.close(index);
|
$.post('/BuWan/admin/new/api/video/addIqiyiShortVideo', {
|
urlJson : JSON.stringify(videoArray)
|
}, function(data) {
|
layer.msg(data.msg);
|
}, 'json');
|
}, function() {
|
});
|
|
});
|
|
|
$("#iqiyiUpdate").click(function() {
|
var index = layer.confirm('是否确定更新?', {
|
btn : [ '是', '否' ]
|
//按钮
|
}, function() {
|
layer.close(index);
|
$.post('/BuWan/admin/new/api/video/iqiyiUpdate', {
|
urlJson :''
|
}, function(data) {
|
layer.msg(data.msg);
|
}, 'json');
|
}, function() {
|
});
|
|
});
|
|
$("#acfunUpdate").click(function() {
|
var index = layer.confirm('是否确定更新?', {
|
btn : [ '是', '否' ]
|
//按钮
|
}, function() {
|
layer.close(index);
|
$.post('/BuWan/admin/new/api/video/acfunUpdate', {
|
urlJson : ''
|
}, function(data) {
|
layer.msg(data.msg);
|
}, 'json');
|
}, function() {
|
});
|
|
});
|
|
|
});
|
</script>
|
|
</body>
|
|
</html>
|