2026-03-16 14:24:32 +08:00
|
|
|
|
import React, { useState, useEffect, useRef } from "react";
|
2026-03-05 18:02:54 +08:00
|
|
|
|
import {
|
2026-03-11 20:53:18 +08:00
|
|
|
|
View,
|
|
|
|
|
|
Text,
|
|
|
|
|
|
ScrollView,
|
2026-03-16 14:24:32 +08:00
|
|
|
|
FlatList,
|
2026-03-11 20:53:18 +08:00
|
|
|
|
StyleSheet,
|
|
|
|
|
|
TouchableOpacity,
|
|
|
|
|
|
Image,
|
|
|
|
|
|
ActivityIndicator,
|
|
|
|
|
|
} from "react-native";
|
|
|
|
|
|
import { SafeAreaView } from "react-native-safe-area-context";
|
|
|
|
|
|
import { useLocalSearchParams, useRouter } from "expo-router";
|
|
|
|
|
|
import { Ionicons } from "@expo/vector-icons";
|
|
|
|
|
|
import { VideoPlayer } from "../../components/VideoPlayer";
|
|
|
|
|
|
import { CommentItem } from "../../components/CommentItem";
|
|
|
|
|
|
import { getDanmaku } from "../../services/bilibili";
|
|
|
|
|
|
import { DanmakuItem } from "../../services/types";
|
|
|
|
|
|
import DanmakuList from "../../components/DanmakuList";
|
|
|
|
|
|
import { useVideoDetail } from "../../hooks/useVideoDetail";
|
|
|
|
|
|
import { useComments } from "../../hooks/useComments";
|
|
|
|
|
|
import { useVideoStore } from "../../store/videoStore";
|
|
|
|
|
|
import { formatCount } from "../../utils/format";
|
|
|
|
|
|
import { proxyImageUrl } from "../../utils/imageUrl";
|
2026-03-05 18:02:54 +08:00
|
|
|
|
|
2026-03-16 14:24:32 +08:00
|
|
|
|
type Tab = "intro" | "comments" | "danmaku";
|
2026-03-05 18:02:54 +08:00
|
|
|
|
|
|
|
|
|
|
export default function VideoDetailScreen() {
|
|
|
|
|
|
const { bvid } = useLocalSearchParams<{ bvid: string }>();
|
|
|
|
|
|
const router = useRouter();
|
2026-03-11 20:53:18 +08:00
|
|
|
|
const {
|
|
|
|
|
|
video,
|
|
|
|
|
|
playData,
|
|
|
|
|
|
loading: videoLoading,
|
|
|
|
|
|
qualities,
|
|
|
|
|
|
currentQn,
|
|
|
|
|
|
changeQuality,
|
|
|
|
|
|
} = useVideoDetail(bvid as string);
|
2026-03-16 14:24:32 +08:00
|
|
|
|
const [commentSort, setCommentSort] = useState<0 | 2>(2);
|
2026-03-11 20:53:18 +08:00
|
|
|
|
const {
|
|
|
|
|
|
comments,
|
|
|
|
|
|
loading: cmtLoading,
|
2026-03-16 14:24:32 +08:00
|
|
|
|
hasMore: cmtHasMore,
|
2026-03-11 20:53:18 +08:00
|
|
|
|
load: loadComments,
|
2026-03-16 14:24:32 +08:00
|
|
|
|
} = useComments(video?.aid ?? 0, commentSort);
|
|
|
|
|
|
const [tab, setTab] = useState<Tab>("intro");
|
2026-03-10 22:53:35 +08:00
|
|
|
|
const [danmakus, setDanmakus] = useState<DanmakuItem[]>([]);
|
|
|
|
|
|
const [currentTime, setCurrentTime] = useState(0);
|
2026-03-10 19:04:18 +08:00
|
|
|
|
const { setVideo, clearVideo } = useVideoStore();
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
clearVideo();
|
|
|
|
|
|
}, [bvid]);
|
2026-03-05 18:02:54 +08:00
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
if (video?.aid) loadComments();
|
2026-03-16 14:24:32 +08:00
|
|
|
|
}, [video?.aid, commentSort]);
|
2026-03-05 18:02:54 +08:00
|
|
|
|
|
2026-03-10 22:53:35 +08:00
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
if (!video?.cid) return;
|
|
|
|
|
|
getDanmaku(video.cid).then(setDanmakus);
|
|
|
|
|
|
}, [video?.cid]);
|
|
|
|
|
|
|
2026-03-10 19:04:18 +08:00
|
|
|
|
function handleMiniPlayer() {
|
|
|
|
|
|
if (video) {
|
|
|
|
|
|
setVideo(bvid as string, video.title, video.pic);
|
|
|
|
|
|
router.back();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-05 18:02:54 +08:00
|
|
|
|
return (
|
|
|
|
|
|
<SafeAreaView style={styles.safe}>
|
2026-03-16 14:24:32 +08:00
|
|
|
|
{/* TopBar */}
|
2026-03-05 18:02:54 +08:00
|
|
|
|
<View style={styles.topBar}>
|
|
|
|
|
|
<TouchableOpacity onPress={() => router.back()} style={styles.backBtn}>
|
|
|
|
|
|
<Ionicons name="chevron-back" size={24} color="#212121" />
|
|
|
|
|
|
</TouchableOpacity>
|
2026-03-11 20:53:18 +08:00
|
|
|
|
<Text style={styles.topTitle} numberOfLines={1}>
|
|
|
|
|
|
{video?.title ?? "视频详情"}
|
|
|
|
|
|
</Text>
|
2026-03-10 19:04:18 +08:00
|
|
|
|
<TouchableOpacity style={styles.miniBtn} onPress={handleMiniPlayer}>
|
|
|
|
|
|
<Ionicons name="copy-outline" size={22} color="#212121" />
|
|
|
|
|
|
</TouchableOpacity>
|
2026-03-05 18:02:54 +08:00
|
|
|
|
</View>
|
|
|
|
|
|
|
2026-03-16 14:24:32 +08:00
|
|
|
|
{/* Video player — fixed 16:9 */}
|
2026-03-10 19:04:18 +08:00
|
|
|
|
<VideoPlayer
|
|
|
|
|
|
playData={playData}
|
|
|
|
|
|
qualities={qualities}
|
|
|
|
|
|
currentQn={currentQn}
|
|
|
|
|
|
onQualityChange={changeQuality}
|
|
|
|
|
|
onMiniPlayer={handleMiniPlayer}
|
2026-03-10 21:48:23 +08:00
|
|
|
|
bvid={bvid as string}
|
|
|
|
|
|
cid={video?.cid}
|
2026-03-10 22:53:35 +08:00
|
|
|
|
danmakus={danmakus}
|
|
|
|
|
|
onTimeUpdate={setCurrentTime}
|
|
|
|
|
|
/>
|
2026-03-05 18:02:54 +08:00
|
|
|
|
|
2026-03-16 14:24:32 +08:00
|
|
|
|
{/* TabBar — sits directly below player, always visible once video loads */}
|
|
|
|
|
|
{video && (
|
|
|
|
|
|
<View style={styles.tabBar}>
|
|
|
|
|
|
<TouchableOpacity style={styles.tabItem} onPress={() => setTab("intro")}>
|
|
|
|
|
|
<Text style={[styles.tabLabel, tab === "intro" && styles.tabActive]}>
|
|
|
|
|
|
简介
|
|
|
|
|
|
</Text>
|
|
|
|
|
|
{tab === "intro" && <View style={styles.tabUnderline} />}
|
|
|
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
<TouchableOpacity style={styles.tabItem} onPress={() => setTab("comments")}>
|
|
|
|
|
|
<Text style={[styles.tabLabel, tab === "comments" && styles.tabActive]}>
|
|
|
|
|
|
评论{video.stat?.reply > 0 ? ` ${formatCount(video.stat.reply)}` : ""}
|
|
|
|
|
|
</Text>
|
|
|
|
|
|
{tab === "comments" && <View style={styles.tabUnderline} />}
|
|
|
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
<TouchableOpacity style={styles.tabItem} onPress={() => setTab("danmaku")}>
|
|
|
|
|
|
<Text style={[styles.tabLabel, tab === "danmaku" && styles.tabActive]}>
|
|
|
|
|
|
弹幕{danmakus.length > 0 ? ` ${formatCount(danmakus.length)}` : ""}
|
|
|
|
|
|
</Text>
|
|
|
|
|
|
{tab === "danmaku" && <View style={styles.tabUnderline} />}
|
|
|
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
</View>
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
{/* Tab content */}
|
|
|
|
|
|
{videoLoading ? (
|
|
|
|
|
|
<ActivityIndicator style={styles.loader} color="#00AEEC" />
|
|
|
|
|
|
) : video ? (
|
|
|
|
|
|
tab === "intro" ? (
|
|
|
|
|
|
// 简介:视频信息 + 合集 + 简介文本
|
|
|
|
|
|
<ScrollView style={styles.tabScroll} showsVerticalScrollIndicator={false}>
|
2026-03-05 18:02:54 +08:00
|
|
|
|
<View style={styles.titleSection}>
|
|
|
|
|
|
<Text style={styles.title}>{video.title}</Text>
|
|
|
|
|
|
<View style={styles.statsRow}>
|
|
|
|
|
|
<StatBadge icon="play" count={video.stat.view} />
|
|
|
|
|
|
<StatBadge icon="heart" count={video.stat.like} />
|
|
|
|
|
|
<StatBadge icon="star" count={video.stat.favorite} />
|
|
|
|
|
|
<StatBadge icon="chatbubble" count={video.stat.reply} />
|
|
|
|
|
|
</View>
|
|
|
|
|
|
</View>
|
|
|
|
|
|
<View style={styles.upRow}>
|
2026-03-11 20:53:18 +08:00
|
|
|
|
<Image
|
|
|
|
|
|
source={{ uri: proxyImageUrl(video.owner.face) }}
|
|
|
|
|
|
style={styles.avatar}
|
|
|
|
|
|
/>
|
2026-03-05 18:02:54 +08:00
|
|
|
|
<Text style={styles.upName}>{video.owner.name}</Text>
|
|
|
|
|
|
<TouchableOpacity style={styles.followBtn}>
|
|
|
|
|
|
<Text style={styles.followTxt}>+ 关注</Text>
|
|
|
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
</View>
|
2026-03-16 14:24:32 +08:00
|
|
|
|
{video.ugc_season && (
|
|
|
|
|
|
<SeasonSection
|
|
|
|
|
|
season={video.ugc_season}
|
|
|
|
|
|
currentBvid={bvid as string}
|
|
|
|
|
|
onEpisodePress={(epBvid) => router.replace(`/video/${epBvid}`)}
|
|
|
|
|
|
/>
|
|
|
|
|
|
)}
|
|
|
|
|
|
<View style={styles.descBox}>
|
|
|
|
|
|
<Text style={styles.descText}>{video.desc || "暂无简介"}</Text>
|
|
|
|
|
|
</View>
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
) : tab === "danmaku" ? (
|
|
|
|
|
|
<DanmakuList
|
|
|
|
|
|
danmakus={danmakus}
|
|
|
|
|
|
currentTime={currentTime}
|
|
|
|
|
|
visible={true}
|
|
|
|
|
|
onToggle={() => {}}
|
|
|
|
|
|
style={styles.danmakuTab}
|
|
|
|
|
|
/>
|
|
|
|
|
|
) : (
|
|
|
|
|
|
<FlatList
|
|
|
|
|
|
style={styles.tabScroll}
|
|
|
|
|
|
data={comments}
|
|
|
|
|
|
keyExtractor={(c) => String(c.rpid)}
|
|
|
|
|
|
renderItem={({ item }) => <CommentItem item={item} />}
|
|
|
|
|
|
onEndReached={() => { if (cmtHasMore && !cmtLoading) loadComments(); }}
|
|
|
|
|
|
onEndReachedThreshold={0.3}
|
|
|
|
|
|
showsVerticalScrollIndicator={false}
|
|
|
|
|
|
ListHeaderComponent={
|
|
|
|
|
|
<View style={styles.sortRow}>
|
|
|
|
|
|
<Text style={styles.sortLabel}>排序</Text>
|
|
|
|
|
|
<TouchableOpacity
|
|
|
|
|
|
style={[styles.sortBtn, commentSort === 2 && styles.sortBtnActive]}
|
|
|
|
|
|
onPress={() => setCommentSort(2)}
|
2026-03-11 20:53:18 +08:00
|
|
|
|
>
|
2026-03-16 14:24:32 +08:00
|
|
|
|
<Text style={[styles.sortBtnTxt, commentSort === 2 && styles.sortBtnTxtActive]}>热门</Text>
|
|
|
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
<TouchableOpacity
|
|
|
|
|
|
style={[styles.sortBtn, commentSort === 0 && styles.sortBtnActive]}
|
|
|
|
|
|
onPress={() => setCommentSort(0)}
|
2026-03-11 20:53:18 +08:00
|
|
|
|
>
|
2026-03-16 14:24:32 +08:00
|
|
|
|
<Text style={[styles.sortBtnTxt, commentSort === 0 && styles.sortBtnTxtActive]}>最新</Text>
|
|
|
|
|
|
</TouchableOpacity>
|
2026-03-05 18:02:54 +08:00
|
|
|
|
</View>
|
2026-03-16 14:24:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
ListFooterComponent={
|
|
|
|
|
|
cmtLoading ? (
|
|
|
|
|
|
<ActivityIndicator style={styles.loader} color="#00AEEC" />
|
|
|
|
|
|
) : !cmtHasMore && comments.length > 0 ? (
|
|
|
|
|
|
<Text style={styles.emptyTxt}>已加载全部评论</Text>
|
|
|
|
|
|
) : null
|
|
|
|
|
|
}
|
|
|
|
|
|
ListEmptyComponent={
|
|
|
|
|
|
!cmtLoading ? <Text style={styles.emptyTxt}>暂无评论</Text> : null
|
|
|
|
|
|
}
|
|
|
|
|
|
/>
|
|
|
|
|
|
)
|
|
|
|
|
|
) : null}
|
2026-03-05 18:02:54 +08:00
|
|
|
|
</SafeAreaView>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function StatBadge({ icon, count }: { icon: string; count: number }) {
|
|
|
|
|
|
return (
|
|
|
|
|
|
<View style={styles.stat}>
|
|
|
|
|
|
<Ionicons name={icon as any} size={14} color="#999" />
|
|
|
|
|
|
<Text style={styles.statText}>{formatCount(count)}</Text>
|
|
|
|
|
|
</View>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-16 14:24:32 +08:00
|
|
|
|
function SeasonSection({
|
|
|
|
|
|
season,
|
|
|
|
|
|
currentBvid,
|
|
|
|
|
|
onEpisodePress,
|
|
|
|
|
|
}: {
|
|
|
|
|
|
season: NonNullable<import("../../services/types").VideoItem["ugc_season"]>;
|
|
|
|
|
|
currentBvid: string;
|
|
|
|
|
|
onEpisodePress: (bvid: string) => void;
|
|
|
|
|
|
}) {
|
|
|
|
|
|
const episodes = season.sections?.[0]?.episodes ?? [];
|
|
|
|
|
|
const currentIndex = episodes.findIndex((ep) => ep.bvid === currentBvid);
|
|
|
|
|
|
const listRef = useRef<FlatList>(null);
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
if (currentIndex <= 0 || episodes.length === 0) return;
|
|
|
|
|
|
// 等布局完成再滚动
|
2026-03-16 21:13:26 +08:00
|
|
|
|
const t = setTimeout(() => {
|
2026-03-16 14:24:32 +08:00
|
|
|
|
listRef.current?.scrollToIndex({
|
|
|
|
|
|
index: currentIndex,
|
|
|
|
|
|
viewPosition: 0.5, // 居中
|
|
|
|
|
|
animated: false,
|
|
|
|
|
|
});
|
2026-03-16 21:13:26 +08:00
|
|
|
|
}, 200);
|
|
|
|
|
|
return () => clearTimeout(t);
|
2026-03-16 14:24:32 +08:00
|
|
|
|
}, [currentIndex, episodes.length]);
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
<View style={styles.seasonBox}>
|
|
|
|
|
|
<View style={styles.seasonHeader}>
|
|
|
|
|
|
<Text style={styles.seasonTitle}>合集 · {season.title}</Text>
|
|
|
|
|
|
<Text style={styles.seasonCount}>{season.ep_count}个视频</Text>
|
|
|
|
|
|
<Ionicons name="chevron-forward" size={14} color="#999" />
|
|
|
|
|
|
</View>
|
|
|
|
|
|
<FlatList
|
|
|
|
|
|
ref={listRef}
|
|
|
|
|
|
horizontal
|
|
|
|
|
|
showsHorizontalScrollIndicator={false}
|
|
|
|
|
|
data={episodes}
|
|
|
|
|
|
keyExtractor={(ep) => ep.bvid}
|
|
|
|
|
|
contentContainerStyle={{ paddingHorizontal: 12, gap: 10 }}
|
|
|
|
|
|
// 每个卡片宽 120,gap 10,让 FlatList 直接算任意索引的偏移量
|
|
|
|
|
|
getItemLayout={(_data, index) => ({
|
|
|
|
|
|
length: 130,
|
|
|
|
|
|
offset: 12 + index * 130,
|
|
|
|
|
|
index,
|
|
|
|
|
|
})}
|
|
|
|
|
|
onScrollToIndexFailed={() => {}}
|
|
|
|
|
|
renderItem={({ item: ep, index }) => {
|
|
|
|
|
|
const isCurrent = ep.bvid === currentBvid;
|
|
|
|
|
|
return (
|
|
|
|
|
|
<TouchableOpacity
|
|
|
|
|
|
style={[styles.epCard, isCurrent && styles.epCardActive]}
|
|
|
|
|
|
onPress={() => !isCurrent && onEpisodePress(ep.bvid)}
|
|
|
|
|
|
activeOpacity={0.8}
|
|
|
|
|
|
>
|
|
|
|
|
|
{ep.arc?.pic && (
|
|
|
|
|
|
<Image
|
|
|
|
|
|
source={{ uri: proxyImageUrl(ep.arc.pic) }}
|
|
|
|
|
|
style={styles.epThumb}
|
|
|
|
|
|
/>
|
|
|
|
|
|
)}
|
|
|
|
|
|
<Text style={[styles.epNum, isCurrent && styles.epNumActive]}>
|
|
|
|
|
|
第{index + 1}集
|
|
|
|
|
|
</Text>
|
|
|
|
|
|
<Text style={styles.epTitle} numberOfLines={2}>
|
|
|
|
|
|
{ep.title}
|
|
|
|
|
|
</Text>
|
|
|
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
);
|
|
|
|
|
|
}}
|
|
|
|
|
|
/>
|
|
|
|
|
|
</View>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-05 18:02:54 +08:00
|
|
|
|
const styles = StyleSheet.create({
|
2026-03-11 20:53:18 +08:00
|
|
|
|
safe: { flex: 1, backgroundColor: "#fff" },
|
|
|
|
|
|
topBar: {
|
|
|
|
|
|
flexDirection: "row",
|
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
|
paddingHorizontal: 8,
|
|
|
|
|
|
paddingVertical: 8,
|
|
|
|
|
|
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
|
|
|
|
borderBottomColor: "#eee",
|
|
|
|
|
|
},
|
2026-03-05 18:02:54 +08:00
|
|
|
|
backBtn: { padding: 4 },
|
2026-03-11 20:53:18 +08:00
|
|
|
|
topTitle: {
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
fontSize: 15,
|
|
|
|
|
|
fontWeight: "600",
|
|
|
|
|
|
marginLeft: 4,
|
|
|
|
|
|
color: "#212121",
|
|
|
|
|
|
},
|
2026-03-10 19:04:18 +08:00
|
|
|
|
miniBtn: { padding: 4 },
|
2026-03-05 18:02:54 +08:00
|
|
|
|
loader: { marginVertical: 30 },
|
|
|
|
|
|
titleSection: { padding: 14 },
|
2026-03-11 20:53:18 +08:00
|
|
|
|
title: {
|
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
|
fontWeight: "600",
|
|
|
|
|
|
color: "#212121",
|
|
|
|
|
|
lineHeight: 22,
|
|
|
|
|
|
marginBottom: 8,
|
|
|
|
|
|
},
|
|
|
|
|
|
statsRow: { flexDirection: "row", gap: 16 },
|
|
|
|
|
|
stat: { flexDirection: "row", alignItems: "center", gap: 3 },
|
|
|
|
|
|
statText: { fontSize: 12, color: "#999" },
|
|
|
|
|
|
upRow: {
|
|
|
|
|
|
flexDirection: "row",
|
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
|
paddingHorizontal: 14,
|
|
|
|
|
|
paddingBottom: 12,
|
|
|
|
|
|
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
|
|
|
|
borderBottomColor: "#f0f0f0",
|
|
|
|
|
|
},
|
2026-03-05 18:02:54 +08:00
|
|
|
|
avatar: { width: 38, height: 38, borderRadius: 19, marginRight: 10 },
|
2026-03-11 20:53:18 +08:00
|
|
|
|
upName: { flex: 1, fontSize: 14, color: "#212121", fontWeight: "500" },
|
|
|
|
|
|
followBtn: {
|
|
|
|
|
|
backgroundColor: "#00AEEC",
|
|
|
|
|
|
paddingHorizontal: 14,
|
|
|
|
|
|
paddingVertical: 5,
|
|
|
|
|
|
borderRadius: 14,
|
|
|
|
|
|
},
|
|
|
|
|
|
followTxt: { color: "#fff", fontSize: 12, fontWeight: "600" },
|
2026-03-16 14:24:32 +08:00
|
|
|
|
seasonBox: {
|
|
|
|
|
|
borderTopWidth: StyleSheet.hairlineWidth,
|
|
|
|
|
|
borderTopColor: "#f0f0f0",
|
|
|
|
|
|
paddingVertical: 10,
|
|
|
|
|
|
},
|
|
|
|
|
|
seasonHeader: {
|
|
|
|
|
|
flexDirection: "row",
|
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
|
paddingHorizontal: 14,
|
|
|
|
|
|
paddingBottom: 8,
|
|
|
|
|
|
gap: 4,
|
|
|
|
|
|
},
|
|
|
|
|
|
seasonTitle: { flex: 1, fontSize: 13, fontWeight: "600", color: "#212121" },
|
|
|
|
|
|
seasonCount: { fontSize: 12, color: "#999" },
|
|
|
|
|
|
epCard: {
|
|
|
|
|
|
width: 120,
|
|
|
|
|
|
borderRadius: 6,
|
|
|
|
|
|
overflow: "hidden",
|
|
|
|
|
|
backgroundColor: "#f8f8f8",
|
|
|
|
|
|
borderWidth: 1.5,
|
|
|
|
|
|
borderColor: "transparent",
|
|
|
|
|
|
},
|
|
|
|
|
|
epCardActive: { borderColor: "#00AEEC" },
|
|
|
|
|
|
epThumb: { width: 120, height: 68, backgroundColor: "#eee" },
|
|
|
|
|
|
epNum: { fontSize: 11, color: "#999", paddingHorizontal: 6, paddingTop: 4 },
|
|
|
|
|
|
epNumActive: { color: "#00AEEC", fontWeight: "600" },
|
|
|
|
|
|
epTitle: {
|
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
|
color: "#333",
|
|
|
|
|
|
paddingHorizontal: 6,
|
|
|
|
|
|
paddingBottom: 6,
|
|
|
|
|
|
lineHeight: 16,
|
|
|
|
|
|
},
|
2026-03-11 20:53:18 +08:00
|
|
|
|
tabBar: {
|
|
|
|
|
|
flexDirection: "row",
|
|
|
|
|
|
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
|
|
|
|
borderBottomColor: "#eee",
|
|
|
|
|
|
},
|
|
|
|
|
|
tabItem: {
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
|
paddingVertical: 12,
|
|
|
|
|
|
position: "relative",
|
|
|
|
|
|
},
|
|
|
|
|
|
tabLabel: { fontSize: 14, color: "#999" },
|
|
|
|
|
|
tabActive: { color: "#00AEEC", fontWeight: "700" },
|
|
|
|
|
|
tabUnderline: {
|
|
|
|
|
|
position: "absolute",
|
|
|
|
|
|
bottom: 0,
|
|
|
|
|
|
width: 24,
|
|
|
|
|
|
height: 2,
|
|
|
|
|
|
backgroundColor: "#00AEEC",
|
|
|
|
|
|
borderRadius: 1,
|
|
|
|
|
|
},
|
2026-03-16 14:24:32 +08:00
|
|
|
|
tabScroll: { flex: 1 },
|
2026-03-05 18:02:54 +08:00
|
|
|
|
descBox: { padding: 16 },
|
2026-03-11 20:53:18 +08:00
|
|
|
|
descText: { fontSize: 14, color: "#555", lineHeight: 22 },
|
2026-03-16 14:24:32 +08:00
|
|
|
|
danmakuTab: { flex: 1 },
|
2026-03-11 20:53:18 +08:00
|
|
|
|
emptyTxt: { textAlign: "center", color: "#bbb", padding: 30 },
|
2026-03-16 14:24:32 +08:00
|
|
|
|
sortRow: {
|
|
|
|
|
|
flexDirection: "row",
|
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
|
paddingHorizontal: 14,
|
|
|
|
|
|
paddingVertical: 10,
|
|
|
|
|
|
gap: 8,
|
|
|
|
|
|
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
|
|
|
|
borderBottomColor: "#f0f0f0",
|
|
|
|
|
|
},
|
|
|
|
|
|
sortLabel: { fontSize: 13, color: "#999", marginRight: 4 },
|
|
|
|
|
|
sortBtn: {
|
2026-03-16 21:13:26 +08:00
|
|
|
|
paddingHorizontal: 14,
|
|
|
|
|
|
paddingVertical: 3,
|
|
|
|
|
|
borderRadius: 20,
|
2026-03-16 14:24:32 +08:00
|
|
|
|
borderWidth: 1,
|
|
|
|
|
|
borderColor: "#e0e0e0",
|
|
|
|
|
|
},
|
|
|
|
|
|
sortBtnActive: { borderColor: "#00AEEC", backgroundColor: "#e8f7fd" },
|
|
|
|
|
|
sortBtnTxt: { fontSize: 12, color: "#666" },
|
|
|
|
|
|
sortBtnTxtActive: { color: "#00AEEC", fontWeight: "600" as const },
|
2026-03-05 18:02:54 +08:00
|
|
|
|
});
|