Ver código fonte

添加了 loginEtssmsApi 402错误提示信息

yuanmingze 1 mês atrás
pai
commit
436c918c35
2 arquivos alterados com 19 adições e 2 exclusões
  1. 2 2
      .env.development
  2. 17 0
      src/views/login/index.vue

+ 2 - 2
.env.development

@@ -1,4 +1,4 @@
 VITE_APP_ENV = dev
-VITE_APP_URL = https://hcppreapi.yaoyi.net
+# VITE_APP_URL = https://hcppreapi.yaoyi.net
 
-# VITE_APP_URL = https://hcpapi.yaoyi.net
+VITE_APP_URL = https://hcpapi.yaoyi.net

+ 17 - 0
src/views/login/index.vue

@@ -75,6 +75,15 @@
         confirmText="立即注册"
         @confirm="loginConfirm"
       />
+
+      <!-- 修改密码弹窗 -->
+      <ModernDialog
+        v-model:show="changePasswordDialog"
+        title="提示"
+        message="您的登录被税局识别到存在登录异地税局风险,请下载“电子税务局”APP并完成修改密码再次返回进行登录。"
+        cancelText="我知道了"
+        @cancel="changePasswordDCancel"
+      />
     </div>
   </div>
 </template>
@@ -140,6 +149,12 @@ const codeMessage = ref()
 const onCancel = () => {
   showDialog.value = false
 }
+
+const changePasswordDialog = ref(true)
+
+const changePasswordDCancel = () => {
+  changePasswordDialog.value = false
+}
 /* 发送验证码 */
 const sendCode = async () => {
   if (sending.value) return
@@ -251,6 +266,8 @@ const loginBtn = useDebounceFn(async () => {
     } else if (res.code == 401) {
       loginMessage.value = res.msg
       loginDialog.value = true
+    } else if (res.code == 402) {
+      changePasswordDialog.value = true
     }
   } catch (err: any) {
     toast.close()