From a56c51ca08d7e8de00a22a3128ddce447c409079 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Thu, 27 Jun 2024 10:15:11 +0800
Subject: [PATCH] 123
---
src/views/login/index.vue | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 7f61fd7..66eb2d4 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -38,12 +38,12 @@
changeType == 0
? t("youxiang")
: changeType == 1
- ? t("shoujihao")
+ ? t("zhanghao")
: t("zhanghao")
}}
</div>
<!-- 手机号 -->
- <div class="css-hiy16i" v-if="changeType == 1">
+ <div class="css-hiy16i" v-if="changeType == 2">
<div class="css-4cffwv">
<div class="border-countrycode" @click="tansferSelecCoun">
+ {{ countryCodeStore.code }}
@@ -71,7 +71,7 @@
</el-input>
</div>
<!-- 账号 -->
- <div class="css-hiy16i" v-else-if="changeType == 2">
+ <div class="css-hiy16i" v-else-if="changeType == 1">
<el-input
autocomplete="off"
type="email"
@@ -154,8 +154,9 @@
const userStore = useUserStore();
const countryCodeStore = useCountryCodeStore();
const router = useRouter();
-const arrType = [t("youxiang"), t("shoujihao"), t("zhanghao")];
-const changeType = ref(2);
+// const arrType = [t("youxiang"), t("shoujihao"), t("zhanghao")];
+const arrType = [t("youxiang"), t("zhanghao")];
+const changeType = ref(1);
const showverify = ref(false);
const selectCountryRef = ref(null);
const emailPd = ref({
@@ -194,9 +195,9 @@
password: pwd,
};
showverify.value = true;
- if (changeType.value == 1) {
- data = { username: countryCodeStore.code + account, password: pwd };
- }
+ // if (changeType.value == 1) {
+ // data = { username: countryCodeStore.code + account, password: pwd };
+ // }
if (data.username && data.password) {
Axios.login({
...data,
--
Gitblit v1.9.3