1
jhzh
2024-08-12 f1dc8f5a7f3a661ce19513a9ad47fe18e3e883ff
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,