This commit is contained in:
2020-05-13 17:39:29 +08:00
parent 61b1636c54
commit d124f90553
10 changed files with 225 additions and 36 deletions

View File

@@ -15,7 +15,7 @@
<div id="side"></div>
<blockquote class="layui-elem-quote"><span id="ip">B站直播下载器</span></blockquote>
<button type="button" id='add' class="layui-btn layui-btn-normal" style="margin-left: 10px;">新增</button>
<table id="address" lay-filter="listTools" ></table>
<table id="address" lay-filter="listTools"></table>
<div id="footer"></div>
</div>
@@ -27,6 +27,9 @@
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<script>
$('#header').load("/html/header.html");
$('#footer').load("/html/footer.html");
$('#side').load("/html/body/nas/side.html");
$.get("/login/check.do", function (data) {
let json = JSON.parse(data);
if (json.code != 0) {
@@ -105,21 +108,19 @@
})
});
$.ajax({ cache: false })
$('#header').load("/html/header.html");
$('#footer').load("/html/footer.html");
$('#side').load("/html/body/nas/side.html");
$('#add').click(function(){
$('#add').click(function () {
layer.prompt({
title:"填写url或cid"
},function(value,index){
$.post("/bili/live/add/url.do",{url:value},function(data){
let json=JSON.parse(data);
title: "填写url或cid"
}, function (value, index) {
$.post("/bili/live/add/url.do", { url: value }, function (data) {
let json = JSON.parse(data);
layer.msg(json.msg);
layer.close(index)
});
})
});
</script>