This commit is contained in:
Gdpao
2020-08-04 21:46:52 +08:00
parent 43845b4810
commit 692495f108
10 changed files with 49 additions and 21 deletions

View File

@@ -71,6 +71,7 @@
value: '',
login: '注册',
show: false,
is_check: null,
member_mobile: '', //手机号
smslog_type : '1',//状态
sms_code : '', //验证码
@@ -107,25 +108,32 @@
let type_phone = this.$u.test.mobile( this.member_mobile)
if( this.member_mobile == ''){
this.$refs.uToast.show({
title: '手机号不能为空',
title: '手机号不能为空',
type: 'error'
})
return false;
}
if (type_phone == false) {
this.$refs.uToast.show({
title: '手机号格式不正确',
title: '手机号格式不正确',
type: 'error'
});
return false;
}
if( this.sms_code == ''){
this.$refs.uToast.show({
title: '验证码不能为空',
title: '验证码不能为空',
type: 'error'
})
return false;
}
if (this.is_check) {
this.$refs.uToast.show({
title: '请同意协议!',
type: 'error'
})
return false;
}
this.$u.api.phoneRegister({
member_mobile: this.member_mobile,
sms_code: this.sms_code
@@ -169,11 +177,13 @@
},
// 选中某个复选框时由checkbox时触发
checkboxChange(e) {
//console.log(e);
// console.log(e,1);
this.is_check = e.value;
console.log(this.is_check);
},
// 选中任一checkbox时由checkbox-group触发
checkboxGroupChange(e) {
// console.log(e);
// console.log(e,2);
},
mask_u() {
this.show = !this.show