From 0d5daf444d5b2338bf5c2a19630bd0333a6b852a Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Mon, 21 Apr 2025 14:32:35 +0800
Subject: [PATCH] feat: 修改日语,注册添加电话

---
 src/page/register/index.vue |   36 +++++++++++++++++++++---------------
 1 files changed, 21 insertions(+), 15 deletions(-)

diff --git a/src/page/register/index.vue b/src/page/register/index.vue
index 9a6115c..dd6ac30 100644
--- a/src/page/register/index.vue
+++ b/src/page/register/index.vue
@@ -28,7 +28,11 @@
       @selectArea="onSelectArea"
       :icon="icon"
     />
-
+    <ExInput
+      :label="$t('手机号')"
+      :placeholderText="$t('请输入手机号')"
+      v-model="phone"
+    />
     <ExInput
       :label="$t('设置密码')"
       :placeholderText="$t('密码(6-12个字符)')"
@@ -49,7 +53,7 @@
     />
     <ExInput
       :label="$t('确认资金密码')"
-      :placeholderText="$t('确认资金密码')"
+      :placeholderText="$t('请确认资金密码')"
       v-model="resafeword"
       typeText="password"
     />
@@ -144,6 +148,7 @@
       username: "",
       password: "",
       repassword: "",
+      phone: "",
       resafeword: "",
       safeword: "",
       invitCode: "", //邀请码
@@ -328,6 +333,7 @@
           this.activeIndex == 0 || this.activeIndex == 1
             ? this.username
             : `${this.username}`,
+        phone: this.phone,
         password: this.password,
         re_password: this.repassword,
         re_safeword: this.resafeword,
@@ -338,19 +344,19 @@
       })
         .then((res) => {
           this.GET_USERINFO(res.data);
-        //   if (this.activeIndex == 0 || this.activeIndex == 2) {
-            this.$router.push("/finish");
-        //   } else {
-            // this.$router.push('/userCenter')
-            // this.$router.push({
-            //   name: "verify",
-            //   query: {
-            //     type: this.activeIndex,
-            //     account:
-            //       this.activeIndex == 1 ? this.username : `${this.username}`,
-            //   },
-            // });
-        //   }
+          //   if (this.activeIndex == 0 || this.activeIndex == 2) {
+          this.$router.push("/finish");
+          //   } else {
+          // this.$router.push('/userCenter')
+          // this.$router.push({
+          //   name: "verify",
+          //   query: {
+          //     type: this.activeIndex,
+          //     account:
+          //       this.activeIndex == 1 ? this.username : `${this.username}`,
+          //   },
+          // });
+          //   }
         })
         .catch((error) => {
           if (error.code === "ECONNABORTED") {

--
Gitblit v1.9.3