Kaynağa Gözat

优化:布局优化

haiyang 1 hafta önce
ebeveyn
işleme
b134907447
2 değiştirilmiş dosya ile 5 ekleme ve 3 silme
  1. 3 1
      src/components/InviteItem.vue
  2. 2 2
      src/pages/my/my.vue

+ 3 - 1
src/components/InviteItem.vue

@@ -8,7 +8,7 @@
             </up-cell>
             <up-cell title="用户昵称" :value="data.nickname" />
             <up-cell title="手机号" :value="data.phone" />
-            <up-cell title="创建时间" :value="data.createTime" />
+            <up-cell title="创建时间" :value="data.createTime" :border="false" />
         </up-cell-group>
     </view>
 </template>
@@ -26,5 +26,7 @@ const props = defineProps({
 .invite-item {
     background: #ffffff;
     border-radius: 10rpx;
+    padding: 15rpx 0;
+    box-shadow: 0 0 10rpx rgba(233, 233, 233, 0.17);
 }
 </style>

+ 2 - 2
src/pages/my/my.vue

@@ -8,7 +8,7 @@ import { useShare } from '@/hooks/useShare'
 import { useUserStore } from '@/store'
 import { useInviterStore } from '@/store/inviter'
 import { useTokenStore } from '@/store/token'
-import { changtime } from '@/utils'
+import { changtime, safeAreaInsets } from '@/utils'
 import { getImageUrl } from '@/utils/imageUtil'
 
 definePage({
@@ -191,7 +191,7 @@ onShareTimeline(async () => {
 </script>
 
 <template>
-    <view class="profile-container">
+    <view class="profile-container" :style="{ height: `calc(100vh - 100rpx - ${safeAreaInsets?.bottom || 0}rpx)` }">
         <up-pull-refresh :refreshing="refreshing" :threshold="60" @refresh="onRefresh">
             <!-- 顶部区域 -->
             <view class="me-header"