app.fea5de853256859ade05.js 7.8 KB

12
  1. webpackJsonp([18],{"1hQk":function(e,n){},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("7+uW"),i={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var o=t("VU/8")({name:"App"},i,!1,function(e){t("1hQk")},null,null).exports,a=t("YaEn"),u=t("zL8q"),l=t.n(u),c=(t("tvR6"),{testFilter:function(e){return"vip"+e},isNull:function(e){return null==e||void 0==e||""===e||"null"===e||"undefined"==e?"-":e},returnPercentage:function(e){return null!==e&&""!==e&&void 0!==e?(100*e).toFixed(2)+"%":"-"},returnToFixed:function(e,n){return null!=e?e.toFixed(n):null!=e&&""!==e?e:"-"},tenThousand:function(e){if(null!=e&&""!=e){var n=(e/1e4).toFixed(2);return(Math.round(100*n)/100).toString()}return"-"},numTabWeek:function(e){var n="";switch(e){case 1:n="一";break;case 2:n="二";break;case 3:n="三";break;case 4:n="四";break;case 5:n="五";break;case 6:n="六";break;case 7:n="日"}return n},convertSex:function(e){var n="";switch(e){case 0:n="女";break;case 1:n="男";break;default:n="其他"}return n},replaceSpace:function(e){return void 0!=e?e.replace(/\s*/g,""):""},hasSpace:function(e){if(void 0!=e){return/\s/g.test(e)}return!1},passwordForm:function(e){return!!new RegExp(/^(?![^a-zA-Z]+$)(?!\D+$)/).test(e)},isAllSpace:function(e){return!!e.match(/^[ ]*$/)}}),s=t("Xxa5"),m=t.n(s),d=t("//Fk"),p=t.n(d),f=t("exGp"),h=t.n(f),b=t("NYxO");r.default.use(b.a);var v=[{path:"/login",name:"login",meta:{title:"登录"},component:function(){return Promise.all([t.e(0),t.e(5)]).then(t.bind(null,"lmfZ"))}},{path:"/test",name:"Test",meta:{title:"测试"},component:function(){return t.e(2).then(t.bind(null,"uwaC"))}},{path:"/fonticon",name:"Fonticon",meta:{title:"字体图标"},component:function(){return t.e(3).then(t.bind(null,"L59X"))}},{path:"*",name:"Page404",meta:{title:"错误页面"},component:function(){return t.e(4).then(t.bind(null,"LWjT"))}}],x={UpdateRole:function(e,n){e.commit("saveState",n)},generateRoutes:function(){var e=h()(m.a.mark(function e(n,t){return m.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new p.a(function(e,r){if(res.status&&res.data){var i=null.concat(v);n.commit("saveMenulist",menulisttemp),n.commit("saveState",t),e(i)}else n.commit("saveState",null),e([])}));case 1:case"end":return e.stop()}},e,this)}));return function(n,t){return e.apply(this,arguments)}}()},g=(new b.a.Store({state:{getters:{roles:null,menulist:null}},actions:x,mutations:{saveMenulist:function(e,n){e.getters.menulist=n},saveState:function(e,n){e.getters.roles=n}}}),t("Y81h")),P=t.n(g),w=(t("UVIz"),t("aFVK")),_=["/login","/test","/fonticon"];for(var k in a.a.beforeEach(function(e,n,t){Object(w.d)("isLogin")?(P.a.start(),t(),P.a.done()):-1!==_.indexOf(e.path.toLowerCase())?t():t("/Login")}),r.default.use(l.a),c)r.default.filter(k,c[k]);r.default.prototype.$filter=c,r.default.config.productionTip=!1,new r.default({el:"#app",router:a.a,components:{App:o},template:"<App/>"})},UVIz:function(e,n){},YaEn:function(e,n,t){"use strict";var r=t("7+uW"),i=t("/ocq"),o=i.a.prototype.push;i.a.prototype.push=function(e,n,t){return n||t?o.call(this,e,n,t):o.call(this,e).catch(function(e){return e})},r.default.use(i.a);var a=[{path:"/Login",name:"Login",meta:{title:"登录"},component:function(){return Promise.all([t.e(0),t.e(5)]).then(t.bind(null,"lmfZ"))}},{path:"/",redirect:{name:"Home"},meta:{title:"母版"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"7qo3"))},children:[{path:"/Home",name:"Home",meta:{title:"首页"},component:function(){return Promise.all([t.e(0),t.e(15)]).then(t.bind(null,"XwkR"))}}]},{path:"/plugs",redirect:{name:"plugs_index"},meta:{title:"母版"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"7qo3"))},children:[{path:"plugs/Index",name:"plugs_index",meta:{title:"插件管理"},component:function(){return Promise.all([t.e(0),t.e(7)]).then(t.bind(null,"Cc6w"))}}]},{path:"/access",redirect:{name:"access_Index"},meta:{title:"母版"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"7qo3"))},children:[{path:"Index",name:"access_Index",meta:{title:"后台权限管理"},component:function(){return Promise.all([t.e(0),t.e(10)]).then(t.bind(null,"ceLN"))}}]},{path:"/supplieraccess",redirect:{name:"supplieraccess_Index"},meta:{title:"母版"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"7qo3"))},children:[{path:"Index",name:"supplieraccess_Index",meta:{title:"商户后台权限管理"},component:function(){return Promise.all([t.e(0),t.e(9)]).then(t.bind(null,"r+Q+"))}}]},{path:"/shop",redirect:{name:"shop_Index"},meta:{title:"母版"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"7qo3"))},children:[{path:"Index",name:"shop_Index",meta:{title:"权限管理"},component:function(){return Promise.all([t.e(0),t.e(8)]).then(t.bind(null,"25Sm"))}}]},{path:"/password",redirect:{name:"password_Index"},meta:{title:"母版"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"7qo3"))},children:[{path:"Index",name:"password_Index",meta:{title:"修改密码"},component:function(){return Promise.all([t.e(0),t.e(12)]).then(t.bind(null,"xW0G"))}}]},{path:"/message",redirect:{name:"message_index"},meta:{title:"母版"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"7qo3"))},children:[{path:"Index",name:"message_index",meta:{title:"消息设置"},component:function(){return Promise.all([t.e(0),t.e(6)]).then(t.bind(null,"T/6T"))}}]},{path:"/setting",redirect:{name:"service_index"},meta:{title:"母版"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"7qo3"))},children:[{path:"Index",name:"service_index",meta:{title:"设置"},component:function(){return Promise.all([t.e(0),t.e(11)]).then(t.bind(null,"3Azt"))}}]},{path:"/region",redirect:{name:"region_index"},meta:{title:"母版"},component:function(){return Promise.all([t.e(0),t.e(1)]).then(t.bind(null,"7qo3"))},children:[{path:"Index",name:"region_index",meta:{title:"地区列表"},component:function(){return Promise.all([t.e(0),t.e(14)]).then(t.bind(null,"uiAw"))}},{path:"add",name:"region_add",meta:{title:"地区新增"},component:function(){return Promise.all([t.e(0),t.e(13)]).then(t.bind(null,"ddWW"))}},{path:"edit",name:"region_edit",meta:{title:"地区修改"},component:function(){return Promise.all([t.e(0),t.e(16)]).then(t.bind(null,"sayk"))}}]},{path:"/test",name:"Test",meta:{title:"测试"},component:function(){return t.e(2).then(t.bind(null,"uwaC"))}},{path:"/fonticon",name:"Fonticon",meta:{title:"字体图标"},component:function(){return t.e(3).then(t.bind(null,"L59X"))}},{path:"/error",name:"Page404",meta:{title:"错误页面"},component:function(){return t.e(4).then(t.bind(null,"LWjT"))}}],u=function(){return new i.a({routes:a})},l=u();n.a=l},aFVK:function(e,n,t){"use strict";t.d(n,"e",function(){return u}),t.d(n,"d",function(){return l}),t.d(n,"b",function(){return c}),t.d(n,"a",function(){return s}),t.d(n,"c",function(){return m});var r=t("pFYg"),i=t.n(r),o=t("woOf"),a=(t.n(o),t("mvHQ")),u=(t.n(a),function(e,n,t){var r=new Date;r.setDate(r.getDate()+t),document.cookie=e+"="+escape(n)+(null==t?"":";expires="+r.toGMTString())+";path=/"}),l=function(e){var n,t=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(n=document.cookie.match(t))?unescape(n[2]):null},c=function(e){var n=new Date;n.setTime(n.getTime()-1);var t=l(e);null!=t&&(document.cookie=e+"="+t+";expires="+n.toGMTString()+";path=/")},s=function e(n){var t=Array.isArray(n)?[]:{};if(n&&"object"===(void 0===n?"undefined":i()(n)))for(var r in n)n.hasOwnProperty(r)&&(n[r]&&"object"===i()(n[r])?t[r]=e(n[r]):t[r]=n[r]);return t},m=function e(n,t){for(var r in n)t&&void 0!==t[r]&&(n[r]&&"object"===i()(n[r])?e(n[r],t[r]):n[r]=t[r]);return n}},tvR6:function(e,n){}},["NHnr"]);
  2. //# sourceMappingURL=app.fea5de853256859ade05.js.map