<login-page :loading="loading" :logo-img="logoImg" :title="title" @on-success-valid="handleLogin"/>
import { Notify } from 'vant';
export default {
components: {
[Notify.Component.name]: Notify.Component,
},
data() {
return {
loading: false ,
captchaImgUrl: "",
logoImg: "http://doc.lambo.top/lambo-design/logo.png",
pasCryptor: "",
msg: "",
title: '云庭'
}
},
methods: {
async handleLogin({ userName, password, validCodeInput, validCodeId}) {
this.msg = ''
this.loading = true
// 完成认证 并处理后续逻辑
// eslint-disable-next-line no-global-assign
self = this;
setTimeout(function() {
self.loading=false;
Notify({ type: 'success', message: '登录成功' });
}, 3000);
},
}
}