Procházet zdrojové kódy

扫码注册学校页面-发送验证接口传参错误

liushengqiang před 1 rokem
rodič
revize
0bc5aa4a49

+ 5 - 1
src/components/m-img-code/index.tsx

@@ -19,6 +19,10 @@ export default defineComponent({
     type: {
       type: String,
       default: 'LOGIN'
+    },
+    clientId: {
+      type: String,
+      default: 'cooleshow-student'
     }
   },
   emits: ['close', 'sendCode'],
@@ -77,7 +81,7 @@ export default defineComponent({
           requestType: 'form',
           hideLoading: true,
           data: {
-            clientId: 'cooleshow-student',
+            clientId: this.clientId,
             type: 'REGISTER',
             mobile: this.phone
           }

+ 1 - 0
src/views/school-register/index.tsx

@@ -479,6 +479,7 @@ export default defineComponent({
               {data.imgCodeStatus ? (
                 <MImgCode
                   v-model:value={data.imgCodeStatus}
+                  clientId='cooleshow-teacher'
                   phone={forms.educationalAdministrationPhone}
                   onClose={() => {
                     data.imgCodeStatus = false;

+ 1 - 0
src/views/teaher-register/index.tsx

@@ -301,6 +301,7 @@ export default defineComponent({
             {data.imgCodeStatus ? (
               <MImgCode
                 v-model:value={data.imgCodeStatus}
+                clientId='cooleshow-teacher'
                 phone={forms.phone}
                 onClose={() => {
                   data.imgCodeStatus = false;