2022-04-02 23:31:26 +08:00
|
|
|
<!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">
|
2022-05-07 23:05:23 +08:00
|
|
|
<link rel="stylesheet" href="/css/my.css">
|
2022-04-02 23:31:26 +08:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="layui-layout layui-layout-admin">
|
|
|
|
<div id="header"></div>
|
2022-05-07 23:05:23 +08:00
|
|
|
<div class="layui-body mybody body2">
|
2022-04-02 23:31:26 +08:00
|
|
|
<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>
|