Merge branch 'feature/BETERAN-BACKEND-APP-BROWSER-init' of https://gitlab.loafle.net/bet/beteran-backend-app-browser into feature/BETERAN-BACKEND-APP-BROWSER-init
This commit is contained in:
commit
b395ef01b5
|
@ -28,7 +28,7 @@
|
||||||
<div class="flex flex-auto overflow-hidden">
|
<div class="flex flex-auto overflow-hidden">
|
||||||
<!-- Products list -->
|
<!-- Products list -->
|
||||||
<div
|
<div
|
||||||
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto"
|
class="flex flex-col flex-auto sm:mb-18 overflow-hidden sm:overflow-y-auto overflow-x-auto overflow-y-hidden"
|
||||||
>
|
>
|
||||||
<ng-container *ngIf="partners$ | async as partners">
|
<ng-container *ngIf="partners$ | async as partners">
|
||||||
<ng-container *ngIf="partners.length > 0; else noPartner">
|
<ng-container *ngIf="partners.length > 0; else noPartner">
|
||||||
|
|
|
@ -32,7 +32,11 @@
|
||||||
<!-- Bcc -->
|
<!-- Bcc -->
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-label>회원 아이디</mat-label>
|
<mat-label>회원 아이디</mat-label>
|
||||||
<input matInput [formControlName]="'signinId'" />
|
<input
|
||||||
|
matInput
|
||||||
|
[formControlName]="'signinId'"
|
||||||
|
(focusout)="__checkSigninId($event)"
|
||||||
|
/>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<!-- Subject -->
|
<!-- Subject -->
|
||||||
|
|
|
@ -1,6 +1,25 @@
|
||||||
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
import { MatDialogRef } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
import { IdentityService } from 'app/modules/polyglot/member/services/identity.service';
|
||||||
|
|
||||||
|
export interface RegistComposeData {
|
||||||
|
title: string;
|
||||||
|
parentId: string;
|
||||||
|
}
|
||||||
|
export interface RegistComposeResult {
|
||||||
|
parentId: string;
|
||||||
|
siteName: string;
|
||||||
|
signinId: string;
|
||||||
|
password: string;
|
||||||
|
exchangePassword: string;
|
||||||
|
nickname: string;
|
||||||
|
calculateType: string;
|
||||||
|
phoneNumber: string;
|
||||||
|
bankName: string;
|
||||||
|
accountNumber: string;
|
||||||
|
accountHolder: string;
|
||||||
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-regist-compose',
|
selector: 'app-regist-compose',
|
||||||
|
@ -26,7 +45,9 @@ export class RegistComposeComponent implements OnInit {
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
public matDialogRef: MatDialogRef<RegistComposeComponent>,
|
public matDialogRef: MatDialogRef<RegistComposeComponent>,
|
||||||
private _formBuilder: FormBuilder
|
@Inject(MAT_DIALOG_DATA) public data: RegistComposeData,
|
||||||
|
private _formBuilder: FormBuilder,
|
||||||
|
private _identityService: IdentityService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------
|
||||||
|
@ -97,4 +118,14 @@ export class RegistComposeComponent implements OnInit {
|
||||||
* Send the message
|
* Send the message
|
||||||
*/
|
*/
|
||||||
send(): void {}
|
send(): void {}
|
||||||
|
|
||||||
|
__checkSigninId(event: FocusEvent): void {
|
||||||
|
const signinId = this.composeForm.get('signinId')?.value;
|
||||||
|
// console.log(event, '::', signinId);
|
||||||
|
this._identityService
|
||||||
|
.checkUsernameForDuplication(signinId)
|
||||||
|
.then((isUse: boolean) => {
|
||||||
|
console.log('check username: ', isUse);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user