| | |
| | | ></span> |
| | | </div> |
| | | <div class="pop_up actived" v-show="state.isShowExitLogin"> |
| | | <div class="exit" @click="informationClick"><i class="ywifont ywicon-wode"></i> 我的信息</div> |
| | | <div class="exit" @click="logoutClick"><i class="ywifont ywicon-tuichu"></i> 退出登录</div> |
| | | </div> |
| | | </div> |
| | |
| | | <span class="text-stone-100 font-medium text-center">登录 / 注册</span> |
| | | </div> |
| | | </div> |
| | | <UserInformation v-model="userInformationVisible" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { accessSessionKey, userNameKey } from '/@/utils/request'; |
| | | import { gotoRoute } from '/@/utils/route'; |
| | | import { Local, LoginInfo } from '/@/utils/storage'; |
| | | import UserInformation from './UserInformation.vue'; |
| | | const userName = ref(''); |
| | | const firstUserCharacter = computed(() => userName.value?.[0]?.toUpperCase()); |
| | | isLoginStatus.value = !!Local.get(accessSessionKey); |
| | |
| | | state.isShowExitLogin = false; |
| | | } |
| | | }; |
| | | |
| | | //#region ====================== 我的信息 ====================== |
| | | const userInformationVisible = ref(false); |
| | | const informationClick = () => { |
| | | userInformationVisible.value = true; |
| | | }; |
| | | //#endregion |
| | | onMounted(() => { |
| | | emitter.on('openLoginDlg', () => { |
| | | if (isShowLogin.value || isLoginStatus.value) return; |
| | |
| | | } |
| | | } |
| | | .actived { |
| | | top: -60px !important; |
| | | bottom: 60px !important; |
| | | } |
| | | } |
| | | .user_login { |