| | |
| | | </span> |
| | | </div> |
| | | |
| | | <div class="flex re-tab"> |
| | | <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 style="padding-bottom:16px !important;" :placeholderText="getRegType(activeIndex, false)" |
| | | v-model="username" :dialCode="dialCode" @selectArea="onSelectArea" :area="isArea" :icon="icon" |
| | | @pressEnter="verifyLogin" /> |
| | |
| | | |
| | | let username = ref('') |
| | | let password = ref('') |
| | | let activeIndex = ref(0) |
| | | let activeIndex = ref(1) |
| | | let isArea = ref(false) |
| | | let dialCode = ref(0) |
| | | let icon = ref('') |
| | |
| | | _loginUser({ |
| | | userName: (activeIndex.value == 0 || activeIndex.value == 1) ? username.value : `${dialCode.value}${username.value}`, |
| | | passWord: password.value, |
| | | type: type.value |
| | | // type: type.value |
| | | type: '3' // 写死, 算所有的登录都是账户登录 |
| | | }).then((res) => { |
| | | userStore[GET_USERINFO](res) |
| | | store.commit('user/SET_USERINFO', res) |
| | |
| | | background: $mainbgWhiteColor; |
| | | min-height: 100vh; |
| | | |
| | | .re-tab { |
| | | margin-bottom: 22px; |
| | | |
| | | div { |
| | | padding: 0 18px; |
| | | height: 34px; |
| | | line-height: 34px; |
| | | text-align: center; |
| | | border-radius: 4px; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .active { |
| | | // background: $US_tabActice_background; |
| | | background: $bg_yellow; |
| | | // color: $color_main; |
| | | color: $text_color4; |
| | | } |
| | | } |
| | | |
| | | :deep(.textColor) { |
| | | color: $log-c; |
| | | } |