update
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user