|
|
@@ -14,9 +14,7 @@
|
|
|
<el-form :model="valid2" :rules="rules2" ref="valid2" label-width="100px" class="demo-ruleForm">
|
|
|
<el-form-item prop="mobile">
|
|
|
<el-input v-model="valid2.mobile"
|
|
|
- v-bind:class="{active: mobileSecondExit}"
|
|
|
placeholder="新手机号码"></el-input>
|
|
|
- <span class="tip tip-mobile" v-show="mobileSecondExit">该手机已被注册</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="code">
|
|
|
<el-input type="text" v-model="valid2.code"
|
|
|
@@ -61,7 +59,6 @@
|
|
|
callback(new Error('请填写正确的手机号'))
|
|
|
this.getCodeBtnIsDisabled = true
|
|
|
this.mobileSecondChecked = false
|
|
|
- this.mobileSecondExit = false
|
|
|
} else {
|
|
|
if (this.valid2.mobile !== '') {
|
|
|
var reg = /^1[0-9]{10}$/
|
|
|
@@ -69,20 +66,9 @@
|
|
|
callback(new Error('请填写正确的手机号'))
|
|
|
this.getCodeBtnIsDisabled = true
|
|
|
this.mobileSecondChecked = false
|
|
|
- this.mobileSecondExit = false
|
|
|
} else {
|
|
|
- this.$http.get(`/update/user/mobile/hasRegister`, {params: {mobile: this.valid2.mobile}})
|
|
|
- .then(response => {
|
|
|
- if (response.data.content.hasRegister) {
|
|
|
- this.getCodeBtnIsDisabled = true
|
|
|
- this.mobileSecondChecked = false
|
|
|
- this.mobileSecondExit = true
|
|
|
- } else {
|
|
|
- this.getCodeBtnIsDisabled = false
|
|
|
- this.mobileSecondChecked = true
|
|
|
- this.mobileSecondExit = false
|
|
|
- }
|
|
|
- })
|
|
|
+ this.getCodeBtnIsDisabled = false
|
|
|
+ this.mobileSecondChecked = true
|
|
|
}
|
|
|
}
|
|
|
callback()
|