B站下载页面新增添加url功能
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
<div class="layui-body" style="left: 200px;">
|
||||
<div id="side"></div>
|
||||
<blockquote class="layui-elem-quote"><span id="ip">B站直播下载器</span></blockquote>
|
||||
<table id="address" lay-filter="listTools"></table>
|
||||
<button type="button" id='add' class="layui-btn layui-btn-normal" style="margin-left: 10px;">新增</button>
|
||||
<table id="address" lay-filter="listTools" ></table>
|
||||
<div id="footer"></div>
|
||||
</div>
|
||||
|
||||
@@ -107,6 +108,19 @@
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
$('#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);
|
||||
layer.msg(json.msg);
|
||||
layer.close(index)
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user