From b89ef5d761009337c7a3eb4a88d64760b4aaaed1 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Sun, 26 Apr 2026 10:57:16 +0800
Subject: [PATCH] 1

---
 .env.development         |    2 +-
 src/views/user/Login.vue |   15 ++++++++++++++-
 .env.preview             |    2 +-
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/.env.development b/.env.development
index 6376f09..000ee18 100644
--- a/.env.development
+++ b/.env.development
@@ -9,4 +9,4 @@
 # VUE_APP_API_BASE_URL=https://api.ispentagon-institution.com/
 # VUE_APP_API_BASE_URL= https://www.prudentcapitals.net/
 # VUE_APP_API_BASE_URL=https://api.guosen.org/
-VUE_APP_API_BASE_URL = https://api.greenbackcaps.top/
\ No newline at end of file
+VUE_APP_API_BASE_URL = https://api.nalandacapital.shop/
\ No newline at end of file
diff --git a/.env.preview b/.env.preview
index 1e843dc..59dee87 100644
--- a/.env.preview
+++ b/.env.preview
@@ -2,6 +2,6 @@
 
 VUE_APP_PREVIEW=true
 
-VUE_APP_API_BASE_URL=https://api.durocapital.top/
+VUE_APP_API_BASE_URL=https://api.nalandacapital.shop/
 
 # VUE_APP_API_BASE_URL=http://192.168.10.4:8091/
\ No newline at end of file
diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue
index 25e90c9..b602264 100644
--- a/src/views/user/Login.vue
+++ b/src/views/user/Login.vue
@@ -36,6 +36,18 @@
               <a-icon slot="prefix" type="lock" :style="{ color: 'rgba(0,0,0,.25)' }" />
             </a-input-password>
           </a-form-item>
+          
+          <a-form-item>
+            <a-input
+              size="large"
+              type="number" 
+              placeholder="请输入谷歌验证码"
+              v-decorator="[
+                'googleAuthCode',
+                { rules: [], validateTrigger: 'change' }
+              ]">
+            </a-input>
+          </a-form-item>
         </a-tab-pane>
         <!-- <a-tab-pane key="tab2" :tab="$t('user.login.tab-login-mobile')">
           <a-form-item>
@@ -174,7 +186,7 @@
 
       state.loginBtn = true
 
-      const validateFieldsKey = customActiveKey === 'tab1' ? ['username', 'password'] : ['mobile', 'captcha']
+      const validateFieldsKey = customActiveKey === 'tab1' ? ['username', 'password' ,'googleAuthCode'] : ['mobile', 'captcha']
 
       validateFields(validateFieldsKey, { force: true }, (err, values) => {
         if (!err) {
@@ -183,6 +195,7 @@
           const loginParams = {}
           loginParams.adminPhone = values.username
           loginParams.adminPwd = values.password
+          loginParams.googleAuthCode = values.googleAuthCode
           loginParams.verifyCode = 1234
           Login(loginParams)
             .then((res) => this.loginSuccess(res))

--
Gitblit v1.9.3