master
lion 4 years ago
commit bc6c380c27

@ -8,7 +8,7 @@
class="login-form" auto-complete="on" label-position="left">
<div class="title-container">
<h3 class="title">中共苏州独立支部旧址预约系统</h3>
<h3 class="title">预约管理系统</h3>
</div>
<img src="../../assets/imgs/bg_box.png" width="100%" />
<div class="box_middle">
@ -60,7 +60,7 @@
}
}
const validatePassword = (rule, value, callback) => {
if (value.length < 6) {
if (value.length == 0) {
callback(new Error('密码输入错误'))
} else {
callback()
@ -69,8 +69,8 @@
return {
windowHeight: document.documentElement.clientHeight, //
loginForm: {
username: 'admin',
password: 'Admin2022'
username: '',
password: ''
},
loginRules: {
username: [{
@ -115,7 +115,7 @@
var that = this;
let height = this.$refs.formBox.offsetHeight; //100
that.formHeight = height;
that.marginTop = (that.windowHeight - height*1.5) / 2;
that.marginTop = (that.windowHeight - height * 1.5) / 2;
// <!--window.onresizemounted-->
window.onresize = () => {
return (() => {

Loading…
Cancel
Save