fix
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 4m27s
Docker Build & Deploy / Deploy to Production (push) Successful in 7s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s

This commit is contained in:
SunCheng
2026-02-11 13:00:01 +08:00
parent ca3e929770
commit 51172e8c5a
88 changed files with 10076 additions and 142 deletions

View File

@@ -101,8 +101,7 @@ const router = useRouter()
// 底部导航栏
const activeTab = ref('calendar')
const handleTabClick = (item, index) => {
console.log('Tab clicked:', item.name, index)
const handleTabClick = () => {
// 导航逻辑已在组件内部处理
}
@@ -212,7 +211,14 @@ const onDatePickerConfirm = ({ selectedValues }) => {
// 更新日期
currentDate.value = newDate
selectedDate.value = newDate
// 判断是否选择了当前月(复用上面的 today 变量)
const isCurrentMonth = newDate.getFullYear() === today.getFullYear() &&
newDate.getMonth() === today.getMonth()
// 如果选择的是当前月,选中今天;否则选中该月第一天
selectedDate.value = isCurrentMonth ? today : newDate
calendarKey.value += 1
showDatePicker.value = false
}
@@ -258,9 +264,16 @@ const changeMonth = async (offset) => {
currentDate.value = newDate
// 根据切换方向选择合适的日期
// 判断是否切换到当前月(复用上面的 today 变量)
const isCurrentMonth = newDate.getFullYear() === today.getFullYear() &&
newDate.getMonth() === today.getMonth()
// 根据切换方向和是否为当前月选择合适的日期
let newSelectedDate
if (offset > 0) {
if (isCurrentMonth) {
// 如果切换到当前月,选中今天
newSelectedDate = today
} else if (offset > 0) {
// 切换到下个月,选中下个月的第一天
newSelectedDate = new Date(newDate.getFullYear(), newDate.getMonth(), 1)
} else {
@@ -387,8 +400,8 @@ onBeforeUnmount(() => {
background-color: var(--bg-primary);
}
/* 底部安全距离 */
/* 底部安全距离 - 匹配底部导航栏高度 */
.bottom-spacer {
height: calc(60px + env(safe-area-inset-bottom, 0px));
height: calc(95px + env(safe-area-inset-bottom, 0px));
}
</style>