web_toolset/web/html/body/nas/animMeta.html
2022-04-02 23:31:26 +08:00

64 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">
</head>
<body>
<div class="layui-layout layui-layout-admin">
<div id="header"></div>
<div class="layui-body mybody">
<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>