|
@@ -215,7 +215,13 @@ export default defineComponent({
|
|
|
};
|
|
|
|
|
|
const checkForm = () => {
|
|
|
- if (!studentInfo.extra.nickname) {
|
|
|
+ if (!checkPhone(studentInfo.username)) {
|
|
|
+ showToast('请输入正确的手机号码');
|
|
|
+ return true;
|
|
|
+ } else if (!studentInfo.password) {
|
|
|
+ showToast('请输入验证码');
|
|
|
+ return true;
|
|
|
+ } else if (!studentInfo.extra.nickname) {
|
|
|
showToast('请输入学生姓名');
|
|
|
return true;
|
|
|
} else if (!studentInfo.extra.currentGradeNum) {
|
|
@@ -224,12 +230,6 @@ export default defineComponent({
|
|
|
} else if (!studentInfo.extra.currentClass) {
|
|
|
showToast('请选择所在班级');
|
|
|
return true;
|
|
|
- } else if (!checkPhone(studentInfo.username)) {
|
|
|
- showToast('请输入正确的手机号码');
|
|
|
- return true;
|
|
|
- } else if (!studentInfo.password) {
|
|
|
- showToast('请输入验证码');
|
|
|
- return true;
|
|
|
}
|
|
|
return false;
|
|
|
};
|
|
@@ -310,7 +310,7 @@ export default defineComponent({
|
|
|
// amount += Number(good.price) * good.quantity;
|
|
|
// originAmount += Number(good.originalPrice) * good.quantity;
|
|
|
// });
|
|
|
- console.log(studentRegisterStore.getVip);
|
|
|
+ // console.log(studentRegisterStore.getVip);
|
|
|
return {
|
|
|
amount,
|
|
|
originAmount
|
|
@@ -739,7 +739,6 @@ export default defineComponent({
|
|
|
v-model={studentInfo.password}
|
|
|
maxlength={6}
|
|
|
onUpdate:modelValue={(val: any) => {
|
|
|
- console.log(val, 'val');
|
|
|
getUserInfos();
|
|
|
}}>
|
|
|
{{
|
|
@@ -852,7 +851,7 @@ export default defineComponent({
|
|
|
|
|
|
<p>
|
|
|
注册成功即可获得乐器AI学练工具
|
|
|
- <span>{forms.giftVipDay || 0}</span>天
|
|
|
+ <span>{forms.giftVipDay || 0}</span>天有效期
|
|
|
</p>
|
|
|
</div>
|
|
|
)}
|