From 1c934190b4adcd66a578bbe285b6ed17b369d431 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Mon, 28 Mar 2022 19:09:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9F=B3=E4=B9=90=E5=88=86=E4=BA=AB=E7=82=B9?= =?UTF-8?q?=E7=A1=AE=E5=AE=9A=E5=A4=8D=E5=88=B6=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/html/body/nas/music.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/web/html/body/nas/music.html b/web/html/body/nas/music.html index b9788fd..38f6577 100644 --- a/web/html/body/nas/music.html +++ b/web/html/body/nas/music.html @@ -187,10 +187,13 @@ } $.post('/nas/music/share.do',{file:file,isDir:isDir},function (json){ if(json.code===0){ + var url="https://"+window.location.host+"/html/body/nas/music.html?share="+json.data.token layer.prompt({ 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); }) } @@ -256,9 +259,14 @@ $('#play_share').click(function (){ $.post('/nas/music/share.do',{file:playNow},function (json){ if(json.code===0){ + var url="https://"+window.location.host+"/html/body/nas/music.html?share="+json.data.token layer.prompt({ 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); }) } })