feat: add oriontv compatible interfaces

This commit is contained in:
shinya
2025-07-08 21:28:44 +08:00
parent d0966f09d6
commit 5a734b944f
6 changed files with 154 additions and 8 deletions

View File

@@ -10,7 +10,6 @@ interface DemoCardProps {
title: string;
poster: string;
rate?: string;
type?: string;
}
function PlayCircleSolid({
@@ -42,7 +41,7 @@ function PlayCircleSolid({
);
}
const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => {
const DemoCard = ({ id, title, poster, rate }: DemoCardProps) => {
const [hover, setHover] = useState(false);
const [isLoaded, setIsLoaded] = useState(false);
const router = useRouter();
@@ -50,9 +49,7 @@ const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => {
const handleClick = () => {
router.push(
`/play?title=${encodeURIComponent(
title.trim()
)}&douban_id=${id}&type=${type}`
`/play?title=${encodeURIComponent(title.trim())}&douban_id=${id}`
);
};