feat: save play record using localstorage

This commit is contained in:
shinya
2025-06-19 21:00:47 +08:00
parent 660b51d9bd
commit e45feeb1a8
12 changed files with 782 additions and 112 deletions

View File

@@ -13,6 +13,7 @@ interface VideoCardProps {
source_name: string;
progress?: number;
from?: string;
currentEpisode?: number;
}
function CheckCircleCustom() {
@@ -76,6 +77,7 @@ export default function VideoCard({
source_name,
progress,
from,
currentEpisode,
}: VideoCardProps) {
const [playHover, setPlayHover] = useState(false);
const router = useRouter();
@@ -130,6 +132,15 @@ export default function VideoCard({
/>
</div>
)}
{/* 当前播放集数 */}
{currentEpisode && (
<div className='absolute top-2 left-2 w-6 h-6 bg-blue-500 rounded-full flex items-center justify-center'>
<span className='text-white text-xs font-bold'>
{currentEpisode}
</span>
</div>
)}
</div>
{/* 信息层 */}