text: (window.webpackJsonp=window.webpackJsonp||[]).push([[21],{2658:function(t,e,n){"use strict";n.r(e);n(359);var o=n(642),r={name:"WsingDownloader",data:function(){return{results:"",loading:!1,form:{url:""},regex:o.a}},methods:{download:function(){var t=this;if(this.loading)return!1;o.a.http.test(this.form.url)?(this.loading=!0,this.results="",this.form.url=this.form.url.match(o.a.http)[0],this.$axios.post("/5sing_downloader",{url:this.form.url}).then((function(e){t.loading=!1,t.results=e.data.data})).catch((function(e){t.loading=!1,t.$notify.error({title:"解析失败",message:e})}))):this.$notify.error({title:"解析失败",message:"请输入正确的链接"})},handleFileSize:function(t){return 0===t?"未知":(t=(t/1024/1024).toFixed(2))<1024?"".concat(t,"MB"):"".concat((t/1024).toFixed(2),"GB")}}},l=n(2),d=function(t){t.exports.head={meta:[{hid:"keywords",keywords:"5sing mp3解析下载,5sing 在线解析,MikuTools,Ice-Hazymoon,在线工具"},{hid:"description",description:"在线 5sing mp3解析下载"}],title:"5sing 歌曲下载 - MikuTools"},t.options.toolsMeta={name:"5sing 歌曲下载",path:"/5sing_downloader",head:{meta:[{hid:"keywords",keywords:"5sing mp3解析下载,5sing 在线解析,MikuTools,Ice-Hazymoon,在线工具"},{hid:"description",description:"在线 5sing mp3解析下载"}],title:"5sing 歌曲下载 - MikuTools"},show:!1,key:"vip"}},component=Object(l.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wsing_downloader"},[n("nya-container",{attrs:{title:"5sing 歌曲下载"}},[n("el-form",{staticClass:"nya-input-btn",attrs:{model:t.form},nativeOn:{submit:function(t){t.preventDefault()}}},[n("span",{staticClass:"nya-subtitle"},[t._v("请输入歌曲链接")]),n("el-form-item",{attrs:{prop:"url",rules:[{required:!0,message:"链接不能为空"},{pattern:t.regex.http,message:"链接格式不合法"}]}},[n("el-input",{attrs:{disabled:t.loading,clearable:"",autofocus:"",placeholder:"http://5sing.kugou.com/fc/16893799.html"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.download(e))}},model:{value:t.form.url,callback:function(e){t.$set(t.form,"url","string"==typeof e?e.trim():e)},expression:"form.url"}},[n("el-button",{attrs:{slot:"append",loading:t.loading},on:{click:t.download},slot:"append"},[t._v("\n                        "+t._s(t.loading?"获取中":"开始获取")+"\n                    ")])],1)],1)],1)],1),n("nya-container",{directives:[{name:"show",rawName:"v-show",value:t.results.length,expression:"results.length"}],attrs:{title:"获取成功"}},t._l(t.results,(function(e,o){return n("div",{key:o},[n("p",[n("span",[t._v(t._s(e.type))]),n("span",[t._v("("+t._s(t.handleFileSize(e.size))+")：")]),n("a",{attrs:{href:e.url,target:"_blank",title:"右键另存为下载或长按保存",rel:"noopener noreferrer"}},[t._v("\n                    "+t._s(e.url)+"\n                ")])])])})),0)],1)}),[],!1,null,null,null);"function"==typeof d&&d(component);e.default=component.exports},642:function(t,e,n){"use strict";e.a={http:/https?:\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/,http_with_unicode:/https?:\/\/[-A-Za-z0-9\u2E80-\u9FFF+&@#/%?=~_|!:,.;]+[-A-Za-z0-9\u2E80-\u9FFF+&@#/%=~_|]/}}}]);