| | |
| | | import { Authorization } from '@business/entity/token'; |
| | | import { LoginService } from './../../../business/services/http/login.service'; |
| | | import { LoginService } from '@business/services/http/login.service'; |
| | | import { SettingsService } from '@delon/theme'; |
| | | import { Component, OnDestroy, Inject } from '@angular/core'; |
| | | import { Router } from '@angular/router'; |
| | |
| | | private settingsService: SettingsService, |
| | | private socialService: SocialService, |
| | | private loginService:LoginService, |
| | | private _cookieService:CookieService, |
| | | @Inject(DA_SERVICE_TOKEN) private tokenService: ITokenService) { |
| | | this.form = fb.group({ |
| | | userName: [null, [Validators.required, Validators.minLength(5)]], |
| | |
| | | captcha: [null, [Validators.required]], |
| | | remember: [true] |
| | | }); |
| | | let nowTime = new Date(); |
| | | nowTime.setDate(nowTime.getDate()+1); |
| | | this._cookieService.put('test','test',{expires:nowTime}); |
| | | // let nowTime = new Date(); |
| | | // nowTime.setDate(nowTime.getDate()+1); |
| | | } |
| | | |
| | | // region: fields |