2 lines
3.0 KiB
JavaScript
2 lines
3.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4aec0e1a"],{"4ffd":function(e,t,n){e.exports=n.p+"img/logo.ff981e14.png"},"578a":function(e,t,n){"use strict";n.r(t);n("b0c0");var c=n("f2bf"),a=function(e){return Object(c["C"])("data-v-7479098b"),e=e(),Object(c["A"])(),e},o={class:"mylogin"},r={class:"myLoginForm"},i={class:"myLoginBtn"},s=Object(c["j"])("登 录"),l=a((function(){return Object(c["i"])("div",{class:"loginForgetPsd"},"找回密码",-1)}));function u(e,t,a,u,b,d){var f=Object(c["G"])("van-image"),p=Object(c["G"])("van-icon"),m=Object(c["G"])("van-field"),O=Object(c["G"])("van-cell-group"),j=Object(c["G"])("van-button"),g=Object(c["G"])("van-config-provider");return Object(c["z"])(),Object(c["f"])(g,null,{default:Object(c["O"])((function(){return[Object(c["i"])("div",o,[Object(c["i"])("div",{class:"myLoginHead",onClick:t[0]||(t[0]=function(){return e.click&&e.click.apply(e,arguments)})},[Object(c["k"])(f,{round:"",width:"100px",height:"100px",fit:"cover",src:n("4ffd")},null,8,["src"])]),Object(c["i"])("div",r,[Object(c["k"])(O,{inset:""},{default:Object(c["O"])((function(){return[Object(c["k"])(m,{modelValue:b.name,"onUpdate:modelValue":t[1]||(t[1]=function(e){return b.name=e}),type:"text",placeholder:"请输入手机号码",clearable:""},{"left-icon":Object(c["O"])((function(){return[Object(c["k"])(p,{name:"phone",class:"phone",size:"20px",color:"#7a7a7a",style:{"margin-right":"10px"}})]})),_:1},8,["modelValue"]),Object(c["k"])(m,{modelValue:b.password,"onUpdate:modelValue":t[2]||(t[2]=function(e){return b.password=e}),type:"password","left-icon":"lock",placeholder:"请输入密码",clearable:""},{"left-icon":Object(c["O"])((function(){return[Object(c["k"])(p,{name:"lock",class:"lock",size:"20px",color:"#7a7a7a",style:{"margin-right":"10px"}})]})),_:1},8,["modelValue"])]})),_:1})]),Object(c["i"])("div",i,[Object(c["k"])(j,{type:"primary",block:"",color:"#478ff3",onClick:d.sumbit},{default:Object(c["O"])((function(){return[s]})),_:1},8,["onClick"])]),l])]})),_:1})}n("e17f");var b=n("2241"),d=n("c1fb"),f={name:"Login",props:{msg:String},mounted:function(){var e=this;if(null!=Object(d["d"])()&&""!=Object(d["d"])())return console.log("dasdas"),void this.$router.push({path:"/home"});Object(d["e"])("/app/admin/token",{}).then((function(t){0==t.status?e.token=t.result:Object(b["a"])({message:t.error.msg})}))},data:function(){return{name:"",password:"",token:null}},methods:{sumbit:function(){var e=this;Object(d["e"])("/app/admin/login?token="+e.token,{name:this.name,password:this.password}).then((function(t){0==t.status?(Object(d["f"])(e.token),null!=t.result.avatar_img&&(t.result.avatar_img=d["a"]+"/"+t.result.avatar_img),Object(d["b"])("admin",t.result),e.$router.push({path:"/home"})):Object(b["a"])({message:t.error.msg})}))}}},p=(n("67ef"),n("d959")),m=n.n(p);const O=m()(f,[["render",u],["__scopeId","data-v-7479098b"]]);t["default"]=O},"67ef":function(e,t,n){"use strict";n("b4f1")},b4f1:function(e,t,n){}}]);
|
|
//# sourceMappingURL=chunk-4aec0e1a.6eaf78e6.js.map
|