move container
This commit is contained in:
parent
d39bfa9e85
commit
cda14bb92e
|
@ -64,15 +64,15 @@ export class MemberRegist extends React.Component<any, any> {
|
|||
open: false,
|
||||
value: 1,
|
||||
|
||||
email:"",
|
||||
name:"",
|
||||
company:"",
|
||||
phone:"",
|
||||
pw:"",
|
||||
email: "",
|
||||
name: "",
|
||||
company: "",
|
||||
phone: "",
|
||||
pw: "",
|
||||
};
|
||||
}
|
||||
|
||||
handleChange = () => this.setState({ });
|
||||
handleChange = () => this.setState({});
|
||||
|
||||
private emailInput: any;
|
||||
|
||||
|
@ -92,31 +92,35 @@ export class MemberRegist extends React.Component<any, any> {
|
|||
|
||||
let output: string;
|
||||
let obj: any; //new object declaration
|
||||
obj = {"email":this.state.email,
|
||||
"pwSalt":this.state.pw,
|
||||
"name":this.state.name,
|
||||
"company":this.state.company,
|
||||
"phone":this.state.phone};
|
||||
obj = {
|
||||
"email": this.state.email,
|
||||
"pwSalt": this.state.pw,
|
||||
"name": this.state.name,
|
||||
"company": this.state.company,
|
||||
"phone": this.state.phone
|
||||
};
|
||||
|
||||
|
||||
output = JSON.stringify(obj);
|
||||
output = JSON.stringify(obj);
|
||||
|
||||
obj = {"value":output};
|
||||
obj = { "value": output };
|
||||
|
||||
fetch('http://192.168.1.209:8080/v1/example/echo', {
|
||||
fetch('http://192.168.1.209:8080/v1/example/echo', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
// mode: 'no-cors'
|
||||
},
|
||||
body: JSON.stringify(obj)
|
||||
}).then(function (response) {
|
||||
}).then(function (response) {
|
||||
return response.json();
|
||||
}).then(function (json) {
|
||||
}).then(function (json) {
|
||||
console.log(json);
|
||||
}).catch((err) => {
|
||||
ReactDOM.render(<MemberRegistResult />, document.getElementById('example')
|
||||
);
|
||||
}).catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
@ -125,12 +129,12 @@ fetch('http://192.168.1.209:8080/v1/example/echo', {
|
|||
}
|
||||
|
||||
|
||||
handleResultContainer = () => {
|
||||
handleResultContainer = () => {
|
||||
ReactDOM.render(
|
||||
<MemberRegistResult />,
|
||||
document.getElementById('example')
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
btnTouchTap = () => {
|
||||
|
@ -144,7 +148,7 @@ handleResultContainer = () => {
|
|||
|
||||
<div style={styles.container}>
|
||||
Get started with Overflow
|
||||
<br/>
|
||||
<br />
|
||||
<TextField
|
||||
ref="email"
|
||||
hintText="smith@gmail.com"
|
||||
|
@ -153,9 +157,9 @@ handleResultContainer = () => {
|
|||
style={styles.textfield}
|
||||
underlineShow={true}
|
||||
value={this.state.email}
|
||||
onChange={(e, newValue) => this.setState({ email: newValue})}
|
||||
onChange={(e, newValue) => this.setState({ email: newValue })}
|
||||
/>
|
||||
<br/>
|
||||
<br />
|
||||
<TextField
|
||||
ref="name"
|
||||
hintText="Snoop"
|
||||
|
@ -163,10 +167,10 @@ handleResultContainer = () => {
|
|||
style={styles.textfield}
|
||||
underlineShow={true}
|
||||
value={this.state.name}
|
||||
onChange={(e, newValue) => this.setState({ name: newValue})}
|
||||
onChange={(e, newValue) => this.setState({ name: newValue })}
|
||||
|
||||
/>
|
||||
<br/>
|
||||
<br />
|
||||
|
||||
<TextField
|
||||
ref="company"
|
||||
|
@ -175,9 +179,9 @@ handleResultContainer = () => {
|
|||
style={styles.textfield}
|
||||
underlineShow={true}
|
||||
value={this.state.company}
|
||||
onChange={(e, newValue) => this.setState({ company: newValue})}
|
||||
onChange={(e, newValue) => this.setState({ company: newValue })}
|
||||
/>
|
||||
<br/>
|
||||
<br />
|
||||
|
||||
<TextField
|
||||
ref="phone"
|
||||
|
@ -186,9 +190,9 @@ handleResultContainer = () => {
|
|||
style={styles.textfield}
|
||||
underlineShow={true}
|
||||
value={this.state.phone}
|
||||
onChange={(e, newValue) => this.setState({ phone: newValue})}
|
||||
onChange={(e, newValue) => this.setState({ phone: newValue })}
|
||||
/>
|
||||
<br/>
|
||||
<br />
|
||||
|
||||
<TextField
|
||||
hintText="Password"
|
||||
|
@ -196,12 +200,12 @@ handleResultContainer = () => {
|
|||
type="password"
|
||||
style={styles.textfield}
|
||||
value={this.state.pw}
|
||||
onChange={(e, newValue) => this.setState({ pw: newValue})}
|
||||
onChange={(e, newValue) => this.setState({ pw: newValue })}
|
||||
/>
|
||||
<br/>
|
||||
<br />
|
||||
|
||||
|
||||
<RaisedButton label="Sign Up" primary={true} style={styles.button} onClick={this.handleSignUp.bind(this)}/>
|
||||
<RaisedButton label="Sign Up" primary={true} style={styles.button} onClick={this.handleSignUp.bind(this)} />
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user