音乐播放器界面暴露到header.html
音乐播放器界面不需要登录即可使用
This commit is contained in:
parent
3d60754263
commit
76c064b14c
@ -53,17 +53,15 @@
|
||||
<a class="layui-btn layui-btn-xs" lay-event="download">下载</a>
|
||||
</script>
|
||||
<script>
|
||||
//let localhost="http://192.168.31.88:8000";
|
||||
let localhost = "";
|
||||
let musicLib=[]
|
||||
let isRandom=true;
|
||||
let playIndex=0;
|
||||
let playNow=""
|
||||
$.get("/nas/music/getlocalhost.do",function (obj){
|
||||
/* let json=JSON.parse(obj);
|
||||
localhost=json.data;*/
|
||||
$.get("/nas/music/getlocalhost.do?token=PlVodzYhvxRQbOHKakpKs2dvnoc43Cnk",function (obj){
|
||||
let json=JSON.parse(obj);
|
||||
localhost=json.data;
|
||||
// localhost="http://116.22.200.20:8000"
|
||||
})
|
||||
layui.use(['table', 'element'], function () {
|
||||
let table = layui.table;
|
||||
let element = layui.element;
|
||||
@ -117,12 +115,8 @@
|
||||
});
|
||||
});
|
||||
|
||||
$.get("/login/check.do", function (data) {
|
||||
let json = JSON.parse(data);
|
||||
if (json.code !== 0) {
|
||||
window.location.href = "/"
|
||||
}
|
||||
})
|
||||
|
||||
let player = $.AudioPlayer;
|
||||
player.init({
|
||||
container: '#audioWrap'
|
||||
|
@ -28,6 +28,7 @@
|
||||
<dd><a href="http://nas.yutou233.cn/" target="_blank">管理后台</a></dd>
|
||||
<dd><a href="http://bt.yutou233.cn" target="_blank">BT下载</a></dd>
|
||||
<dd><a href="http://tools.yutou233.cn/jellyfin.do" target="_blank">jellyfin</a></dd>
|
||||
<dd><a href="/html/body/nas/music.html" >NAS音乐播放器</a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
<li class="layui-nav-item" id='icon'>
|
||||
|
Loading…
Reference in New Issue
Block a user