|
@@ -9,7 +9,7 @@
|
|
v-slot="{ errors }"
|
|
v-slot="{ errors }"
|
|
ref="providerPhome"
|
|
ref="providerPhome"
|
|
name="手机号码"
|
|
name="手机号码"
|
|
- rules="required|min:11|max:11"
|
|
|
|
|
|
+ rules="phone"
|
|
slim
|
|
slim
|
|
>
|
|
>
|
|
<v-text-field
|
|
<v-text-field
|
|
@@ -29,7 +29,7 @@
|
|
<validation-provider
|
|
<validation-provider
|
|
v-slot="{ errors }"
|
|
v-slot="{ errors }"
|
|
name="验证码"
|
|
name="验证码"
|
|
- rules="required|min:6|max:6"
|
|
|
|
|
|
+ rules="code"
|
|
slim
|
|
slim
|
|
>
|
|
>
|
|
<v-text-field
|
|
<v-text-field
|
|
@@ -114,6 +114,10 @@ export default {
|
|
try {
|
|
try {
|
|
this.submitting = true;
|
|
this.submitting = true;
|
|
const valid = await this.$refs.observer.validate();
|
|
const valid = await this.$refs.observer.validate();
|
|
|
|
+ console.log(
|
|
|
|
+ '🚀 ~ file: register.vue ~ line 117 ~ submit ~ valid',
|
|
|
|
+ valid,
|
|
|
|
+ );
|
|
if (valid) {
|
|
if (valid) {
|
|
this.$tongji.trackEvent('活动', '注册', '', 0);
|
|
this.$tongji.trackEvent('活动', '注册', '', 0);
|
|
const res = await registerForInvite(this, this.form);
|
|
const res = await registerForInvite(this, this.form);
|
|
@@ -131,6 +135,7 @@ export default {
|
|
try {
|
|
try {
|
|
this.codeSending = true;
|
|
this.codeSending = true;
|
|
const validationResult = await this.$refs.providerPhome.validate();
|
|
const validationResult = await this.$refs.providerPhome.validate();
|
|
|
|
+
|
|
if (validationResult.valid) {
|
|
if (validationResult.valid) {
|
|
this.$tongji.trackEvent('活动', '发送短信', '', 0);
|
|
this.$tongji.trackEvent('活动', '发送短信', '', 0);
|
|
const res = await sendSmsCode(this, {
|
|
const res = await sendSmsCode(this, {
|