You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
695 B
36 lines
695 B
import {Component, OnInit} from '@angular/core';
|
|
import {FormBuilder} from '@angular/forms';
|
|
|
|
@Component({
|
|
selector: 'app-login',
|
|
templateUrl: './login.component.html',
|
|
styleUrls: ['./login.component.scss']
|
|
})
|
|
// 登陆模块
|
|
export class LoginComponent implements OnInit {
|
|
// 表单组
|
|
loginForm = this.fb.group({
|
|
managerName: [''],
|
|
password: ['']
|
|
});
|
|
// 页面高度
|
|
height = 'height:' + screen.height / 2 + 'px';
|
|
|
|
constructor(private fb: FormBuilder) {
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
}
|
|
|
|
// 登陆方法
|
|
login() {
|
|
console.debug(this.loginForm.value);
|
|
alert('执行登陆操作');
|
|
}
|
|
|
|
// 注册方法
|
|
register() {
|
|
alert('执行注册方法');
|
|
}
|
|
|
|
}
|
|
|