From 02a3d94d359b34e915f34abec024cbc1504a6a7c Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Fri, 18 Apr 2025 11:00:14 +0800
Subject: [PATCH] feat

---
 src/views/login/register.vue |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/views/login/register.vue b/src/views/login/register.vue
index 8c1c85e..a8a590c 100644
--- a/src/views/login/register.vue
+++ b/src/views/login/register.vue
@@ -10,12 +10,18 @@
           </div>
           <!-- 选择 手机 邮箱 账户 -->
           <div class="css-62gygx">
-            <div
+            <!-- <div
               class="css-ov54vn"
               style="margin-bottom: 20px"
               v-for="(val, index) in funcArr"
               :key="index"
               @click="clickChange(index)"
+            > -->
+            <div
+              class="css-ov54vn"
+              style="margin-bottom: 20px"
+              v-for="(val, index) in funcArr"
+              :key="index"
             >
               <div
                 :class="[recordActive == index ? 'active' : '', 'css-1cahv52']"
@@ -183,7 +189,8 @@
 const countryCodeStore = useCountryCodeStore();
 const userStore = useUserStore();
 const { t } = useI18n();
-const funcArr = [t("shoujihao"), t("youxiang"), t("zhanghao")];
+// const funcArr = [t("shoujihao"), t("youxiang"), t("zhanghao")];
+const funcArr = [t("youxiang")];
 const register = ref({
   username: "",
   password: "",
@@ -196,7 +203,7 @@
 const ImageVerRef = ref(null);
 const isDisabaled = ref(false);
 const type = ref("");
-const recordActive = ref(2); //注册方式
+const recordActive = ref(1); //注册方式
 const VeriCode = ref(t("message.user.huoquyanzhengma"));
 const subPwd = ref("");
 
@@ -309,10 +316,12 @@
       Axios.resgister({
         username: account,
         password,
+        re_password: password,
         verifcode,
         usercode,
         safeword,
-        type: type.value,
+        re_safeword: safeword,
+        type: type.value || 2,
       }).then((res) => {
         // 注册成功,存储账户信息
         if (res.code == 0) {
@@ -366,6 +375,7 @@
     Axios.getVeriCode({
       target,
       areacode: "",
+      token: "b85c3b24d6174904a9f20dbc393464bb",
     }).then((res) => {
       if (res.code == "0") {
         ElMessage.success(t("yanzhengmafasongchenggong"));

--
Gitblit v1.9.3