From 067883c72b282546402064eb1b78d8618d45b74d Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Mon, 21 Apr 2025 17:23:10 +0800
Subject: [PATCH] 1

---
 src/page/login/register.vue |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/src/page/login/register.vue b/src/page/login/register.vue
index 3caaf43..2dcf056 100644
--- a/src/page/login/register.vue
+++ b/src/page/login/register.vue
@@ -18,6 +18,27 @@
             <template slot="prepend">+91</template>
           </el-input>
 
+          <!-- 添加发送验证码的输入框和按钮 -->
+          <div style="margin-top: 0.46rem; display: flex; align-items: center;">
+            <el-input
+              style="flex-grow: 1;"
+              :placeholder="$t('验证码')"
+              size="medium"
+              v-model="verificationCode"
+              maxlength="6"
+              clearable
+              @input="handleInput()"
+            >
+            </el-input>
+            <el-button
+              style="margin-left: 0.2rem;"
+              :disabled="isCounting"
+              @click="sendVerificationCode"
+            >
+              {{ isCounting ? `${countdown}秒后重试` : '发送验证码' }}
+            </el-button>
+          </div>
+
           <el-input
             style="margin-top: 0.46rem"
             show-password
@@ -27,6 +48,7 @@
             @input="handleInput()"
           >
           </el-input>
+
           <el-input
             style="margin-top: 0.46rem"
             show-password
@@ -36,6 +58,7 @@
             @input="handleInput()"
           >
           </el-input>
+
           <el-input
             style="margin-top: 0.46rem"
             :placeholder="$t('hj21')"

--
Gitblit v1.9.3