From c74fccbe7a436ee65f6b525ddff36897e0feaf80 Mon Sep 17 00:00:00 2001 From: geek Date: Thu, 31 Aug 2017 19:23:50 +0900 Subject: [PATCH] Forgotpassword file delete --- .../member/react/components/SignIn.tsx | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/src/ts/@overflow/member/react/components/SignIn.tsx b/src/ts/@overflow/member/react/components/SignIn.tsx index b25897f..ed1cffc 100644 --- a/src/ts/@overflow/member/react/components/SignIn.tsx +++ b/src/ts/@overflow/member/react/components/SignIn.tsx @@ -39,6 +39,13 @@ export interface State { } export class SignIn extends React.Component { + get sendComOpen(): () => any { + return this._sendComOpen; + } + + set sendComOpen(value: () => any) { + this._sendComOpen = value; + } constructor(props: Props, context: State) { super(props, context); @@ -79,7 +86,7 @@ export class SignIn extends React.Component { - + @@ -108,7 +115,7 @@ export class SignIn extends React.Component { private forgotPopupOpen = () => this.setState({ forgotPopup: true }); private PopupClose = () => this.setState({ forgotPopup: false, sendComPopup: false }); - private sendComOpen = () => { + private _sendComOpen = () => { this.setState({ forgotPopup: false, sendComPopup: true, @@ -129,14 +136,24 @@ export class SignIn extends React.Component { headers: { // 'Content-Type': 'text/plain; charset=utf-8', 'Accept': 'application/json', - // 'Content-Type': 'application/json', + 'Content-Type': 'application/json', }, body: JSON.stringify({ signinId: 'geek@loafle.com', }), + }).then((respnse:any) => { + console.log(respnse); + return respnse.json(); + }).then((resData:any) => { + console.log('resdata' + resData); + return resData; + }).catch(err => { + console.log('eee' + err); }); - let re: any = await d.json(); + // let re: any = await d.json(); + + // console.log(d); } private signInClick(event: React.SyntheticEvent, data: ButtonProps):void {