first commit
This commit is contained in:
1
unpackage/dist/build/web/assets/pages-login-login.LlW_ZWCa.js
vendored
Normal file
1
unpackage/dist/build/web/assets/pages-login-login.LlW_ZWCa.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import{D as e,l,E as a,p as t,g as o,w as s,j as n,o as r,q as i,h as u,u as c,s as d,y as p,z as m,G as f,k as _,H as g,I as y,J as x,C as k}from"./index-BycOfjPK.js";import{_ as b}from"./u-icon.Bn8ZYdhI.js";import{_ as h,r as C,l as j}from"./api.Cc9YjI0f.js";import{_ as w,a as V}from"./logoB.D1yH5YI-.js";import{_ as B}from"./u-input.BXN8t6Qx.js";const z=h({__name:"login",setup(h){const z=e().statusBarHeight+"px";l("");let N=a({userName:"",password:""}),H=()=>{f()},I=()=>{_({url:"./getBackAccout"})},S=()=>{_({url:"/pages/login/getBack"})},T=async()=>{try{let e=await j(N);g("token",e.token),g("user",e),y.commit("setToken",e.token),x({title:"登录成功",icon:"none"}),setTimeout((()=>{k({url:"/pages/index/index"})}),200)}catch(e){console.log(e)}};return(e,l)=>{const a=n,f=C(t("up-icon"),b),_=p,g=C(t("statusBar"),w),y=C(t("up-input"),B),x=m;return r(),o(a,{class:"login"},{default:s((()=>[i(a,{class:"orderdetail_header p30"},{default:s((()=>[i(a,{style:u({height:z})},null,8,["style"]),i(a,{style:{height:"44px",display:"flex","align-items":"center"}},{default:s((()=>[i(f,{name:"arrow-left",bold:"",color:"#000",onClick:c(H)},null,8,["onClick"])])),_:1})])),_:1}),i(_,{class:"login_bei",src:V}),i(g),i(a,{class:"login_logo"},{default:s((()=>[i(a,{class:"login_logo_tit"},{default:s((()=>[d("欢迎来到充电桩运营系统")])),_:1})])),_:1}),i(a,{style:{"margin-top":"150rpx"}},{default:s((()=>[i(a,{style:{"margin-bottom":"50rpx"}},{default:s((()=>[i(y,{fontSize:"30rpx",modelValue:c(N).userName,"onUpdate:modelValue":l[0]||(l[0]=e=>c(N).userName=e),placeholder:"请输入您的用户名",border:"bottom",clearable:""},null,8,["modelValue"])])),_:1}),i(a,null,{default:s((()=>[i(y,{fontSize:"30rpx",modelValue:c(N).password,"onUpdate:modelValue":l[1]||(l[1]=e=>c(N).password=e),type:"password",placeholder:"请输入您的密码",border:"bottom",clearable:""},null,8,["modelValue"])])),_:1})])),_:1}),i(a,{style:{"font-size":"28rpx",color:"#666","margin-top":"20rpx",display:"flex","align-items":"center","justify-content":"space-between"}},{default:s((()=>[i(a,null,{default:s((()=>[d(" 忘记账号? "),i(x,{style:{color:"#4874e5"},onClick:c(I)},{default:s((()=>[d("找回用户名")])),_:1},8,["onClick"])])),_:1}),i(a,null,{default:s((()=>[i(x,{style:{color:"#4874e5"},onClick:c(S)},{default:s((()=>[d("忘记密码")])),_:1},8,["onClick"])])),_:1})])),_:1}),i(a,{style:{display:"flex","justify-content":"center","margin-top":"80rpx"}},{default:s((()=>[i(a,{class:"login_btn",onClick:c(T)},{default:s((()=>[d("登录")])),_:1},8,["onClick"])])),_:1})])),_:1})}}},[["__scopeId","data-v-321cc4bc"]]);export{z as default};
|
||||
Reference in New Issue
Block a user