dev_local_2
杨树林 6 years ago
parent b26d830528
commit b8332cc023

@ -245,12 +245,12 @@ class Trialapplication extends Component {
return;
}
if (this.state.codes.length === 0) {
this.setState({
Phonenumberisnotcocodes: "请输入验证码",
})
return;
}
// if (this.state.codes.length === 0) {
// this.setState({
// Phonenumberisnotcocodes: "请输入验证码",
// })
// return;
// }
}
@ -614,61 +614,61 @@ class Trialapplication extends Component {
}
{
user_phone_binded === true ? "" :
<div style={{"display": "flex", "justify-content": "center"}}>
<Input
className={Phonenumberisnotcocodes && Phonenumberisnotcocodes !== ""?borredssz:"fl mr5"}
name="codes" type="text" autoComplete="off"
readonly
onfocus="this.removeAttribute('readonly')" style={{
"width": "316px",
"height": "38px",
}} placeholder="请输入验证码"
onChange={this.codesonChange}
value={codes}>
</Input>
{
getverificationcodes === undefined ?
<Button className="fl ml5 " disabled style={{
"background": "#4cacff!important",
"width": "120px",
"text-align": "center",
"height": "38px",
}}
size={"large"}>重新发送{seconds}s</Button>
: getverificationcodes === true ?
<Button className="fl ml5 " style={{
"background": "#4cacff!important",
"width": "120px",
"text-align": "center",
"height": "38px",
}} type="primary"
onClick={() => this.getverificationcode()}
size={"large"}>获取验证码</Button>
:
<Button className="fl ml5 " style={{
"background": "#4cacff!important",
"width": "120px",
"text-align": "center",
"height": "38px",
}} type="primary"
onClick={() => this.getverificationcode()}
size={"large"}>重新发送</Button>
}
</div>
}
{
Phonenumberisnotcocodes && Phonenumberisnotcocodes != "" ?
<p className="color-red " style={{width: " 100%", height: "20px",textAlign:"left"}}>
<span >{Phonenumberisnotcocodes}</span>
</p>
: <div style={{height: "20px"}}></div>
}
{/*{*/}
{/* user_phone_binded === true ? "" :*/}
{/* <div style={{"display": "flex", "justify-content": "center"}}>*/}
{/* <Input*/}
{/* className={Phonenumberisnotcocodes && Phonenumberisnotcocodes !== ""?borredssz:"fl mr5"}*/}
{/* name="codes" type="text" autoComplete="off"*/}
{/* readonly*/}
{/* onfocus="this.removeAttribute('readonly')" style={{*/}
{/* "width": "316px",*/}
{/* "height": "38px",*/}
{/* }} placeholder="请输入验证码"*/}
{/* onChange={this.codesonChange}*/}
{/* value={codes}>*/}
{/* </Input>*/}
{/* {*/}
{/* getverificationcodes === undefined ?*/}
{/* <Button className="fl ml5 " disabled style={{*/}
{/* "background": "#4cacff!important",*/}
{/* "width": "120px",*/}
{/* "text-align": "center",*/}
{/* "height": "38px",*/}
{/* }}*/}
{/* size={"large"}>重新发送{seconds}s</Button>*/}
{/* : getverificationcodes === true ?*/}
{/* <Button className="fl ml5 " style={{*/}
{/* "background": "#4cacff!important",*/}
{/* "width": "120px",*/}
{/* "text-align": "center",*/}
{/* "height": "38px",*/}
{/* }} type="primary"*/}
{/* onClick={() => this.getverificationcode()}*/}
{/* size={"large"}>获取验证码</Button>*/}
{/* :*/}
{/* <Button className="fl ml5 " style={{*/}
{/* "background": "#4cacff!important",*/}
{/* "width": "120px",*/}
{/* "text-align": "center",*/}
{/* "height": "38px",*/}
{/* }} type="primary"*/}
{/* onClick={() => this.getverificationcode()}*/}
{/* size={"large"}>重新发送</Button>*/}
{/* }*/}
{/* </div>*/}
{/*}*/}
{/*{*/}
{/* Phonenumberisnotcocodes && Phonenumberisnotcocodes != "" ?*/}
{/* <p className="color-red " style={{width: " 100%", height: "20px",textAlign:"left"}}>*/}
{/* <span >{Phonenumberisnotcocodes}</span>*/}
{/* </p>*/}
{/* : <div style={{height: "20px"}}></div>*/}
{/*}*/}
<div style={{
"padding-left": "50px",
"padding-right": "50px"

@ -261,12 +261,12 @@ class Trialapplicationysl extends Component {
return;
}
if (this.state.codes.length === 0) {
this.setState({
Phonenumberisnotcocodes: "请输入验证码",
})
return;
}
// if (this.state.codes.length === 0) {
// this.setState({
// Phonenumberisnotcocodes: "请输入验证码",
// })
// return;
// }
}
@ -632,61 +632,61 @@ class Trialapplicationysl extends Component {
}
{
user_phone_binded === true ? "" :
<div style={{"display": "flex", "justify-content": "center"}}>
<Input
className={Phonenumberisnotcocodes && Phonenumberisnotcocodes !== ""?borredssz:"fl mr5"}
name="codes" type="text" autoComplete="off"
readonly
onfocus="this.removeAttribute('readonly')" style={{
"width": "316px",
"height": "38px",
}} placeholder="请输入验证码"
onChange={this.codesonChange}
value={codes}>
</Input>
{
getverificationcodes === undefined ?
<Button className="fl ml5 " disabled style={{
"background": "#4cacff!important",
"width": "120px",
"text-align": "center",
"height": "38px",
}}
size={"large"}>重新发送{seconds}s</Button>
: getverificationcodes === true ?
<Button className="fl ml5 " style={{
"background": "#4cacff!important",
"width": "120px",
"text-align": "center",
"height": "38px",
}} type="primary"
onClick={() => this.getverificationcode()}
size={"large"}>获取验证码</Button>
:
<Button className="fl ml5 " style={{
"background": "#4cacff!important",
"width": "120px",
"text-align": "center",
"height": "38px",
}} type="primary"
onClick={() => this.getverificationcode()}
size={"large"}>重新发送</Button>
}
</div>
}
{
Phonenumberisnotcocodes && Phonenumberisnotcocodes != "" ?
<p className="color-red " style={{width: " 100%", height: "20px",textAlign:"left"}}>
<span >{Phonenumberisnotcocodes}</span>
</p>
: <div style={{height: "20px"}}></div>
}
{/*{*/}
{/* user_phone_binded === true ? "" :*/}
{/* <div style={{"display": "flex", "justify-content": "center"}}>*/}
{/* <Input*/}
{/* className={Phonenumberisnotcocodes && Phonenumberisnotcocodes !== ""?borredssz:"fl mr5"}*/}
{/* name="codes" type="text" autoComplete="off"*/}
{/* readonly*/}
{/* onfocus="this.removeAttribute('readonly')" style={{*/}
{/* "width": "316px",*/}
{/* "height": "38px",*/}
{/* }} placeholder="请输入验证码"*/}
{/* onChange={this.codesonChange}*/}
{/* value={codes}>*/}
{/* </Input>*/}
{/* {*/}
{/* getverificationcodes === undefined ?*/}
{/* <Button className="fl ml5 " disabled style={{*/}
{/* "background": "#4cacff!important",*/}
{/* "width": "120px",*/}
{/* "text-align": "center",*/}
{/* "height": "38px",*/}
{/* }}*/}
{/* size={"large"}>重新发送{seconds}s</Button>*/}
{/* : getverificationcodes === true ?*/}
{/* <Button className="fl ml5 " style={{*/}
{/* "background": "#4cacff!important",*/}
{/* "width": "120px",*/}
{/* "text-align": "center",*/}
{/* "height": "38px",*/}
{/* }} type="primary"*/}
{/* onClick={() => this.getverificationcode()}*/}
{/* size={"large"}>获取验证码</Button>*/}
{/* :*/}
{/* <Button className="fl ml5 " style={{*/}
{/* "background": "#4cacff!important",*/}
{/* "width": "120px",*/}
{/* "text-align": "center",*/}
{/* "height": "38px",*/}
{/* }} type="primary"*/}
{/* onClick={() => this.getverificationcode()}*/}
{/* size={"large"}>重新发送</Button>*/}
{/* }*/}
{/* </div>*/}
{/*}*/}
{/*{*/}
{/* Phonenumberisnotcocodes && Phonenumberisnotcocodes != "" ?*/}
{/* <p className="color-red " style={{width: " 100%", height: "20px",textAlign:"left"}}>*/}
{/* <span >{Phonenumberisnotcocodes}</span>*/}
{/* </p>*/}
{/* : <div style={{height: "20px"}}></div>*/}
{/*}*/}
<div style={{
"padding-left": "50px",
"padding-right": "50px"

Loading…
Cancel
Save