正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| ... | ... | @@ -41,13 +41,13 @@ |
| 41 | 41 | /> |
| 42 | 42 | <u-button |
| 43 | 43 | type="default" |
| 44 | - size="mini" | |
| 45 | 44 | slot="right" |
| 46 | 45 | :hair-line="false" |
| 47 | 46 | :custom-style="{ |
| 48 | 47 | color: 'var(--primary-color)', |
| 49 | 48 | border: 'none', |
| 50 | 49 | fontSize: '30rpx', |
| 50 | + width: '240rpx', | |
| 51 | 51 | }" |
| 52 | 52 | @click="getCode" |
| 53 | 53 | > |
| ... | ... | @@ -234,7 +234,7 @@ export default { |
| 234 | 234 | getCode() { |
| 235 | 235 | const { mobile = "" } = this.form; |
| 236 | 236 | |
| 237 | - if (!(mobile && /^1[0-9]{10}$/.test(mobile))) { | |
| 237 | + if (!(mobile && /^1[3456789]\d{9}$/.test(mobile))) { | |
| 238 | 238 | this.$refs.uToast.show({ |
| 239 | 239 | message: "请填写正确手机号", |
| 240 | 240 | type: "error", | ... | ... |
请
注册
或
登录
后发表评论