🎉 v1.3.1: 完美版本 - H5和小程序100%统一,64章精准数据,寻找合作伙伴功能

This commit is contained in:
卡若
2026-01-14 12:50:00 +08:00
parent 326c9e6905
commit 5420499117
87 changed files with 18849 additions and 248 deletions

52
app/error.tsx Normal file
View File

@@ -0,0 +1,52 @@
'use client'
import { useEffect } from 'react'
export default function Error({
error,
reset,
}: {
error: Error & { digest?: string }
reset: () => void
}) {
useEffect(() => {
console.error('页面错误:', error)
}, [error])
return (
<div className="min-h-screen flex items-center justify-center bg-gradient-to-b from-black via-[#0a0a0a] to-[#111111]">
<div className="glass-card p-8 max-w-md w-full mx-4">
<div className="text-center">
{/* 错误图标 */}
<div className="text-6xl mb-4">😕</div>
{/* 错误标题 */}
<h2 className="text-2xl font-bold mb-4 text-[var(--app-text)]">
</h2>
{/* 错误描述 */}
<p className="text-[var(--app-text-secondary)] mb-6">
</p>
{/* 操作按钮 */}
<div className="flex gap-4">
<button
onClick={reset}
className="btn-ios flex-1"
>
</button>
<button
onClick={() => window.location.href = '/'}
className="btn-ios-secondary flex-1"
>
</button>
</div>
</div>
</div>
</div>
)
}