web_toolset/web/html/body/nas/animMeta.html
Yutousama 305d94b891 优化页面展示
rss订阅新增查看原地址
2022-05-07 23:05:23 +08:00

65 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>动画元数据设置</title>
<link rel="stylesheet" href="/layui/css/layui.css">
<link rel="stylesheet" href="/css/my.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
<div id="header"></div>
<div class="layui-body mybody body2">
<div id="side"></div>
<div id="animmeta"></div>
<div id="footer"></div>
</div>
</div>
<script src="/layui/layui.js"></script>
<script src="/js/jquery-3.2.1.js"></script>
<script>
$('#header').load("/html/header.html");
$('#footer').load("/html/footer.html");
var loadId = layer.load();
$.get('/anim/meta/get.do', function (json) {
layer.close(loadId)
layui.use('tree', function () {
var tree = layui.tree;
tree.render({
elem: '#animmeta',
data: json,
click: function (obj) {
var url="https://bgm.tv/subject_search/"+encodeURIComponent(obj.data.title)+"?cat=2"
layer.prompt({
title: "设置元数据:"+'<a href='+url+' target="_blank">查询</a>',
value: ''
}, function (value, index, elem) {
loadId=layer.load()
$.post('/anim/meta/set.do',{path:obj.data.id,id:value},function(data){
layer.close(loadId);
layer.msg("设置成功")
layer.close(index);
})
})
}
})
})
})
</script>
<style>
#icon {
float: right;
}
.body {
bottom: 0;
}
</style>
</body>
</html>