app.47940d82.js 10 KB

12
  1. (function(e){function t(t){for(var n,a,i=t[0],s=t[1],u=t[2],l=0,d=[];l<i.length;l++)a=i[l],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&d.push(o[a][0]),o[a]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);f&&f(t);while(d.length)d.shift()();return c.push.apply(c,u||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,a=1;a<r.length;a++){var i=r[a];0!==o[i]&&(n=!1)}n&&(c.splice(t--,1),e=s(s.s=r[0]))}return e}var n={},a={app:0},o={app:0},c=[];function i(e){return s.p+"js/"+({}[e]||e)+"."+{"chunk-3b55d9bc":"fbeff175","chunk-01521ea0":"38a56e37","chunk-3fa9ce12":"2cba56bc","chunk-5508997e":"3aa905d1","chunk-642fe2b8":"c276305b","chunk-6a7be193":"0969f938","chunk-a4913434":"ccb64d80","chunk-e8f45078":"ceda0372","chunk-6fb6d38c":"48d64d19","chunk-da2c1192":"42b58533"}[e]+".js"}function s(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.e=function(e){var t=[],r={"chunk-01521ea0":1,"chunk-3fa9ce12":1,"chunk-5508997e":1,"chunk-642fe2b8":1,"chunk-6a7be193":1,"chunk-a4913434":1,"chunk-e8f45078":1,"chunk-6fb6d38c":1,"chunk-da2c1192":1};a[e]?t.push(a[e]):0!==a[e]&&r[e]&&t.push(a[e]=new Promise((function(t,r){for(var n="css/"+({}[e]||e)+"."+{"chunk-3b55d9bc":"31d6cfe0","chunk-01521ea0":"8699077f","chunk-3fa9ce12":"e54363f2","chunk-5508997e":"35ab5384","chunk-642fe2b8":"4786fe69","chunk-6a7be193":"bf8fd64b","chunk-a4913434":"5d3538c2","chunk-e8f45078":"d449c930","chunk-6fb6d38c":"aec9de4b","chunk-da2c1192":"792d0732"}[e]+".css",o=s.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var u=c[i],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===n||l===o))return t()}var d=document.getElementsByTagName("style");for(i=0;i<d.length;i++){u=d[i],l=u.getAttribute("data-href");if(l===n||l===o)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var n=t&&t.target&&t.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete a[e],f.parentNode.removeChild(f),r(c)},f.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){a[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=c);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,s.nc&&l.setAttribute("nonce",s.nc),l.src=i(e);var d=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(f);var r=o[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",d.name="ChunkLoadError",d.type=n,d.request=a,r[1](d)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},s.m=e,s.c=n,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(r,n,function(t){return e[t]}.bind(null,n));return r},s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/",s.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var d=0;d<u.length;d++)t(u[d]);var f=l;c.push([0,"chunk-vendors"]),r()})({0:function(e,t,r){e.exports=r("56d7")},"034f":function(e,t,r){"use strict";var n=r("8589"),a=r.n(n);a.a},"56d7":function(e,t,r){"use strict";r.r(t);r("a133"),r("ed0d"),r("f09c"),r("e117");var n=r("a593"),a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"app"}},[r("transition",{attrs:{name:"fade"}},[r("router-view")],1)],1)},o=[],c=(r("034f"),r("9ca4")),i={},s=Object(c["a"])(i,a,o,!1,null,null,null),u=s.exports,l=(r("e18c"),r("3211")),d=r("b86b");n["a"].use(l["a"]);var f={zIndex:2e3,top:0,speed:300,color:"#E75296",size:2,className:""};n["a"].use(d["a"],f);var p=[{path:"/",name:"",component:function(){return r.e("chunk-6fb6d38c").then(r.bind(null,"09a0"))},meta:{index:0},children:[{path:"/",name:"main",meta:{title:"预约课程",index:1},component:function(){return Promise.all([r.e("chunk-3b55d9bc"),r.e("chunk-642fe2b8")]).then(r.bind(null,"9ba7"))}},{path:"/appoint",name:"appoint",meta:{title:"预约课程",index:2},component:function(){return Promise.all([r.e("chunk-3b55d9bc"),r.e("chunk-3fa9ce12")]).then(r.bind(null,"8dfc"))}},{path:"/record",name:"record",meta:{title:"预约记录",index:1},component:function(){return Promise.all([r.e("chunk-3b55d9bc"),r.e("chunk-5508997e")]).then(r.bind(null,"e1fc"))}},{path:"/mine",name:"mine",meta:{title:"我的",index:1},component:function(){return Promise.all([r.e("chunk-3b55d9bc"),r.e("chunk-a4913434")]).then(r.bind(null,"0fb9"))}},{path:"/lesson",name:"lesson",meta:{title:"课程表",index:1},component:function(){return Promise.all([r.e("chunk-3b55d9bc"),r.e("chunk-6a7be193")]).then(r.bind(null,"e83a"))}}]},{path:"/login",name:"login",meta:{title:"登陆",index:1},component:function(){return Promise.all([r.e("chunk-3b55d9bc"),r.e("chunk-e8f45078")]).then(r.bind(null,"73fb"))}},{path:"/test",name:"test",meta:{title:"test",index:1},component:function(){return Promise.all([r.e("chunk-3b55d9bc"),r.e("chunk-01521ea0")]).then(r.bind(null,"e0bc"))}},{path:"*",name:"notFound",meta:{title:"404",index:3},component:function(){return r.e("chunk-da2c1192").then(r.bind(null,"cb28"))}}],h=new l["a"]({mode:"history",base:"/",routes:p});h.beforeEach((function(e,t,r){d["a"].start();var n=!!localStorage.token;"/login"==e.path||n?r():r("/login")})),h.afterEach((function(){d["a"].done()}));var m=h,b=r("82ae"),k=r.n(b),g=r("a6a6"),v=(r("b9f8"),r("de8e")),y=r("4263"),$=r("cb35");n["a"].use($["a"]),n["a"].use(d["a"]),n["a"].use(g["a"]),n["a"].locale=function(){};var w={position:"bottom",time:2e3,closeIcon:"close",close:!0,successIcon:"check_circle",infoIcon:"info",warningIcon:"priority_high",errorIcon:"warning"};n["a"].use(v["a"],w),n["a"].use(y["a"]),r("cbb7"),n["a"].config.productionTip=!1,new n["a"]({render:function(e){return e(u)},router:m}).$mount("#app"),n["a"].prototype.axios=k.a,n["a"].prototype.Toast=function(e,t){var r=t||"warning",n=this;switch(r){case"message":n.$toast.message(e);break;case"success":n.$toast.success(e);break;case"info":n.$toast.info(e);break;case"warning":n.$toast.warning(e);break;case"error":n.$toast.error(e);break}},n["a"].prototype.Loading=function(e){var t=this.$loading({overlayColor:"hsla(0,0%,100%,.9)",size:48,color:"warning"});setTimeout((function(){t.close()}),3e3)},n["a"].prototype.TransMemo=function(e){var t=this;switch(e){case"记录不存在":t.$toast.error(t.$t("Record does not exist"));break;case"服务器繁忙,请稍后再试":t.$toast.error(t.$t("The server is busy. Please try again later"));break;case"服务暂不可用":t.$toast.error(t.$t("Service is temporarily unavailable"));break;case"key不存在":t.$toast.error(t.$t("Key does not exist"));break;case"用户名或密码错误":t.$toast.error(t.$t("Wrong user name or password"));break;case"图形验证码错误":t.$toast.error(t.$t("Graphic verification code error"));break;case"密码格式错误":t.$toast.error(t.$t("Password format error"));break;case"密码错误":t.$toast.error(t.$t("Password error"));break;case"用户已存在":t.$toast.error(t.$t("User already exists"));break;case"发送频率过高":t.$toast.error(t.$t("Transmission frequency too high"));break;case"用户被禁用":t.$toast.error(t.$t("User is disabled"));break;case"用户状态异常":t.$toast.error(t.$t("Abnormal user status"));break;case"用户不存在":t.$toast.error(t.$t("user does not exist"));break;case"验证码错误":t.$toast.error(t.$t("Verification code error"));break;case"登录失效":t.$toast.error(t.$t("Logon failure"));break;case"MAC已存在":t.$toast.error(t.$t("MAC already exists"));break;case"不是完整的逗号分隔列表格式":t.$toast.error(t.$t("Is not a complete comma separated list format"));break;case"HBase错误":t.$toast.error(t.$t("HBase error"));break;case"请重新上传图片":t.$toast.error(t.$t("Please upload the picture again"));break;default:t.$toast.error(e);break}}},8589:function(e,t,r){},cbb7:function(e,t,r){"use strict";r.r(t);var n=r("03a1"),a=r.n(n),o=a.a.Random,c=function(){for(var e=[],t=0;t<30;t++)e.push({id:"@guid",name:"@region",Confirmed:"@integer(36844, 368449)",Deaths:"@integer(1099, 10993)",Recovered:"@integer(1986, 19865)"});var r={Rs:e,Code:0,Memo:""};return r},i=function(){var e={pic:o.image("200x100","#894FC4","#FFF","@natural(1111, 9999)"),id:"@guid",Code:0,Memo:""};return e},s=function(){for(var e=[],t=[{id:1,name:"霍元甲",userCode:"15253135600",vipType:1},{id:2,name:"陈真",userCode:"15253135602",vipType:2},{id:3,name:"成龙",userCode:"15253135604",vipType:1}],r=0;r<6;r++)e.push({id:"@guid",userCode:"@integer(15253135600, 15253135699)",name:"@region",tel:"@integer(15253135600, 15253135699)",shop:"@region",create:"@datetime",expTime:"@date",valid:"@datetime",Confirmed:"@integer(36844, 368449)",Deaths:"@integer(1099, 10993)",kick:"@integer(199, 993)",Recovered:"@integer(1986, 9999)",Status:"0",level:"0",color:"@hex",memo:"@paragraph(1, 1)",dialogValue:"@range(1, 3)",vipType:"@integer(1, 2)",members:t,wxVisible:"@integer(0, 1)",timeLong:"14:00-16:00",timeScope:[new Date(2016,9,10,8,40),new Date(2016,9,10,9,40)]});var n={Rs:e,Code:0,Memo:""};return n},u=function(){for(var e=[],t=0;t<30;t++)e.push({key:t+1,value:t+1,label:"@region"});var r={Rs:e,Code:0,Memo:""};return r},l=function(){var e={token:"@guid"},t={Rs:e,Code:0,Memo:"登陆成功"};return t},d=function(){var e={Code:0,Memo:"修改成功"};return e},f=function(){var e={Code:0,Memo:"修改成功"};return e},p=function(){var e={Code:0,Memo:"退出成功"};return e};a.a.mock("/api/testPic","post",i()),a.a.mock("/api/testSelect","post",u()),a.a.mock("/api/testTable","post",s()),a.a.mock("/api/worldDetail","post",c()),a.a.mock("/api/SignIn","post",l()),a.a.mock("/api/editbasicinfo","post",d()),a.a.mock("/api/modPwd","post",f()),a.a.mock("/api/logout","post",p()),t["default"]=a.a}});
  2. //# sourceMappingURL=app.47940d82.js.map