diff --git a/pages/main/my/loginStyle/loginStyle.vue b/pages/main/my/loginStyle/loginStyle.vue
index dff7288..95da98b 100644
--- a/pages/main/my/loginStyle/loginStyle.vue
+++ b/pages/main/my/loginStyle/loginStyle.vue
@@ -255,21 +255,27 @@ export default {
           uni.showLoading({
             title: "正在获取验证码",
           });
-          setTimeout(() => {
-            uni.hideLoading();
-            // 通知验证码组件内部开始倒计时
-
+          
             getSmsCodeApi({ phone: mobile, type: 'teacher_login' }).then(res => {
               console.warn(res)
-              this.$refs.uCode.start();
+              if (res) {
+                setTimeout(() => {
+                  uni.hideLoading();
+                  // 通知验证码组件内部开始倒计时
+                  this.$refs.uCode.start();
+                }, 1000);
+              } else {
+                this.$u.toast('网络错误!');
+              }
             }).catch(errors => {
-                uni.showToast({
-                  title: errors.data.msg,
-                  icon: "none",
-                  duration: 2500,
-                })
+                // uni.showToast({
+                //   title: errors.data.msg,
+                //   icon: "none",
+                //   duration: 2500,
+                // })
+                this.$u.toast('网络错误!');
               })
-          }, 1000);
+          
         } else {
           this.$u.toast("倒计时结束后再发送");
         }