12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <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 cursor-pointer border-bottom-primary" @click.stop="showEdit = true">修改密码</span>
- </div>
- <div class="editPageBox">
- <editPasswordPage
- v-if="showEdit"
- :phone="userInfo.phone"
- @cancel="showEdit = false"
- class="editPage"
- ></editPasswordPage>
- </div>
- </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;
- }
- .editPageBox {
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .editPage {
- // display: flex;
- // justify-content: center;
- // align-items: center;
- width: 450px;
- height: 450px;
- }
- </style>
|