|
@@ -57,32 +57,32 @@ class TypeForm extends React.Component {
|
57
|
57
|
</div>
|
58
|
58
|
<div className={styles.flexItem} style={{ justifyContent: 'space-between' }}>
|
59
|
59
|
<div>
|
60
|
|
- {this.props.type.sex != '' && <div className={styles.flexItem}>
|
|
60
|
+ {this.props.type.sex != '' && this.props.type.sex != null && <div className={styles.flexItem}>
|
61
|
61
|
<div className={styles.left}> 性别 </div>
|
62
|
62
|
<div className={styles.right} style={{ display: 'flex', alignItems: 'center' }}>{this.props.type.sex == '1' ? '男' : '女'}<img src={this.props.type.sex == '1' ? boyImg : girlImg} height="16px" width="16px" style={{ marginLeft: '5px' }} /></div>
|
63
|
63
|
</div>}
|
64
|
|
- {this.props.type.appellation != '' && <div className={styles.flexItem}>
|
|
64
|
+ {this.props.type.appellation != '' && this.props.type.appellation != null && <div className={styles.flexItem}>
|
65
|
65
|
<div className={styles.left}><img src={cardImg} height="18px" width="24px" /></div>
|
66
|
66
|
<div className={styles.right}>{this.props.type.appellation}</div>
|
67
|
67
|
</div>}
|
68
|
|
- {this.props.type.telephone != '' && <div className={styles.flexItem}>
|
|
68
|
+ {this.props.type.telephone != '' && this.props.type.telephone != null && <div className={styles.flexItem}>
|
69
|
69
|
<div className={styles.left}> 固话 </div>
|
70
|
70
|
<div className={styles.right}>{this.props.type.telephone}</div>
|
71
|
71
|
</div>}
|
72
|
|
- {this.props.type.phone != '' && <div className={styles.flexItem}>
|
|
72
|
+ {this.props.type.phone != '' && this.props.type.phone != null && <div className={styles.flexItem}>
|
73
|
73
|
<div className={styles.left}> 手机 </div>
|
74
|
74
|
<div className={styles.right}>{this.props.type.phone}</div>
|
75
|
75
|
</div>}
|
76
|
|
- {this.props.type.mail && <div className={styles.flexItem}>
|
|
76
|
+ {this.props.type.mail != '' && this.props.type.mail != null && <div className={styles.flexItem}>
|
77
|
77
|
<div className={styles.left}> 邮箱 </div>
|
78
|
78
|
<div className={styles.right}>{this.props.type.mail}</div>
|
79
|
79
|
</div>}
|
80
|
|
- {this.props.type.address != '' && <div className={styles.flexItem}>
|
|
80
|
+ {this.props.type.address != '' && this.props.type.address != null && <div className={styles.flexItem}>
|
81
|
81
|
<div className={styles.left}> 联系地址 </div>
|
82
|
82
|
<div className={styles.right}>{this.props.type.address}</div>
|
83
|
83
|
</div>}
|
84
|
84
|
</div>
|
85
|
|
- {this.props.type.avatar != null &&
|
|
85
|
+ {this.props.type.avatar != null && this.props.type.avatar != '' &&
|
86
|
86
|
<div style={{ textAlign: 'center' }}>
|
87
|
87
|
<img src={this.props.type.wxCardImg} height="80px" width="80px" />
|
88
|
88
|
<p style={{ margin: ' 0px', fontSize: '0.096rem', color: '#666' }}>扫码添加微信好友</p>
|