|
|
@@ -1,4 +1,5 @@
|
|
|
<template>
|
|
|
+ <CustomNav title="个人中心" />
|
|
|
<view class="profile-container">
|
|
|
<view class="header">
|
|
|
<view class="avatar-section">
|
|
|
@@ -42,6 +43,7 @@ import { ref } from 'vue'
|
|
|
import { computed } from 'vue'
|
|
|
import { onShow } from '@dcloudio/uni-app'
|
|
|
import PageTitle from '@/components/PageTitle.vue'
|
|
|
+import CustomNav from '@/components/CustomNav.vue'
|
|
|
|
|
|
const title = ref('个人中心')
|
|
|
|
|
|
@@ -114,6 +116,7 @@ const onLogout = () => {
|
|
|
.profile-container {
|
|
|
min-height: 100vh;
|
|
|
background-color: #f5f5f5;
|
|
|
+ padding-top: calc(var(--status-bar-height) + 44px);
|
|
|
padding-bottom: 100rpx; /* 给底边栏留空间 */
|
|
|
}
|
|
|
|
|
|
@@ -139,28 +142,6 @@ const onLogout = () => {
|
|
|
margin-right: 30rpx;
|
|
|
}
|
|
|
|
|
|
-.custom-nav {
|
|
|
- position: fixed;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- top: 0;
|
|
|
- height: 88rpx;
|
|
|
- padding-top: constant(safe-area-inset-top);
|
|
|
- padding-top: env(safe-area-inset-top);
|
|
|
- background-color: #fff;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- z-index: 1000;
|
|
|
- border-bottom: 1rpx solid #eee;
|
|
|
-}
|
|
|
-
|
|
|
-.nav-title {
|
|
|
- font-size: 34rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #333;
|
|
|
-}
|
|
|
-
|
|
|
.avatar-frame {
|
|
|
width: 100%;
|
|
|
height: 100%;
|