魏超 5 年前
父节点
当前提交
389f1d3e5b

+ 3
- 3
src/pages/h5SampleManager/h5Sample/add.jsx 查看文件

@@ -85,9 +85,9 @@ const header = props => {
85 85
             {
86 86
               required: true,
87 87
               message: '请填写正确的联系方式',
88
-              max:11,
89
-              min:11,
90
-              pattern: new RegExp('^[0-9]*$'),
88
+              // max:11,
89
+              // min:11,
90
+              pattern: new RegExp('^1[0-9]{10}$'),
91 91
             },
92 92
           ],
93 93
         })(<Input/>)}

+ 1
- 1
src/pages/h5SampleManager/h5Sample/components/ContactInfo.jsx 查看文件

@@ -82,7 +82,7 @@ class TypeForm extends React.Component {
82 82
                   <div className={styles.right}>{this.props.type.address}</div>
83 83
                 </div>}
84 84
               </div>
85
-              {this.props.type.avatar != null && this.props.type.avatar != '' &&
85
+              {this.props.type.wxCardImg != null && this.props.type.wxCardImg != '' &&
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>