|
@@ -31,7 +31,7 @@ const SHOW_DEMAND_HOVER = import.meta.env.MODE !== 'production' || getUserInfo()
|
|
|
type LoadMode = 'replace' | 'append' | 'jump';
|
|
type LoadMode = 'replace' | 'append' | 'jump';
|
|
|
|
|
|
|
|
const SOURCE_TABS: { key: string; label: string; disabled?: boolean }[] = [
|
|
const SOURCE_TABS: { key: string; label: string; disabled?: boolean }[] = [
|
|
|
- { key: '', label: '全部' },
|
|
|
|
|
|
|
+ // { key: '', label: '全部' },
|
|
|
{ key: 'prior', label: '粉丝喜欢' },
|
|
{ key: 'prior', label: '粉丝喜欢' },
|
|
|
{ key: 'posterior', label: '已发优质相似' },
|
|
{ key: 'posterior', label: '已发优质相似' },
|
|
|
{ key: 'hot', label: '票圈热门' },
|
|
{ key: 'hot', label: '票圈热门' },
|
|
@@ -131,7 +131,7 @@ const VideoSelectModal: React.FC<VideoSelectModalProps> = ({ visible, onClose, o
|
|
|
const [playingVideo, setPlayingVideo] = useState<WeVideoItem | null>(null);
|
|
const [playingVideo, setPlayingVideo] = useState<WeVideoItem | null>(null);
|
|
|
const [viewingPage, setViewingPage] = useState(1);
|
|
const [viewingPage, setViewingPage] = useState(1);
|
|
|
const [pageAnchors, setPageAnchors] = useState<Map<number, number>>(new Map()); // videoId -> page
|
|
const [pageAnchors, setPageAnchors] = useState<Map<number, number>>(new Map()); // videoId -> page
|
|
|
- const [source, setSource] = useState<string>(''); // 测试入口:数据来源筛选(prior/posterior/hot/空)
|
|
|
|
|
|
|
+ const [source, setSource] = useState<string>('prior'); // 测试入口:数据来源筛选(prior/posterior/hot/空)
|
|
|
const observerRef = useRef<IntersectionObserver | null>(null);
|
|
const observerRef = useRef<IntersectionObserver | null>(null);
|
|
|
const pageObserverRef = useRef<IntersectionObserver | null>(null);
|
|
const pageObserverRef = useRef<IntersectionObserver | null>(null);
|
|
|
const passedPagesRef = useRef<Set<number>>(new Set());
|
|
const passedPagesRef = useRef<Set<number>>(new Set());
|