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:
병준 박 2022-08-10 02:03:38 +00:00
commit b395ef01b5
3 changed files with 40 additions and 5 deletions

View File

@ -28,7 +28,7 @@
<div class="flex flex-auto overflow-hidden">
<!-- Products list -->
<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.length > 0; else noPartner">

View File

@ -32,7 +32,11 @@
<!-- Bcc -->
<mat-form-field>
<mat-label>회원 아이디</mat-label>
<input matInput [formControlName]="'signinId'" />
<input
matInput
[formControlName]="'signinId'"
(focusout)="__checkSigninId($event)"
/>
</mat-form-field>
<!-- Subject -->

View File

@ -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 { 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({
selector: 'app-regist-compose',
@ -26,7 +45,9 @@ export class RegistComposeComponent implements OnInit {
*/
constructor(
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(): 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);
});
}
}