[대상향]

개인정보처리방침 > 이용 주의사항 으로 변경처리
This commit is contained in:
leejinho 2019-12-15 14:49:52 +09:00
parent 438cb519b4
commit ac76cbb1c3
9 changed files with 153 additions and 4 deletions

View File

@ -1,3 +1,4 @@
import { ChangePasswordDialogComponent } from './change-password.dialog.component'; import { ChangePasswordDialogComponent } from './change-password.dialog.component';
import { NoticeDialogComponent } from './notice.dialog.component';
export const DIALOGS = [ChangePasswordDialogComponent]; export const DIALOGS = [ChangePasswordDialogComponent, NoticeDialogComponent];

View File

@ -0,0 +1,16 @@
<mat-card class="confirm-card mat-elevation-z">
<mat-card-header>
<mat-card-title>{{ data.title }}</mat-card-title>
<!-- <mat-card-subtitle>Confirm</mat-card-subtitle> -->
</mat-card-header>
<mat-card-content>
<div #messageContainer class="notice">
{{ data.message }}
</div>
</mat-card-content>
<mat-card-actions class="button-farm flex-row">
<button mat-stroked-button (click)="onClickConfirm()" class="mat-primary">
Confirm
</button>
</mat-card-actions>
</mat-card>

View File

@ -0,0 +1,22 @@
.mat-card{
padding:10px;
.mat-card-header{
margin-bottom:20px;
.mat-card-title{
margin:0 -16px;
padding-bottom:10px;
}
}
.button-farm {
text-align:right;
.mat-primary{
margin-left:4px;
}
}
}
form{
.mat-form-field{
width:100%;
}
}

View File

@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NoticeDialogComponent } from './notice.dialog.component';
describe('ui::AlertDialogComponent', () => {
let component: NoticeDialogComponent;
let fixture: ComponentFixture<NoticeDialogComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [NoticeDialogComponent]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(NoticeDialogComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,44 @@
import {
Component,
OnInit,
Inject,
ViewChild,
ElementRef
} from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
export interface NoticeDialogData {
title: string;
message?: string;
html?: string;
}
// tslint:disable-next-line: no-empty-interface
export interface NoticeDialogResult {}
@Component({
selector: 'app-notice-dialog',
templateUrl: './notice.dialog.component.html',
styleUrls: ['./notice.dialog.component.scss']
})
export class NoticeDialogComponent implements OnInit {
@ViewChild('messageContainer', { static: true })
messageContainer: ElementRef;
tempAgeLimits = [];
constructor(
public dialogRef: MatDialogRef<NoticeDialogComponent, NoticeDialogResult>,
@Inject(MAT_DIALOG_DATA) public data: NoticeDialogData
) {}
ngOnInit(): void {
if (!!this.data.html) {
this.messageContainer.nativeElement.innerHTML = this.data.html;
}
}
onClickConfirm(): void {
this.dialogRef.close({});
}
}

View File

@ -3,9 +3,11 @@
<ucap-account-login <ucap-account-login
[companyList]="companyList$ | async" [companyList]="companyList$ | async"
curCompanyCode="GUC100" curCompanyCode="GUC100"
notiText="이용 주의사항"
[loginBtnEnable]="loginBtnEnable" [loginBtnEnable]="loginBtnEnable"
[loginBtnText]="loginBtnText" [loginBtnText]="loginBtnText"
(login)="onLogin($event)" (login)="onLogin($event)"
(notiClick)="onClickNoti($event)"
> >
</ucap-account-login> </ucap-account-login>
</div> </div>

View File

@ -17,6 +17,11 @@ import {
AlertDialogResult AlertDialogResult
} from '@ucap-webmessenger/ui'; } from '@ucap-webmessenger/ui';
import { StringUtil } from '@ucap-webmessenger/core'; import { StringUtil } from '@ucap-webmessenger/core';
import {
NoticeDialogComponent,
NoticeDialogResult,
NoticeDialogData
} from '@app/layouts/messenger/dialogs/account/notice.dialog.component';
@Component({ @Component({
selector: 'app-page-account-login', selector: 'app-page-account-login',
@ -151,7 +156,30 @@ export class LoginPageComponent implements OnInit, OnDestroy {
); );
} }
onClickTemplate() { onClickNoti() {
this.router.navigate(['/template']); // For Daesang,,
this.dialogService.open<
NoticeDialogComponent,
NoticeDialogData,
NoticeDialogResult
>(NoticeDialogComponent, {
width: '500px',
data: {
title: '이용시 주의사항',
html: `
<p>1. / .</p>
<p>2. ( ) .</p>
<p>3. , , Clean Desk를 .</p>
<p>4. .</p>
<p>5. PC에 .</p>
<p>6. . .</p>
<p>7. ( ) .</p>
`
} }
});
}
// onClickTemplate() {
// this.router.navigate(['/template']);
// }
} }

View File

@ -69,5 +69,9 @@
<span class="text">Don't have an account?</span> <span class="text">Don't have an account?</span>
<a class="link">Create an account</a> <a class="link">Create an account</a>
</div> </div>
<div class="policy"><a class="link">개인정보 처리방침</a></div> <div class="policy">
<a class="link" (click)="onClickNoti()">{{
!!notiText ? notiText : '개인정보 처리방침'
}}</a>
</div>
</div> </div>

View File

@ -27,6 +27,8 @@ export class LoginComponent implements OnInit {
loginBtnText?: string; loginBtnText?: string;
@Input() @Input()
loginBtnEnable: boolean; loginBtnEnable: boolean;
@Input()
notiText?: string;
@Output() @Output()
login = new EventEmitter<{ login = new EventEmitter<{
@ -36,6 +38,8 @@ export class LoginComponent implements OnInit {
rememberMe: boolean; rememberMe: boolean;
notValid: () => void; notValid: () => void;
}>(); }>();
@Output()
notiClick = new EventEmitter();
@ViewChild('loginPw', { static: true }) loginPwElementRef: ElementRef; @ViewChild('loginPw', { static: true }) loginPwElementRef: ElementRef;
@ -85,4 +89,8 @@ export class LoginComponent implements OnInit {
} }
}); });
} }
onClickNoti(): void {
this.notiClick.emit();
}
} }