lex 11 mēneši atpakaļ
vecāks
revīzija
7fc6c16151

+ 15 - 1
src/views/activation-code/instrument-registration/new-index.tsx

@@ -174,6 +174,19 @@ export default defineComponent({
       }
     };
 
+    const phoneChangeEmptyInfo = () => {
+      studentInfo.password = '';
+      studentInfo.nickname = '';
+      studentInfo.gender = 1;
+      forms.areaName = '';
+      forms.schoolName = '';
+      forms.schoolAreaId = null;
+      forms.gradeNumText = '';
+      studentInfo.currentGradeNum = null;
+      forms.currentClassText = '';
+      studentInfo.currentClass = null;
+    };
+
     const checkForm = (status = true) => {
       if (!checkPhone(studentInfo.phone)) {
         status && showToast('请输入正确的手机号码');
@@ -299,7 +312,8 @@ export default defineComponent({
                 maxlength={11}
                 onUpdate:modelValue={() => {
                   forms.registerFlag = false;
-                  studentInfo.password = '';
+
+                  phoneChangeEmptyInfo();
                 }}></Field>
 
               <Field