lex 1 سال پیش
والد
کامیت
1d38ddd9d7
2فایلهای تغییر یافته به همراه9 افزوده شده و 2 حذف شده
  1. 5 1
      src/components/m-img-code/index.tsx
  2. 4 1
      src/views/school-register/index.tsx

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

@@ -27,6 +27,10 @@ export default defineComponent({
     zIndex: {
       type: Number,
       default: 2001
+    },
+    showTips: {
+      type: Boolean,
+      default: true
     }
   },
   emits: ['close', 'sendCode'],
@@ -92,7 +96,7 @@ export default defineComponent({
           }
         });
         setTimeout(() => {
-          showToast('验证码已发送');
+          this.showTips && showToast('验证码已发送');
         }, 100);
         this.$emit('close');
         this.$emit('sendCode');

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

@@ -119,7 +119,9 @@ export default defineComponent({
     const onSendSms = async () => {
       if (data.sendMsg.includes('s')) return;
       onCountDown();
-      showToast('验证码已发送');
+      setTimeout(() => {
+        showToast(`已向负责人发送短信验证码`);
+      }, 100);
     };
     const onCountDown = () => {
       data.sendMsg = '60s';
@@ -526,6 +528,7 @@ export default defineComponent({
                   v-model:value={data.imgCodeStatus}
                   clientId="cooleshow-teacher"
                   type="REGISTER"
+                  showTips={false}
                   phone={forms.educationalAdministrationPhone}
                   onClose={() => {
                     data.imgCodeStatus = false;