-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(帐户模块): 移动账号模块,登录组件,注册组件,注册成功页面到特性模块下
- Loading branch information
1 parent
065b929
commit f87b10e
Showing
20 changed files
with
49 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<p> | ||
login works! | ||
</p> | ||
|
||
|
||
<div> | ||
<input type="text" name="" id="" placeholder="admin"> | ||
</div> | ||
<div> | ||
<input type="password" name="" id="" placeholder="123456"> | ||
</div> | ||
<div> | ||
<button (click)="login()">提交</button> | ||
</div> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { HttpClient } from '@angular/common/http'; | ||
import { Router } from '@angular/router'; | ||
|
||
|
||
@Component({ | ||
selector: 'app-login', | ||
templateUrl: './login.component.html', | ||
styleUrls: ['./login.component.scss'] | ||
}) | ||
export class LoginComponent implements OnInit { | ||
|
||
constructor(private _router: Router) { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
login() { | ||
localStorage.setItem('currentUser', JSON.stringify({ username: 'admin' })); | ||
this._router.navigate(['/dashboard/analysis']); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 11 additions & 11 deletions
22
src/app/pages/user/user.component.scss → src/app/feature/user/user.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
:host { | ||
display: block; | ||
background: #f0f2f5; | ||
background-image: url('../../../assets/images/user-bg.svg'); | ||
width: 100%; | ||
min-height: 100%; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
background-size: 100%; | ||
padding: 110px 0 144px 0; | ||
position: relative; | ||
:host { | ||
display: block; | ||
background: #f0f2f5; | ||
background-image: url('../../../assets/images/user-bg.svg'); | ||
width: 100%; | ||
min-height: 100%; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
background-size: 100%; | ||
padding: 110px 0 144px 0; | ||
position: relative; | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.