音乐分享点确定复制链接
This commit is contained in:
parent
6f4125bdfb
commit
1c934190b4
@ -187,10 +187,13 @@
|
|||||||
}
|
}
|
||||||
$.post('/nas/music/share.do',{file:file,isDir:isDir},function (json){
|
$.post('/nas/music/share.do',{file:file,isDir:isDir},function (json){
|
||||||
if(json.code===0){
|
if(json.code===0){
|
||||||
|
var url="https://"+window.location.host+"/html/body/nas/music.html?share="+json.data.token
|
||||||
layer.prompt({
|
layer.prompt({
|
||||||
title:"分享链接",
|
title:"分享链接",
|
||||||
value:"https://"+window.location.host+"/html/body/nas/music.html?share="+json.data.token
|
value:url
|
||||||
},function (value,index,elem){
|
},function (value,index,elem){
|
||||||
|
$('.layui-layer-input')[0].select()
|
||||||
|
document.execCommand("Copy")
|
||||||
layer.close(index);
|
layer.close(index);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -256,9 +259,14 @@
|
|||||||
$('#play_share').click(function (){
|
$('#play_share').click(function (){
|
||||||
$.post('/nas/music/share.do',{file:playNow},function (json){
|
$.post('/nas/music/share.do',{file:playNow},function (json){
|
||||||
if(json.code===0){
|
if(json.code===0){
|
||||||
|
var url="https://"+window.location.host+"/html/body/nas/music.html?share="+json.data.token
|
||||||
layer.prompt({
|
layer.prompt({
|
||||||
title:"分享链接",
|
title:"分享链接",
|
||||||
value:"https://"+window.location.host+"/html/body/nas/music.html?share="+json.data.token
|
value:url
|
||||||
|
},function(value,index,elem){
|
||||||
|
$('.layui-layer-input')[0].select()
|
||||||
|
document.execCommand("Copy")
|
||||||
|
layer.close(index);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user