Преглед изворни кода

放开粉丝喜欢/已发优质相似 Tab

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
刘立冬 пре 3 дана
родитељ
комит
70dba49859

+ 3 - 10
src/views/publishContent/weCom/components/videoSelectModal/index.tsx

@@ -15,7 +15,6 @@ import {
 	Tabs,
 	Popover,
 	Descriptions,
-	Tooltip,
 } from 'antd';
 import { CheckCircleFilled, CaretRightFilled, HeartOutlined, HistoryOutlined, FireOutlined } from '@ant-design/icons';
 import { VideoListResponse } from '@src/views/publishContent/weGZH/components/types';
@@ -32,8 +31,8 @@ type LoadMode = 'replace' | 'append' | 'jump';
 
 const SOURCE_TABS: { key: string; label: string; disabled?: boolean }[] = [
 	{ key: '', label: '全部' },
-	{ key: 'prior', label: '粉丝喜欢', disabled: true },
-	{ key: 'posterior', label: '已发优质相似', disabled: true },
+	{ key: 'prior', label: '粉丝喜欢' },
+	{ key: 'posterior', label: '已发优质相似' },
 	{ key: 'hot', label: '票圈热门' },
 ];
 const SOURCE_LABEL: Record<string, string> = { prior: '粉丝喜欢', posterior: '已发优质相似', hot: '票圈热门' };
@@ -393,13 +392,7 @@ const VideoSelectModal: React.FC<VideoSelectModalProps> = ({ visible, onClose, o
 				<Tabs
 					activeKey={source}
 					onChange={handleChangeSource}
-					items={SOURCE_TABS.map(t => ({
-						key: t.key,
-						disabled: t.disabled,
-						label: t.disabled
-							? <Tooltip title="功能正在完善中"><span>{t.label}</span></Tooltip>
-							: t.label,
-					}))}
+					items={SOURCE_TABS.map(t => ({ key: t.key, label: t.label }))}
 					className="!mb-3"
 				/>
 				<div className="flex flex-wrap gap-2 mb-6">

+ 3 - 10
src/views/publishContent/weGZH/components/videoSelectModal/index.tsx

@@ -15,7 +15,6 @@ import {
 	Tabs,
 	Popover,
 	Descriptions,
-	Tooltip,
 } from 'antd';
 import { CheckCircleFilled, CaretRightFilled, HeartOutlined, HistoryOutlined, FireOutlined } from '@ant-design/icons';
 import { VideoItem, VideoListResponse } from '../types';
@@ -33,8 +32,8 @@ type LoadMode = 'replace' | 'append' | 'jump';
 
 const SOURCE_TABS: { key: string; label: string; disabled?: boolean }[] = [
 	{ key: '', label: '全部' },
-	{ key: 'prior', label: '粉丝喜欢', disabled: true },
-	{ key: 'posterior', label: '已发优质相似', disabled: true },
+	{ key: 'prior', label: '粉丝喜欢' },
+	{ key: 'posterior', label: '已发优质相似' },
 	{ key: 'hot', label: '票圈热门' },
 ];
 const SOURCE_LABEL: Record<string, string> = { prior: '粉丝喜欢', posterior: '已发优质相似', hot: '票圈热门' };
@@ -394,13 +393,7 @@ const VideoSelectModal: React.FC<VideoSelectModalProps> = ({ planType, visible,
 				<Tabs
 					activeKey={source}
 					onChange={handleChangeSource}
-					items={SOURCE_TABS.map(t => ({
-						key: t.key,
-						disabled: t.disabled,
-						label: t.disabled
-							? <Tooltip title="功能正在完善中"><span>{t.label}</span></Tooltip>
-							: t.label,
-					}))}
+					items={SOURCE_TABS.map(t => ({ key: t.key, label: t.label }))}
 					className="!mb-3"
 				/>
 				<div className="flex flex-wrap gap-2 mb-6">