| | |
| | | <template> |
| | | <div class="login"> |
| | | <van-loading color="#1194F7" class="loading-box" v-if="isLoading" /> |
| | | <van-loading color="#1194F7" class="loading-box" v-if="isLoading"/> |
| | | <div class="top" @click="onRoute('/my/index')"><img src="../../assets/image/icon-close.png" alt="" /></div> |
| | | <div class="title textColor">{{ $t('login') }}</div> |
| | | <div class="flex login-tab"> |
| | | <!-- <div class="textColor1" :class="activeIndex == 0 ? 'active' : ''" @click="changeIndex(0)">{{ |
| | | <div class="textColor1" :class="activeIndex == 0 ? 'active' : ''" @click="changeIndex(0)">{{ |
| | | $t('account') |
| | | }} |
| | | </div> --> |
| | | <div class="textColor1" :class="activeIndex == 2 ? 'active' : ''" @click="changeIndex(2)">{{ |
| | | $t('phoneNum') |
| | | }} |
| | | </div> |
| | | <div class="textColor1" :class="activeIndex == 1 ? 'active' : ''" @click="changeIndex(1)">{{ $t('email') }} |
| | | </div> |
| | | <div class="textColor1" :class="activeIndex == 2 ? 'active' : ''" @click="changeIndex(2)">{{ |
| | | $t('phoneNum') |
| | | }} |
| | | </div> |
| | | </div> |
| | | <ExInput :label="getRegType(activeIndex, true)" :placeholderText="getRegType(activeIndex, false)" |
| | | v-model="username" :dialCode="dialCode" @selectArea="onSelectArea" :area="isArea" :icon="icon" /> |
| | | <ExInput :label="getRegType(activeIndex, true)" :placeholderText="getRegType(activeIndex, false)" v-model="username" |
| | | :dialCode="dialCode" @selectArea="onSelectArea" :area="isArea" :icon="icon" /> |
| | | <ExInput style="padding-bottom:0!important;" :label="$t('password')" :placeholderText="$t('entryPassword')" |
| | | v-model="password" typeText="password" /> |
| | | <div class="forget colorMain" @click="$router.push('/forget')">{{ $t('forgetPassword') }}</div> |
| | |
| | | |
| | | let username = ref('') |
| | | let password = ref('') |
| | | let activeIndex = ref(2) |
| | | let isArea = ref(true) |
| | | let activeIndex = ref(0) |
| | | let isArea = ref(false) |
| | | let dialCode = ref(0) |
| | | let icon = ref('') |
| | | const type = ref(3) |
| | |
| | | passWord: password.value, |
| | | type: type.value |
| | | }).then((res) => { |
| | | console.log("reslogin") |
| | | console.log(res) |
| | | console.log("reslogin") |
| | | console.log(res) |
| | | isLoading.value = false |
| | | userStore[GET_USERINFO](res) |
| | | store.commit('user/SET_USERINFO', res) |