Browse Source

Merge pull request '修改输入框获取值的方式' (#15) from zq-popup into master

Reviewed-on: #15
pull/16/head
zhangqi 2 weeks ago
parent
commit
172587f384
  1. 4
      src/components/PhoneCode.vue

4
src/components/PhoneCode.vue

@ -33,11 +33,11 @@ import GuipInput from '@/components/GuipInput.vue';
},
methods: {
async sendCode() {
if (!/^1\d{10}$/.test(this.$refs.phoneNumber.value)) {
if (!/^1\d{10}$/.test(this.$refs.phoneNumber.inputValue)) {
this.$message.warning('请输入有效的手机号码');
return;
}
this.phoneValue = this.$refs.phoneNumber.value;
this.phoneValue = this.$refs.phoneNumber.inputValue;
this.startCountdown();
//
// try {

Loading…
Cancel
Save