Files
Vue3Template/tsvue/dist/js/app.bfef82a2.js
2024-09-27 00:58:46 +08:00

1 line
13 KiB
JavaScript

!function(e){function t(t){for(var r,a,i=t[0],c=t[1],s=t[2],d=0,l=[];d<i.length;d++)a=i[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&l.push(o[a][0]),o[a]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);for(p&&p(t);l.length;)l.shift()();return u.push.apply(u,s||[]),n()}function n(){for(var e,t=0;t<u.length;t++){for(var n=u[t],r=!0,a=1;a<n.length;a++){var c=n[a];0!==o[c]&&(r=!1)}r&&(u.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},a={app:0},o={app:0},u=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[];a[e]?t.push(a[e]):0!==a[e]&&{about:1,index:1}[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({about:"about",index:"index",user:"user",user_id:"user_id",userindex:"userindex"}[e]||e)+"."+{about:"9e5e16dc",index:"ac99156d",user:"31d6cfe0",user_id:"31d6cfe0",userindex:"31d6cfe0"}[e]+".css",o=i.p+r,u=document.getElementsByTagName("link"),c=0;c<u.length;c++){var s=(p=u[c]).getAttribute("data-href")||p.getAttribute("href");if("stylesheet"===p.rel&&(s===r||s===o))return t()}var d=document.getElementsByTagName("style");for(c=0;c<d.length;c++){var p;if((s=(p=d[c]).getAttribute("data-href"))===r||s===o)return t()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=t,l.onerror=function(t){var r=t&&t.target&&t.target.src||o,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=r,delete a[e],l.parentNode.removeChild(l),n(u)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)})).then((function(){a[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var r=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=r);var u,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=function(e){return i.p+"js/"+({about:"about",index:"index",user:"user",user_id:"user_id",userindex:"userindex"}[e]||e)+"."+{about:"7b6e1759",index:"c70d4b6b",user:"f1653b87",user_id:"a0612f10",userindex:"0f146701"}[e]+".js"}(e);var s=new Error;u=function(t){c.onerror=c.onload=null,clearTimeout(d);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",s.name="ChunkLoadError",s.type=r,s.request=a,n[1](s)}o[e]=void 0}};var d=setTimeout((function(){u({type:"timeout",target:c})}),12e4);c.onerror=c.onload=u,document.head.appendChild(c)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw e};var c=window.webpackJsonp=window.webpackJsonp||[],s=c.push.bind(c);c.push=t,c=c.slice();for(var d=0;d<c.length;d++)t(c[d]);var p=s;u.push(["afdc","chunk-vendors"]),n()}({6389:function(e,t){e.exports=VueRouter},"8bbf":function(e,t){e.exports=Vue},afdc:function(e,t,n){"use strict";n.r(t);var r=n("d4ec"),a=n("99de"),o=n("7e84"),u=n("262e"),i=(n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("4160"),n("159b"),n("bee2")),c=n("9ab4"),s=n("750b"),d=n("5530");function p(){var e={HelpingSuccess:new BroadcastChannel("HelpingSuccess")};return Object(d.a)({},Object(s.h)(e))}var l=Object(s.a)({setup:function(){Object(s.e)("Broadcast",p()),Object(s.d)((function(){}))}}),f=n("2877"),b=Object(f.a)(l,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("div",{attrs:{id:"nav"}},[t("router-link",{attrs:{to:"/"}},[this._v("Home | ")]),t("router-link",{attrs:{to:"/about"}},[this._v("About")])],1),t("router-view")],1)}),[],!1,null,null,null).exports,h=n("8bbf"),m=n.n(h),g=n("6389"),j=n.n(g),v=n("659f"),O=(n("d3b7"),[{name:"about",path:"/about",component:function(){return n.e("about").then(n.bind(null,"584e"))},meta:{isLogin:!1,title:"关于我"}},{path:"/user",component:function(){return n.e("user").then(n.bind(null,"9b15"))},meta:{isLogin:!1,title:"用户列表"},children:[{name:"user",path:"",component:function(){return n.e("userindex").then(n.bind(null,"04e9"))},meta:{isLogin:!1,title:"用户中心首页"}},{name:"user-id",path:":id",component:function(){return n.e("user_id").then(n.bind(null,"0eef"))},meta:{isLogin:!1,title:"用户详情页面"}}]},{name:"index",path:"/",component:function(){return n.e("index").then(n.bind(null,"0b51"))},meta:{isLogin:!1,title:"首页"}}]),_=n("b970"),y=(n("157a"),n("5cfb"),function e(){Object(r.a)(this,e)});y.AjaxConfig={DevUrl:"http://localhost:9000",ProdUrl:"http://127.0.0.1:3000",ApiList:{index:"/test",haha:"/haha",Login:"/user-login"}},y.mountElement="#app",y.VuePlugs=[_.a,j.a,s.b],y.RouterConfigUrl={mode:"hash",routes:O},y=Object(c.__decorate)([Object(v.Injectable)()],y),n("96cf");var x,w=n("1da1"),k=(n("a9e3"),n("18a0")),E=n.n(k),S=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,[{key:"setTitle",value:function(e){document.title=e}},{key:"getConfig",value:function(){return y}},{key:"formatDate",value:function(e){var t=new Date(1e3*e),n=(t.getFullYear(),t.getMonth()+1),r=t.getDate();return t.getHours(),t.getMinutes(),t.getSeconds(),n+"."+r}},{key:"wxConfig",value:function(e){E.a.config({debug:!1,appId:"wxced93207e88f7576",timestamp:e.timesTamp,nonceStr:e.nonceStr,signature:e.signaTure,jsApiList:["chooseImage","uploadImage","updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage"]})}},{key:"wxSdk",value:function(e){E.a.ready((function(){e(E.a)}))}}],[{key:"CheckAjaxUrl",value:function(){return y.AjaxConfig.ProdUrl}}]),e}();Object(c.__decorate)([Object(v.GlobalMethod)(),Object(c.__metadata)("design:type",Function),Object(c.__metadata)("design:paramtypes",[String]),Object(c.__metadata)("design:returntype",void 0)],S.prototype,"setTitle",null),Object(c.__decorate)([Object(v.GlobalMethod)(),Object(c.__metadata)("design:type",Function),Object(c.__metadata)("design:paramtypes",[]),Object(c.__metadata)("design:returntype",void 0)],S.prototype,"getConfig",null),Object(c.__decorate)([Object(v.GlobalMethod)(),Object(c.__metadata)("design:type",Function),Object(c.__metadata)("design:paramtypes",[Number]),Object(c.__metadata)("design:returntype",String)],S.prototype,"formatDate",null),Object(c.__decorate)([Object(v.GlobalMethod)(),Object(c.__metadata)("design:type",Function),Object(c.__metadata)("design:paramtypes",[Object]),Object(c.__metadata)("design:returntype",void 0)],S.prototype,"wxConfig",null),Object(c.__decorate)([Object(v.GlobalMethod)(),Object(c.__metadata)("design:type",Function),Object(c.__metadata)("design:paramtypes",["function"==typeof(x="undefined"!=typeof Function&&Function)?x:Object]),Object(c.__metadata)("design:returntype",void 0)],S.prototype,"wxSdk",null);var C=n("cebe"),P=n.n(C),R=function(){function e(){Object(r.a)(this,e),P.a.defaults.baseURL=S.CheckAjaxUrl(),this.ResponseInterceptor(),this.RequestInterceptor()}return Object(i.a)(e,[{key:"get",value:function(){var e=Object(w.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P.a.get(t.url,{params:t.data,headers:Object.assign({},t.header)});case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),new Error("GET 请求出错:".concat(e.t0.message));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}()},{key:"post",value:function(){var e=Object(w.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P.a.post(t.url,t.data,{headers:Object.assign({},t.header)});case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),new Error("POST 请求出错:".concat(e.t0.message));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}()},{key:"put",value:function(){var e=Object(w.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P.a.put(t.url,t.data);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),new Error("PUT 请求出错:".concat(e.t0.message));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=Object(w.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,P.a.delete(t.url,{params:t.data});case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),new Error("DELETE 请求出错:".concat(e.t0.message));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}()},{key:"ResponseInterceptor",value:function(){var e=Object(w.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:P.a.interceptors.response.use((function(e){return e.data}),(function(e){return Promise.reject(e)}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"RequestInterceptor",value:function(){var e=Object(w.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:P.a.interceptors.request.use((function(e){return e.headers.bmy="2020",e}),(function(e){return Promise.reject(e)}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}]),e}();R=Object(c.__decorate)([Object(v.Injectable)(),Object(c.__metadata)("design:paramtypes",[])],R);var M=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,[{key:"index",value:function(){return{bind:function(e,t,n){}}}},{key:"test",value:function(){return{bind:function(e){}}}}]),e}();Object(c.__decorate)([Object(v.Directive)(),Object(c.__metadata)("design:type",Function),Object(c.__metadata)("design:paramtypes",[]),Object(c.__metadata)("design:returntype",void 0)],M.prototype,"index",null),Object(c.__decorate)([Object(v.Directive)(),Object(c.__metadata)("design:type",Function),Object(c.__metadata)("design:paramtypes",[]),Object(c.__metadata)("design:returntype",void 0)],M.prototype,"test",null),M=Object(c.__decorate)([Object(v.Injectable)()],M);var A,I,L,T,V=function e(){Object(r.a)(this,e)};V=Object(c.__decorate)([Object(v.Injectable)()],V);var D=function(){function e(){Object(r.a)(this,e),this.initVuePlugsArray=y.VuePlugs,this.Vues=m.a,this.Vues.config.productionTip=!1,this.initPlugs()}return Object(i.a)(e,[{key:"initPlugs",value:function(){var e=this;v.globalMethodModel.GlobalMethod.forEach((function(t){return e.Vues.prototype[t.n]=t.f})),v.directiveModel.DirectiveContainer.forEach((function(t){return e.Vues.directive(t.n,t.f)})),v.mixinModel.MixinContainer.forEach((function(t){return e.Vues.mixin(t)})),this.initVuePlugsArray.forEach((function(t){return e.Vues.use(t)})),this.InitVueRouter()}},{key:"InitVueRouter",value:function(){this.router=new j.a(y.RouterConfigUrl),this.router.beforeEach((function(e,t,n){document.title=e.meta.title,n()}));var e=j.a.prototype.push;j.a.prototype.push=function(t){return e.call(this,t).catch((function(e){return e}))}}}]),e}();D.AppComponent=b,Object(c.__decorate)([Object(v.Inject)(),Object(c.__metadata)("design:type","function"==typeof(A=void 0!==y&&y)?A:Object)],D.prototype,"config",void 0),Object(c.__decorate)([Object(v.Inject)(),Object(c.__metadata)("design:type","function"==typeof(I=void 0!==M&&M)?I:Object)],D.prototype,"directiveList",void 0),Object(c.__decorate)([Object(v.Inject)(),Object(c.__metadata)("design:type","function"==typeof(L=void 0!==V&&V)?L:Object)],D.prototype,"mixinList",void 0),Object(c.__decorate)([Object(v.Inject)(),Object(c.__metadata)("design:type","function"==typeof(T=void 0!==R&&R)?T:Object)],D.prototype,"axios",void 0),new(function(e){function t(){var e;return Object(r.a)(this,t),new((e=Object(a.a)(this,Object(o.a)(t).call(this))).Vues)({router:e.router,render:function(e){return e(D.AppComponent)}}).$mount("#app"),e}return Object(u.a)(t,e),t}(D=Object(c.__decorate)([Object(v.StartBoot)(!1),Object(c.__metadata)("design:paramtypes",[])],D)))},cebe:function(e,t){e.exports=axios}});