魏超 5 年 前
コミット
389f1d3e5b
共有2 個のファイルを変更した4 個の追加4 個の削除を含む
  1. 3
    3
      src/pages/h5SampleManager/h5Sample/add.jsx
  2. 1
    1
      src/pages/h5SampleManager/h5Sample/components/ContactInfo.jsx

+ 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>