|
|
|
@ -40,7 +40,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { registerApi, getVERCode, getUserBrand } from "@/api/login"
|
|
|
|
|
import { registerApi, getVERCode, ifUserAdminOnly, getUserBrand } from "@/api/login"
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
const validatePass = (rule, value, callback) => {
|
|
|
|
@ -137,8 +137,17 @@ export default {
|
|
|
|
|
getCode() {
|
|
|
|
|
this.$refs.registerForm.validateField('sPhone', errMsg => {
|
|
|
|
|
if (!errMsg) {
|
|
|
|
|
getVERCode({ sPhone: this.form.sPhone, iType: 3 }).then(() => {
|
|
|
|
|
this.countdown()
|
|
|
|
|
let obj = {
|
|
|
|
|
sUserName: this.form.sUserName,
|
|
|
|
|
sPhone: this.form.sPhone,
|
|
|
|
|
sEmail: this.form.sEmail
|
|
|
|
|
}
|
|
|
|
|
ifUserAdminOnly(obj).then(res => {
|
|
|
|
|
if(res.msg == '成功') {
|
|
|
|
|
getVERCode({ sPhone: this.form.sPhone, iType: 3 }).then(() => {
|
|
|
|
|
this.countdown()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
console.log('验证失败')
|
|
|
|
|