From f1dc8f5a7f3a661ce19513a9ad47fe18e3e883ff Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Mon, 12 Aug 2024 11:47:14 +0800
Subject: [PATCH] 1
---
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