|
@@ -88,9 +88,8 @@
|
|
</template>
|
|
</template>
|
|
</van-field>
|
|
</van-field>
|
|
|
|
|
|
- <van-field required label="邮箱地址" v-model="forms.email"
|
|
|
|
- :rules="[{ required: true, message: '请输入学校邮箱地址' }, { pattern: emailPattern, message: '输入邮箱地址有误' }]"
|
|
|
|
- name="email" placeholder="请输入学校邮箱地址">
|
|
|
|
|
|
+ <van-field label="邮箱地址" v-model="forms.email" :rules="[{validator: validatorEmail}]" name="email"
|
|
|
|
+ placeholder="请输入学校邮箱地址">
|
|
</van-field>
|
|
</van-field>
|
|
</van-cell-group>
|
|
</van-cell-group>
|
|
|
|
|
|
@@ -233,6 +232,12 @@
|
|
this.setLoading(false)
|
|
this.setLoading(false)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ validatorEmail(val) {
|
|
|
|
+ console.log(val)
|
|
|
|
+ if (val && !this.emailPattern.test(val)) {
|
|
|
|
+ return '输入邮箱地址有误'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
onLinkUrl() {
|
|
onLinkUrl() {
|
|
this.submitStatus = false
|
|
this.submitStatus = false
|
|
window.location.href = window.location.origin + '/orchestra-student/#/download?type=manage'
|
|
window.location.href = window.location.origin + '/orchestra-student/#/download?type=manage'
|