Browse Source

require phone length

devlop
邓雄飞 4 years ago
parent
commit
b71c1205d7
2 changed files with 6 additions and 2 deletions
  1. 6
      pages/login/index.vue
  2. 2
      unpackage/dist/dev/app-plus/app-service.js

6
pages/login/index.vue

@ -165,7 +165,11 @@ export default {
}, },
computed: { computed: {
disabled() { disabled() {
return this.phoneNumber.trim() === '' || this.captcha.trim() === ''
return (
this.phoneNumber.trim() === '' ||
this.phoneNumber.trim().length != 11 ||
this.captcha.trim() === ''
)
} }
} }
} }

2
unpackage/dist/dev/app-plus/app-service.js
File diff suppressed because it is too large
View File

Loading…
Cancel
Save