text: (function(t){function e(e){for(var a,r,c=e[0],l=e[1],o=e[2],u=0,p=[];u<c.length;u++)r=c[u],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&p.push(i[r][0]),i[r]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(t[a]=l[a]);d&&d(e);while(p.length)p.shift()();return n.push.apply(n,o||[]),s()}function s(){for(var t,e=0;e<n.length;e++){for(var s=n[e],a=!0,c=1;c<s.length;c++){var l=s[c];0!==i[l]&&(a=!1)}a&&(n.splice(e--,1),t=r(r.s=s[0]))}return t}var a={},i={app:0},n=[];function r(e){if(a[e])return a[e].exports;var s=a[e]={i:e,l:!1,exports:{}};return t[e].call(s.exports,s,s.exports,r),s.l=!0,s.exports}r.m=t,r.c=a,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)r.d(s,a,function(e){return t[e]}.bind(null,a));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/";var c=window["webpackJsonp"]=window["webpackJsonp"]||[],l=c.push.bind(c);c.push=e,c=c.slice();for(var o=0;o<c.length;o++)e(c[o]);var d=l;n.push([0,"chunk-vendors"]),s()})({0:function(t,e,s){t.exports=s("56d7")},"0972":function(t,e,s){},1399:function(t,e,s){"use strict";var a=s("ef4a"),i=s.n(a);i.a},"21bb":function(t,e,s){"use strict";var a=s("2dad"),i=s.n(a);i.a},"2dad":function(t,e,s){},"4eea":function(t,e,s){},"56d7":function(t,e,s){"use strict";s.r(e);s("e260"),s("e6cf"),s("cca6"),s("a79d");var a=s("2b0e"),i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"app"}},[s("router-view")],1)},n=[],r=s("2877"),c={},l=Object(r["a"])(c,i,n,!1,null,null,null),o=l.exports,d=s("8c4f"),u=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("swiper",{attrs:{options:t.swiperOptions}},[s("swiper-slide",[s("img",{staticClass:"w-100",attrs:{src:"https://ossweb-img.qq.com/upload/adw/image/20200612/b3d9f3b40ea5f3136adb87e05faaae63.png",alt:""}})]),s("swiper-slide",[s("img",{staticClass:"w-100",attrs:{src:"https://ossweb-img.qq.com/upload/adw/image/20200613/bab185cd0bfe9beef6f1f44f6e59114f.jpeg",alt:""}})]),s("swiper-slide",[s("img",{staticClass:"w-100",attrs:{src:"https://ossweb-img.qq.com/upload/adw/image/20200616/5c787a554dfa7a5aff0d6f5aacf0d953.jpeg",alt:""}})]),s("div",{staticClass:"swiper-pagination pagination-home text-right px-3 pb-1",attrs:{slot:"pagination"},slot:"pagination"})],1),s("div",{staticClass:"nav-icons bg-white mt-3 text-center  pt-3 text-grey"},[s("div",{staticClass:"d-flex flex-wrap "},t._l(t.entries,(function(e){return s("div",{key:e.name,staticClass:"nav-item mb-3"},[s("i",{staticClass:"sprite",class:"sprite-"+e.icon}),s("div",{staticClass:"py-2"},[t._v(t._s(e.name))])])})),0),s("div",{staticClass:"bg-light py-2 fs-sm d-flex ai-center jc-center"},[t.isShowAll?s("i",{staticClass:"sprite sprite-arrow-up mr-1"}):s("i",{staticClass:"sprite sprite-arrow-down mr-1"}),s("span",{on:{click:function(e){t.isShowAll=!t.isShowAll}}},[t._v(t._s(t.isShowAll?"收起":"展开"))])])]),s("m-list-card",{attrs:{title:"新闻资讯",icon:"news",categories:t.newsCats},scopedSlots:t._u([{key:"items",fn:function(e){var a=e.category;return t._l(a.newsList,(function(e,a){return s("router-link",{key:a,staticClass:"py-2 fs-lg d-flex",attrs:{to:"/articles/"+e._id,tag:"div"}},[s("span",{staticClass:"text-info"},[t._v("["+t._s(e.categoryName)+"]")]),s("span",{staticClass:"px-2"},[t._v("|")]),s("span",{staticClass:"flex-1 text-dark text-ellipsis pr-2"},[t._v(t._s(e.title))]),s("span",{staticClass:"text-grey-1 fs-sm"},[t._v(t._s(t._f("date")(e.createdAt)))])])}))}}])}),s("m-list-card",{attrs:{title:"英雄列表",icon:"card-hero",categories:t.heroCats},scopedSlots:t._u([{key:"items",fn:function(e){var a=e.category;return[s("div",{staticClass:"d-flex flex-wrap",staticStyle:{margin:"0 -0.5rem"}},t._l(a.heroList,(function(e,a){return s("router-link",{key:a,staticClass:"p-2 text-center",staticStyle:{width:"20%"},attrs:{tag:"div",to:"/heros/"+e._id}},[s("img",{staticClass:"w-100",attrs:{src:e.avater,alt:""}}),s("div",[t._v(t._s(e.name))])])})),1)]}}])})],1)},p=[],f=(s("fb6a"),s("96cf"),s("1da1")),v=s("5a0c"),m=s.n(v),_={filters:{date:function(t){return m()(t).format("MM/DD")}},computed:{entries:function(){return this.isShowAll?this.entry_list:this.entry_list.slice(0,4)}},data:function(){return{swiperOptions:{observer:!0,observeParents:!0,loop:!0,autoplay:{delay:3e3},pagination:{el:".pagination-home"}},newsCats:[],heroCats:[],isShowAll:!1,entry_list:[{icon:"news",name:"爆料站"},{icon:"stories",name:"故事站"},{icon:"mall",name:"周边商城"},{icon:"test",name:"体验服"},{icon:"new",name:"新人专区"},{icon:"honor",name:"荣耀·传承"}]}},created:function(){this.fetchNewsCats(),this.fetchHeroCats()},methods:{fetchNewsCats:function(){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$http.get("news/list");case 2:s=e.sent,t.newsCats=s.data;case 4:case"end":return e.stop()}}),e)})))()},fetchHeroCats:function(){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$http.get("heros/list");case 2:s=e.sent,t.heroCats=s.data;case 4:case"end":return e.stop()}}),e)})))()}}},b=_,g=(s("21bb"),Object(r["a"])(b,u,p,!1,null,null,null)),h=g.exports,C=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t._m(0),s("div",{staticClass:"top-nav bg-primary pt-3 pb-2"},[s("div",{staticClass:"nav d-flex text-white jc-around pb-1"},[s("div",{staticClass:"nav-item active"},[s("router-link",{attrs:{tag:"div",to:"/"}},[t._v("首页")])],1),s("div",{staticClass:"nav-item"},[s("router-link",{attrs:{tag:"div",to:"/"}},[t._v("攻略中心")])],1),s("div",{staticClass:"nav-item"},[s("router-link",{attrs:{tag:"div",to:"/"}},[t._v("赛事中心")])],1)])]),s("router-view",{key:t.$route.path})],1)},x=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"topbar bg-black py-2 px-3 d-flex ai-center"},[a("img",{attrs:{src:s("cf05"),alt:"",height:"30px"}}),a("div",{staticClass:"px-2 flex-1"},[a("div",{staticClass:"text-white"},[t._v("王者荣耀")]),a("div",{staticClass:"text-grey fs-xxs "},[t._v("团队成就更多")])]),a("button",{staticClass:"btn bg-primary",attrs:{type:"button"}},[t._v("立即下载")])])}],w={},y=w,k=(s("a006"),Object(r["a"])(y,C,x,!1,null,null,null)),j=k.exports,S=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.model?s("div",{staticClass:"page-article"},[s("div",{staticClass:"d-flex py-3 px-2 ai-center border-bottom"},[s("router-link",{staticClass:"iconfont icon-back text-blue",attrs:{to:"/",tag:"div"}}),s("strong",{staticClass:"flex-1 text-blue pl-2 text-ellipsis"},[t._v(t._s(t.model.title))]),s("div",{staticClass:"text-grey fs-xs"},[t._v(" "+t._s(t._f("date")(t.model.createdAt))+" ")])],1),s("div",{staticClass:"px-3 body",domProps:{innerHTML:t._s(t.model.body)}}),t._m(0),s("div",{staticClass:"pt-2 px-3"},t._l(t.model.related,(function(e){return s("router-link",{key:e._id,staticClass:"py-1",attrs:{to:"/articles/"+e._id,tag:"div"}},[t._v(" "+t._s(e.title)+" ")])})),1)]):t._e()},O=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"px-3 border-top pt-3"},[s("div",{staticClass:"d-flex ai-center"},[s("span",{staticClass:"icon iconfont icon-menu"}),s("strong",{staticClass:"text-blue fs-lg ml-1"},[t._v("相关资讯")])])])}],$={filters:{date:function(t){return m()(t).format("MM/DD")}},props:{id:{requires:!0}},data:function(){return{model:{}}},created:function(){this.fetch()},methods:{fetch:function(){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$http.get("articles/".concat(t.id));case 2:s=e.sent,t.model=s.data;case 4:case"end":return e.stop()}}),e)})))()}}},E=$,q=(s("1399"),Object(r["a"])(E,S,O,!1,null,null,null)),A=q.exports,P=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.model?a("div",{staticClass:"page-hero"},[a("div",{staticClass:"topbar bg-black py-2 px-3 d-flex ai-center text-white"},[a("img",{attrs:{src:s("cf05"),alt:"",height:"30px"}}),t._m(0),a("router-link",{staticClass:"fs-sm",attrs:{to:"/",tag:"div"}},[t._v("更多英雄 >")])],1),a("div",{staticClass:"top",style:{"background-image":"url("+t.model.banner+")"}},[a("div",{staticClass:"info text-white p-3 d-flex flex-column jc-end h-100"},[a("div",{staticClass:"fs-sm"},[t._v(t._s(t.model.title))]),a("h2",{staticClass:"my-2"},[t._v(t._s(t.model.name))]),a("div",{staticClass:"fs-sm"},[t._v(" "+t._s(t.model.categories.map((function(t){return t.name})).join("/"))+" ")]),a("div",{staticClass:"d-flex jc-between pt-2"},[t.model.scores?a("div",{staticClass:"scores d-flex ai-center"},[a("span",[t._v("难度")]),a("span",{staticClass:"badge bg-brown"},[t._v(" "+t._s(t.model.scores.difficult)+" ")]),a("span",[t._v("技能")]),a("span",{staticClass:"badge bg-blue-1"},[t._v(" "+t._s(t.model.scores.skills)+" ")]),a("span",[t._v("攻击")]),a("span",{staticClass:"badge bg-danger"},[t._v(" "+t._s(t.model.scores.attack)+" ")]),a("span",[t._v("生存")]),a("span",{staticClass:"badge bg-dark"},[t._v(" "+t._s(t.model.scores.survive)+" ")])]):t._e(),a("router-link",{attrs:{to:"/",tag:"span"}},[t._v("皮肤2 >")])],1)])]),a("div",[t._m(1),a("swiper",[a("swiper-slide",[a("div",[a("div",{staticClass:"p-3  bg-white border-bottom"},[a("div",{staticClass:"d-flex"},[a("router-link",{staticClass:"btn btn-lg  flex-1 ",attrs:{tag:"button",to:"/"}},[a("i",{staticClass:"icon iconfont icon-menu"}),t._v(" 英雄介绍视频 ")]),a("router-link",{staticClass:"btn btn-lg  flex-1 ml-2 ",attrs:{tag:"button",to:"/"}},[a("i",{staticClass:"icon iconfont icon-menu "}),t._v(" 一图识英雄 ")])],1),a("div",{staticClass:"skills mt-4"},[a("div",{staticClass:"d-flex jc-around"},t._l(t.model.skills,(function(e,s){return a("img",{key:e.name,staticClass:"icon",class:{active:t.currentSkillIndex===s},staticStyle:{"border-radius":"50%"},attrs:{src:e.icon,alt:"",width:"60",height:"60"},on:{click:function(e){t.currentSkillIndex=s}}})})),0),t.currentSkill?a("div",[a("div",{staticClass:"d-flex ai-center pt-4 pb-3"},[a("h3",{staticClass:"m-0"},[t._v(t._s(t.currentSkill.name))]),a("span",{staticClass:"text-grey-1 ml-4"},[t._v(" (冷却值："+t._s(t.currentSkill.delay)+" 消耗："+t._s(t.currentSkill.cost)+") ")])]),a("p",[t._v(t._s(t.currentSkill.description))]),a("div",{staticClass:"border-bottom"}),a("p",[t._v("小提示："+t._s(t.currentSkill.tips))])]):t._e()])]),a("m-card",{staticClass:"hero-items",attrs:{plain:"",icon:"menu",title:"出装推荐"}},[a("div",{staticClass:"fs-lg mt-1"},[t._v(" 顺风出装 ")]),a("div",{staticClass:"d-flex jc-around text-center mt-2"},t._l(t.model.items1,(function(e){return a("div",{key:e.name},[a("img",{attrs:{src:e.icon,alt:""}}),a("div",{staticClass:"fs-xs"},[t._v(t._s(e.name))])])})),0),a("div",{staticClass:"border-bottom mt-3"}),a("div",{staticClass:"fs-lg mt-3"},[t._v(" 逆风出装 ")]),a("div",{staticClass:"d-flex jc-around text-center mt-2"},t._l(t.model.items2,(function(e){return a("div",{key:e.name},[a("img",{attrs:{src:e.icon,alt:""}}),a("div",{staticClass:"fs-xs"},[t._v(t._s(e.name))])])})),0)]),a("m-card",{attrs:{plain:"",icon:"menu",title:"使用技巧"}},[a("p",{staticClass:"m-0"},[t._v(t._s(t.model.usageTips))])]),a("m-card",{attrs:{plain:"",icon:"menu",title:"对抗技巧"}},[a("p",{staticClass:"m-0"},[t._v(t._s(t.model.battleTips))])]),a("m-card",{attrs:{plain:"",icon:"menu",title:"团战思路"}},[a("p",{staticClass:"m-0"},[t._v(t._s(t.model.teamTips))])]),a("m-card",{attrs:{plain:"",icon:"menu",title:"英雄关系"}},[a("div",{staticClass:"fs-xl "},[t._v(" 最佳搭档 ")]),t._l(t.model.partners,(function(e){return a("div",{key:e.name,staticClass:"pt-3"},[a("div",{staticClass:"d-flex"},[a("img",{attrs:{src:e.hero.avater,alt:"",height:"50"}}),a("p",{staticClass:"flex-1 ml-3 m-0"},[t._v(" "+t._s(e.description)+" ")])]),a("div",{staticClass:"border-bottom mt-3"})])}))],2)],1)])],1)],1)]):t._e()},R=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"px-2 flex-1"},[s("span",{staticClass:"text-white"},[t._v("王者荣耀")]),s("span",{staticClass:"text-white pl-2"},[t._v("攻略站")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white px-3"},[s("div",{staticClass:"nav d-flex pt-3 pb-2 jc-around border-bottom"},[s("div",{staticClass:"nav-item active"},[s("div",{staticClass:"nav-link"},[t._v(" 英雄初识 ")])]),s("div",{staticClass:"nav-item"},[s("div",{staticClass:"nav-link"},[t._v(" 进阶攻略 ")])])])])}],M={props:{id:{required:!0}},data:function(){return{model:null,currentSkillIndex:0}},created:function(){this.fetch()},methods:{fetch:function(){var t=this;return Object(f["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$http.get("heros/".concat(t.id));case 2:s=e.sent,t.model=s.data;case 4:case"end":return e.stop()}}),e)})))()}},computed:{currentSkill:function(){return this.model.skills[this.currentSkillIndex]}}},T=M,I=(s("a9ab"),Object(r["a"])(T,P,R,!1,null,"05a6019a",null)),L=I.exports;a["default"].use(d["a"]);var D=[{path:"/heros/:id",component:L,props:!0},{path:"/",name:"main",component:j,children:[{path:"/",name:"home",component:h},{path:"/articles/:id",name:"article",component:A,props:!0}]}],N=new d["a"]({routes:D}),H=N,U=(s("78a7"),s("be35"),s("7212")),B=s.n(U),J=(s("a7a3"),function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card bg-white p-3 mt-3"},[s("div",{staticClass:"card-header d-flex ai-center ",class:{"border-bottom":!t.plain,"pb-3":!t.plain}},[s("i",{staticClass:"icon iconfont",class:"icon-"+t.icon}),s("div",{staticClass:"fs-xxl flex-1 px-2"},[s("strong",[t._v(" "+t._s(t.title))])]),t.plain?t._e():s("i",{staticClass:"icon iconfont icon-menu"})]),s("div",{staticClass:"card-body fs-sm pt-2"},[t._t("default")],2)])}),V=[],z={props:{title:{type:String,required:!0},icon:{type:String,required:!0},plain:{type:Boolean}}},F=z,G=(s("e60d"),Object(r["a"])(F,J,V,!1,null,null,null)),K=G.exports,Q=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("m-card",{attrs:{title:t.title,icon:t.icon}},[s("div",{staticClass:"d-flex nav jc-between my-1"},t._l(t.categories,(function(e,a){return s("div",{key:a,staticClass:"nav-item",class:{active:t.active===a},on:{click:function(e){return t.$refs.list.$swiper.slideTo(a)}}},[s("div",{staticClass:"nav-link"},[t._v(t._s(e.name))])])})),0),s("div",[s("swiper",{ref:"list",attrs:{options:{autoHeight:!0}},on:{"slide-change":function(){return t.active=t.$refs.list.$swiper.realIndex}}},t._l(t.categories,(function(e,a){return s("swiper-slide",{key:a},[t._t("items",null,{category:e})],2)})),1)],1)])},W=[],X={props:{icon:{type:String,required:!0},title:{type:String,required:!0},categories:{type:Array,required:!0}},data:function(){return{active:0}}},Y=X,Z=(s("ffb6"),Object(r["a"])(Y,Q,W,!1,null,null,null)),tt=Z.exports,et=s("bc3a"),st=s.n(et);a["default"].use(B.a),a["default"].config.productionTip=!1,a["default"].component("m-card",K),a["default"].component("m-list-card",tt),a["default"].prototype.$http=st.a.create({baseURL:Object({NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_API_URL||"/web/api"}),new a["default"]({router:H,render:function(t){return t(o)}}).$mount("#app")},"78a7":function(t,e,s){},8880:function(t,e,s){},a006:function(t,e,s){"use strict";var a=s("0972"),i=s.n(a);i.a},a9ab:function(t,e,s){"use strict";var a=s("4eea"),i=s.n(a);i.a},be35:function(t,e,s){},cf05:function(t,e,s){t.exports=s.p+"img/logo.4485a75c.png"},e60d:function(t,e,s){"use strict";var a=s("e9ec"),i=s.n(a);i.a},e9ec:function(t,e,s){},ef4a:function(t,e,s){},ffb6:function(t,e,s){"use strict";var a=s("8880"),i=s.n(a);i.a}});
  //# sourceMappingURL=app.80245cef.js.map