|
|
|
@ -407,7 +407,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(modalCancel===true||this.props.current_user.phone===null){
|
|
|
|
|
if(this.props.current_user&&this.props.current_user.phone===null||modalCancel===true){
|
|
|
|
|
if(contact_phone===undefined||contact_phone===null||contact_phone===""){
|
|
|
|
|
this.setState({
|
|
|
|
|
contact_phonetype:true
|
|
|
|
@ -445,7 +445,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
min_price:parseInt(min_price),
|
|
|
|
|
max_price:parseInt(max_price),
|
|
|
|
|
contact_name: contact_name===null||contact_name===undefined?this.props.current_user.username:contact_name,
|
|
|
|
|
contact_phone: contact_phone===undefined?this.props.current_user.phone:contact_phone,
|
|
|
|
|
contact_phone: contact_phone===undefined?this.props.current_user&&this.props.current_user.phone:contact_phone,
|
|
|
|
|
code:code,
|
|
|
|
|
publish:types
|
|
|
|
|
}
|
|
|
|
@ -493,7 +493,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
min_price:parseInt(min_price),
|
|
|
|
|
max_price:parseInt(max_price),
|
|
|
|
|
contact_name: contact_name===null||contact_name===undefined?this.props.current_user.username:contact_name,
|
|
|
|
|
contact_phone: contact_phone===undefined?this.props.current_user.phone:contact_phone,
|
|
|
|
|
contact_phone: contact_phone===undefined?this.props.current_user&&this.props.current_user.phone:contact_phone,
|
|
|
|
|
code:code,
|
|
|
|
|
publish:types
|
|
|
|
|
}
|
|
|
|
@ -629,7 +629,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
if(modalCancel===true||this.props.current_user.phone===null){
|
|
|
|
|
if(this.props.current_user&&this.props.current_user.phone===null||modalCancel===true){
|
|
|
|
|
if(e.target.value===undefined||e.target.value===null||e.target.value===""){
|
|
|
|
|
this.setState({
|
|
|
|
|
contact_phonetype:true
|
|
|
|
@ -847,12 +847,12 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
{this.state.contact_nametype===true?<div className={"color-red ml100"}>不能为空</div>:""}
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
{modalCancel===false&&this.props.current_user.phone!=null?<p className="clearfix mb20 shaiContent">
|
|
|
|
|
{this.props.current_user&&this.props.current_user.phone!=null&&modalCancel===false?<p className="clearfix mb20 shaiContent">
|
|
|
|
|
<span className="shaiTitle fl mt5 ml25">手机号:</span>
|
|
|
|
|
<Input
|
|
|
|
|
className={"fafafas fl"}
|
|
|
|
|
style={{"width": "260px"}}
|
|
|
|
|
value={this.state.phones===undefined?this.props.current_user.phone:this.state.phones}
|
|
|
|
|
value={this.state.phones===undefined?this.props.current_user&&this.props.current_user.phone:this.state.phones}
|
|
|
|
|
placeholder="请输入手机号"
|
|
|
|
|
disabled={true}
|
|
|
|
|
/>
|
|
|
|
@ -861,7 +861,7 @@ class PackageIndexNEIBannerConcent extends Component {
|
|
|
|
|
</a>
|
|
|
|
|
</p>:""}
|
|
|
|
|
{/*{this.state.current_userphonetype===true?<div className={"color-red ml100"}>不能为空</div>:""}*/}
|
|
|
|
|
{modalCancel===true||this.props.current_user.phone===null?<p className="clearfix mb20 shaiContent">
|
|
|
|
|
{this.props.current_user&&this.props.current_user.phone===null||modalCancel===true?<p className="clearfix mb20 shaiContent">
|
|
|
|
|
<span className="shaiTitle mt5 fl">
|
|
|
|
|
<span className="shaiTitle fl mt5 ml25">
|
|
|
|
|
{/*未注册才显示!*/}
|
|
|
|
|