text: (function(t){function e(e){for(var a,i,o=e[0],c=e[1],l=e[2],d=0,p=[];d<o.length;d++)i=o[d],Object.prototype.hasOwnProperty.call(s,i)&&s[i]&&p.push(s[i][0]),s[i]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(t[a]=c[a]);u&&u(e);while(p.length)p.shift()();return n.push.apply(n,l||[]),r()}function r(){for(var t,e=0;e<n.length;e++){for(var r=n[e],a=!0,o=1;o<r.length;o++){var c=r[o];0!==s[c]&&(a=!1)}a&&(n.splice(e--,1),t=i(i.s=r[0]))}return t}var a={},s={app:0},n=[];function i(e){if(a[e])return a[e].exports;var r=a[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=a,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(r,a,function(e){return t[e]}.bind(null,a));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="";var o=window["webpackJsonp"]=window["webpackJsonp"]||[],c=o.push.bind(o);o.push=e,o=o.slice();for(var l=0;l<o.length;l++)e(o[l]);var u=c;n.push([0,"chunk-vendors"]),r()})({0:function(t,e,r){t.exports=r("56d7")},1695:function(t,e,r){"use strict";var a=r("3544"),s=r.n(a);s.a},3544:function(t,e,r){},"405f":function(t,e,r){},"56d7":function(t,e,r){"use strict";r.r(e);r("cadf"),r("551c"),r("f751"),r("097d");var a=r("2b0e"),s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"app"}},[r("div",{staticClass:"container"},[r("nav",{staticClass:"navbar navbar-expand-lg navbar-dark bg-primary"},[r("div",{on:{click:t.off}},[r("router-link",{staticClass:"a-btn",attrs:{to:"/HelloWorld"}},[t._v("music-Search")])],1),r("router-link",{staticClass:"a-btn",attrs:{to:"/au"}},[t._v("电影")])],1)]),r("keep-alive",[r("router-view")],1)],1)},n=[],i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"hello"},[r("div",{staticClass:"container"},[r("div",{staticClass:"jumbotron"},[t._m(0),r("p",{staticClass:"lead"},[t._v("搜索音乐~~Search API允许您在网站中放置搜索字段，以搜索iTunes Store和Apple Books Store中的内容。您可以搜索各种内容; 包括书籍，电影，播客，音乐，音乐视频，有声读物和电视节目~~~~使用的接口由于是国外接口，并不稳定，可以尝试多刷新几次网页")]),r("p",{directives:[{name:"show",rawName:"v-show",value:t.errored,expression:"errored"}]},[t._v("请重新修改关键字，或者刷新当前页面，由于当前接口不稳定，可能需要多尝试几次刷新")]),r("hr",{staticClass:"my-4"}),r("div",{staticClass:"text-center"},[r("form",{attrs:{id:"search-form"}},[r("div",{staticClass:"form-group"},[r("input",{ref:"searchvalue",staticClass:"form-control",attrs:{type:"text",id:"search-text",placeholder:"输入歌曲名...搜索歌曲,作者~~例如：周杰伦"}})]),r("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"submit"},on:{click:t.searchmusic}},[t._v("搜索")])])])]),r("div",{staticClass:"card-columns"},t._l(t.music,(function(e,a){return"song"==e.kind?r("div",{key:a,staticClass:"card"},[r("img",{staticClass:"card-img-top",attrs:{src:e.artworkUrl100}}),r("div",{staticClass:"card-body"},[r("h5",{staticClass:"card-title"},[t._v(t._s(e.trackName))]),r("p",{staticClass:"card-text"},[t._v(t._s(e.artistName))])]),r("ul",{staticClass:"list-group list-group-flush"},[r("li",{staticClass:"list-group-item"},[t._v(t._s(e.collectionName))]),r("li",{staticClass:"list-group-item"},[t._v(t._s(e.primaryGenreName)+"·"+t._s(e.releaseDate.split("-",1)))]),r("li",{staticClass:"list-group-item"},[t._v("\n            试听:"),r("br"),r("audio",{staticClass:"audiomusic",attrs:{src:e.previewUrl,controls:"controls"}})])]),r("div",{staticClass:"card-body"},[r("a",{staticClass:"card-link",attrs:{href:e.trackViewUrl,target:"_blank"}},[t._v("show in apple music")])])]):t._e()})),0)])])},o=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"text-center"},[r("h1",{staticClass:"display-3"},[t._v("iTunes Search API")])])}],c=r("bc3a"),l=r.n(c),u={name:"HelloWorld",props:{},data:function(){return{searchvalue:null,music:null,errored:!1}},methods:{getHomeInfo:function(){var t=this;l.a.get("https://itunes.apple.com/search?term=".concat(this.searchvalue,"&country=TW&limit=25")).then((function(e){t.music=e.data.results,0==t.music.length&&alert("没有找到相关信息，请修改关键词"),t.errored=!1})).catch((function(e){t.errored=!0}))},searchmusic:function(t){t.preventDefault(),this.searchvalue=this.$refs.searchvalue.value,this.getHomeInfo()}},created:function(){},mounted:function(){},updated:function(){}},d=u,p=(r("5bf7"),r("2877")),f=Object(p["a"])(d,i,o,!1,null,"125ee420",null),v=f.exports,m={name:"app",methods:{off:function(){console.log(111)}},components:{HelloWorld:v},created:function(){this.$router.push("/HelloWorld")}},h=m,b=(r("1695"),Object(p["a"])(h,s,n,!1,null,"3410ff49",null)),_=b.exports,C=r("8c4f"),y=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"container"},[r("div",{staticClass:"jumbotron"},[t._m(0),r("p",{staticClass:"lead"},[t._v("audio~~Search ~~API允许您在网站中放置搜索字段，搜索电影相关视频资料~~~~~~使用的接口由于是国外接口，并不稳定，可以尝试多刷新几次网页")]),r("p",{directives:[{name:"show",rawName:"v-show",value:t.errored,expression:"errored"}]},[t._v("请重新修改关键字，或者刷新当前页面，由于当前接口不稳定，可能需要多尝试几次刷新")]),r("hr",{staticClass:"my-4"}),r("div",{staticClass:"text-center"},[r("form",{attrs:{id:"search-form"}},[r("div",{staticClass:"form-group"},[r("input",{ref:"searchvalue",staticClass:"form-control",attrs:{type:"text",id:"search-text",placeholder:"输入电影名·关键字·相关字词搜索...例如：蜘蛛人"}})]),r("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"submit"},on:{click:t.searchadiou}},[t._v("搜索")])])])]),t._l(t.music,(function(e,a){return r("div",{key:a,staticClass:"jumbotron"},[r("h2",[t._v(t._s(e.trackCensoredName)+"·类型："+t._s(e.primaryGenreName))]),r("div",{staticClass:"audio"},[r("video",{attrs:{width:"100%",controls:""}},[r("source",{attrs:{src:e.previewUrl,type:"video/x-m4v"}})]),r("div",{staticClass:"vjs-poster",staticStyle:{"background-image":"url(https://static.anime1.me/playerImg/8.jpg)",position:"absolute"},attrs:{tabindex:"-1","aria-disabled":"flase"},on:{click:function(e){return t.off(a)}}})]),r("p",{staticClass:"lead"},[t._v(t._s(e.longDescription))])])}))],2)},g=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"text-center"},[r("h1",{staticClass:"display-3"},[t._v("iTunes Search API")])])}],w={name:"au",props:{},data:function(){return{searchvalue:null,music:null,errored:!1}},methods:{getHomeInfo:function(){var t=this;l.a.get("https://itunes.apple.com/search?term=".concat(this.searchvalue,"&country=TW&limit=26&media=movie")).then((function(e){t.music=e.data.results,t.errored=!1,0==t.music.length&&alert("没有找到相关信息，请修改关键词")})).catch((function(e){t.errored=!0}))},searchadiou:function(t){t.preventDefault(),this.searchvalue=this.$refs.searchvalue.value,this.getHomeInfo()},off:function(t){document.getElementsByClassName("vjs-poster")[t].style.position=""}}},k=w,x=(r("a438"),Object(p["a"])(k,y,g,!1,null,"7fa2a5a6",null)),j=x.exports;a["a"].use(C["a"]);var O=new C["a"]({mode:"history",base:"",routes:[{path:"",redirect:"/HelloWorld"},{path:"/HelloWorld",name:"HelloWorld",component:v},{path:"/au",name:"au",component:j}]});r("891c");a["a"].config.productionTip=!1,new a["a"]({router:O,render:function(t){return t(_)}}).$mount("#app")},"5bf7":function(t,e,r){"use strict";var a=r("b93d"),s=r.n(a);s.a},"891c":function(t,e,r){},a438:function(t,e,r){"use strict";var a=r("405f"),s=r.n(a);s.a},b93d:function(t,e,r){}});