修复日程提醒功能

This commit is contained in:
2026-07-20 11:41:39 +08:00
parent 7ab6958538
commit f00ba9f9cc
19 changed files with 1735 additions and 1725 deletions
+18 -68
View File
@@ -1,17 +1,8 @@
<template>
<view class="page">
<view class="header">
<view class="header-row">
<view class="user-info">
<text class="greeting">{{ greeting }}</text>
<text class="username">{{ user?.nickname || '云泽用户' }}</text>
</view>
<view class="avatar">
<text class="avatar-text">{{ avatarText }}</text>
</view>
</view>
<view class="search-bar">
<FaIcon name="magnifying-glass" color="#909399" :size="16" />
<FaIcon name="magnifying-glass" color="#ffffff" :size="16" />
<text class="search-text">搜索功能数据...</text>
</view>
</view>
@@ -84,18 +75,6 @@ import AppTabbar from '@/components/AppTabbar.vue'
const user = ref(null)
const greeting = computed(() => {
const hour = new Date().getHours()
if (hour < 12) return '早上好'
if (hour < 18) return '下午好'
return '晚上好'
})
const avatarText = computed(() => {
const name = user.value?.nickname || '云'
return name.charAt(0).toUpperCase()
})
const noteCount = ref(0)
const scheduleCount = ref(0)
const schedulePending = ref(0)
@@ -199,60 +178,25 @@ function onActivityTap(item) {
.header {
flex-shrink: 0;
padding: calc(var(--status-bar-height, 44px) + 20rpx) $page-padding-x 24rpx;
background: $color-card;
box-shadow: $shadow-header;
}
.header-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 28rpx;
}
.greeting {
display: block;
font-size: 26rpx;
color: $color-text-muted;
}
.username {
display: block;
font-size: 40rpx;
font-weight: 600;
color: $color-text;
margin-top: 4rpx;
}
.avatar {
width: 88rpx;
height: 88rpx;
border-radius: 50%;
background: $color-primary-bg;
display: flex;
align-items: center;
justify-content: center;
}
.avatar-text {
font-size: 34rpx;
font-weight: 600;
color: $color-primary;
padding: calc(var(--status-bar-height, 44px) + 20rpx) $page-padding-x 20rpx;
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
box-shadow: 0 4rpx 16rpx rgba(79, 172, 254, 0.15);
position: relative;
}
.search-bar {
display: flex;
align-items: center;
gap: 16rpx;
background: $color-bg-page;
border-radius: $radius-md;
padding: 20rpx 24rpx;
background: rgba(255, 255, 255, 0.2);
border-radius: $radius-full;
padding: 16rpx 24rpx;
border: 1rpx solid rgba(255, 255, 255, 0.3);
}
.search-text {
font-size: 28rpx;
color: $color-text-muted;
color: rgba(255, 255, 255, 0.7);
}
.main-scroll {
@@ -344,8 +288,14 @@ function onActivityTap(item) {
}
.quick-icon {
@include icon-box(88rpx);
border-radius: $radius-lg;
width: 88rpx;
height: 88rpx;
border-radius: 12rpx;
background: linear-gradient(135deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.quick-name {