1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <div style="position: relative; width: 100%; height: 100%;">
- <h3>{{ $t('setting.editPassword') }}</h3>
- <v-divider class="mb-4"></v-divider>
- <div v-if="!showEdit" class="login-user mb-4">
- 当前登录账号:
- <span>{{ userInfo.phone }}</span>
- <span class="color-primary ml-5 text-decoration-underline cursor-pointer" @click="showEdit = true">修改密码</span>
- </div>
- <editPasswordPage v-if="showEdit" :phone="userInfo.phone" @cancel="showEdit = false" class="editPage"></editPasswordPage>
- </div>
- </template>
- <script setup name="editPassword">
- import { ref } from 'vue'
- import editPasswordPage from '@/views/login/components/editPassword.vue'
- const showEdit = ref(false)
- // 当前登录的用户信息
- const userInfo = JSON.parse(localStorage.getItem('userInfo'))
- </script>
- <style lang="scss" scoped>
- h3 {
- font-size: 20px;
- text-align: left;
- font-weight: 600;
- padding-bottom: 25px;
- }
- .login-user {
- color: var(--color-666);
- font-weight: 600;
- }
- .editPage {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- </style>
|