(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a7ffc2ce"],{"02c9":function(t,e,n){"use strict";var s=n("4032"),o=n.n(s);o.a},4032:function(t,e,n){},"452d":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"we7-page"},[n("div",{staticClass:"star-flex"},[n("div",{staticClass:"star-menu"},[n("ul",[t._l(t.menu,function(e,s){return[e.menu?[n("li",{key:s,staticClass:"parent-item"},[t._v(t._s(e.title))]),n("ul",{key:s+1,staticClass:"child-ul",class:{more:t.showMore[s]}},[t._l(e.menu,function(e,o){return[void 0===e.num||0!=e.num?n("router-link",{key:s+o,staticClass:"item",attrs:{to:"/"+s+"/"+o,tag:"li"}},[e.icon?n("i",{staticClass:"icon",class:e.icon}):t._e(),t._v("\n                  "+t._s(e.title)+"\n                  "),e.num?n("span",{staticClass:"num"},[t._v(t._s(e.num))]):t._e()]):t._e()]})],2),t.getLength(e.menu)>3?n("li",{key:s+2,staticClass:"show-more",on:{click:function(e){return t.showMoreAction(s)}}},[n("i",{class:t.showMore[s]?"el-icon-arrow-up":"el-icon-arrow-down"}),t._v("\n              "+t._s(t.showMore[s]?"收起":"更多")+"\n            ")]):t._e()]:[void 0===e.num||0!=e.num?n("router-link",{key:s,staticClass:"item",attrs:{to:"/"+s,tag:"li"}},[e.icon?n("i",{staticClass:"icon",class:e.icon}):t._e(),t._v("\n              "+t._s(e.title)+"\n              "),e.num?n("span",{staticClass:"num"},[t._v(t._s(e.num))]):t._e()]):t._e()]]})],2)]),n("div",{staticClass:"star-content"},[n("router-view",{attrs:{"active-menu":t.activeMenu}})],1)])])},o=[],i=n("4360"),u={name:"star",components:{},data:function(){return{showMore:{}}},methods:{showMoreAction:function(t){this.$set(this.showMore,t,!this.showMore[t])},getLength:function(t){var e=0;for(var n in t)t[n]&&("number"===typeof t[n].num&&t[n].num>0||void 0===t[n]["num"])&&e++;return e}},computed:{routeType:function(){return this.$route.params.type},routeKey:function(){return this.$route.params.key||this.$route.path.substr(1)},menu:function(){return this.$store.state.starMenu},activeMenu:function(){this.routeType||window.localStorage.setItem("we7StarRoute",this.$route.path);var t=this.routeType&&this.menu[this.routeKey]["menu"]?this.menu[this.routeKey]["menu"][this.routeType]:this.menu[this.routeKey];return t.route=this.routeKey,t}},beforeRouteEnter:function(t,e,n){i["a"].dispatch("getStarMenu",t).then(function(e){var s=t.params.key||t.path.substr(1);e[s]&&0!==e[s].num?n():(window.localStorage.removeItem("we7StarRoute"),n("platform"===s?"/modules":{path:"/"}))})}},r=u,a=(n("02c9"),n("2877")),c=Object(a["a"])(r,s,o,!1,null,null,null);e["default"]=c.exports}}]);