yanzheng() {
if (!this.params.address_id) {
this.$u.toast("请选择地址");
return false;
}
if (!this.params.cover_id) {
this.$u.toast("请选择卡面");
return false;
}
if (!this.params.package_cover_id) {
this.$u.toast("请选择封面");
return false;
}
return true;
},
----------------------------------------------------
if (!this.yanzheng()) {
return false;
}
// 身份证regexp: /(^\d{15}$)|(^\d{17}([0-9]|X)$)/,
if (this.form.mobile) {
var aaa = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;
if (!aaa.test(this.form.mobile)) {
this.$u.toast("请输入正确的手机号");
return false;
}
if (!this.form.sms_code) {
this.$u.toast("请输入验证码");
return false;
}
}