(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{ekbz:function(t,e,a){"use strict";a.r(e);var s=a("8Y7J");class r{}var o=a("pMnS"),n=a("Qhia"),i=a("U1KV");class l{constructor(t,e,a,s,r,o){this.router=t,this.storage=e,this.loadingCtrl=a,this.toastCtrl=s,this.alertCtrl=r,this.comHttpService=o}ionViewWillEnter(){this.alertCtrl.create({header:"\u7528\u6237\u767b\u5f55",inputs:[{name:"userName",type:"text",placeholder:"\u7528\u6237\u8d26\u53f7"},{name:"password",type:"password",placeholder:"\u7528\u6237\u5bc6\u7801"}],buttons:[{text:"\u624b\u673a\u767b\u5f55",handler:t=>(""==t.UserName||""==t.PassWord?this.toastCtrl.create({message:"\u8bf7\u8f93\u5165\u7528\u6237\u8d26\u53f7\u548c\u5bc6\u7801\uff01",duration:3e3,position:"top"}).then(t=>t.present()):(this.loadingCtrl.create({duration:1e3}).then(t=>t.present()),this.comHttpService.post("/login.aspx/login",t).subscribe(t=>{let e=JSON.parse(t.d);e.data?(this.storage.set("userData",e.data.userData),i.a.set(e.data.cookieName,e.data.cookieValue,365,"/"),i.a.set("Mobile","true",365,"/"),this.comHttpService.post("/login.aspx/log",{way:"\u624b\u52a8"}),this.router.navigateByUrl("/"),this.alertCtrl.dismiss()):this.toastCtrl.create({message:e.error,duration:3e3,position:"top"}).then(t=>t.present())})),!1)},{text:"\u7535\u8111\u767b\u5f55",handler:t=>(""==t.UserName||""==t.PassWord?this.toastCtrl.create({message:"\u8bf7\u8f93\u5165\u7528\u6237\u8d26\u53f7\u548c\u5bc6\u7801\uff01",duration:3e3,position:"top"}).then(t=>t.present()):(this.loadingCtrl.create({duration:1e3}).then(t=>t.present()),this.comHttpService.post("/login.aspx/login",t).subscribe(t=>{let e=JSON.parse(t.d);e.data?(this.storage.set("userData",e.data.userData),i.a.set(e.data.cookieName,e.data.cookieValue,365,"/"),i.a.delete("Mobile","/"),this.comHttpService.post("/login.aspx/log",{way:"\u624b\u52a8"}),window.location.href="../app/default.aspx",this.alertCtrl.dismiss()):this.toastCtrl.create({message:e.error,duration:3e3,position:"top"}).then(t=>t.present())})),!1)}],backdropDismiss:!1,keyboardClose:!1}).then(t=>t.present())}}var p=a("iInd"),u=a("xgBC"),c=a("sZkV"),b=s.nb({encapsulation:0,styles:[[""]],data:{}});function d(t){return s.Kb(0,[],null,null)}var h=s.lb("page-com-auth",l,(function(t){return s.Kb(0,[(t()(),s.pb(0,0,null,null,1,"page-com-auth",[],null,null,null,d,b)),s.ob(1,49152,null,0,l,[p.m,u.b,c.Eb,c.Qb,c.b,n.a],null,null)],null,null)}),{},{},[]),m=a("SVse");a.d(e,"ComAuthPageModuleNgFactory",(function(){return g}));var g=s.mb(r,[],(function(t){return s.xb([s.yb(512,s.j,s.X,[[8,[o.a,h]],[3,s.j],s.v]),s.yb(4608,m.n,m.m,[s.s,[2,m.C]]),s.yb(4608,c.c,c.c,[s.x,s.g]),s.yb(4608,c.Gb,c.Gb,[c.c,s.j,s.p]),s.yb(4608,c.Mb,c.Mb,[c.c,s.j,s.p]),s.yb(1073742336,m.b,m.b,[]),s.yb(1073742336,c.Cb,c.Cb,[]),s.yb(1073742336,p.o,p.o,[[2,p.t],[2,p.m]]),s.yb(1073742336,r,r,[]),s.yb(1024,p.k,(function(){return[[{path:"",component:l}]]}),[])])}))}}]);