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.
 
 
 
 
pocketcommunityweb/src/app/account/login/login.component.ts

32 lines
626 B

import {Component, OnInit} from '@angular/core';
import {FormBuilder} from '@angular/forms';
import {Height} from '../../height';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss']
})
// 登陆模块
export class LoginComponent extends Height implements OnInit {
// 登陆表单
loginForm = this.fb.group({
managerName: [''],
password: ['']
});
constructor(private fb: FormBuilder) {
super();
}
ngOnInit(): void {
}
// 登陆方法
login() {
console.debug(this.loginForm.value);
alert('执行登陆操作');
}
}