|
@@ -16,7 +16,7 @@ import {
|
|
|
Popover,
|
|
Popover,
|
|
|
Descriptions,
|
|
Descriptions,
|
|
|
} from 'antd';
|
|
} from 'antd';
|
|
|
-import { CheckCircleFilled, CaretRightFilled, HeartOutlined, HistoryOutlined, FireOutlined, BookOutlined } from '@ant-design/icons';
|
|
|
|
|
|
|
+import { CheckCircleFilled, CaretRightFilled, HeartOutlined, HistoryOutlined, FireOutlined } from '@ant-design/icons';
|
|
|
import { VideoItem, VideoListResponse } from '../types';
|
|
import { VideoItem, VideoListResponse } from '../types';
|
|
|
import http from '@src/http';
|
|
import http from '@src/http';
|
|
|
import { getVideoContentListApi } from '@src/http/api';
|
|
import { getVideoContentListApi } from '@src/http/api';
|
|
@@ -37,15 +37,13 @@ const SOURCE_TABS: { key: string; label: string; disabled?: boolean }[] = [
|
|
|
{ key: 'prior', label: '粉丝喜欢' },
|
|
{ key: 'prior', label: '粉丝喜欢' },
|
|
|
{ key: 'posterior', label: '已发优质相似' },
|
|
{ key: 'posterior', label: '已发优质相似' },
|
|
|
{ key: 'hot', label: '票圈热门' },
|
|
{ key: 'hot', label: '票圈热门' },
|
|
|
- { key: 'selected', label: '历史已选' },
|
|
|
|
|
];
|
|
];
|
|
|
-const SOURCE_LABEL: Record<string, string> = { prior: '粉丝喜欢', posterior: '已发优质相似', hot: '票圈热门', selected: '历史已选' };
|
|
|
|
|
-const SOURCE_COLOR: Record<string, string> = { prior: 'green', posterior: 'blue', hot: 'orange', selected: 'purple' };
|
|
|
|
|
|
|
+const SOURCE_LABEL: Record<string, string> = { prior: '粉丝喜欢', posterior: '已发优质相似', hot: '票圈热门' };
|
|
|
|
|
+const SOURCE_COLOR: Record<string, string> = { prior: 'green', posterior: 'blue', hot: 'orange' };
|
|
|
const SOURCE_ICON: Record<string, React.ReactNode> = {
|
|
const SOURCE_ICON: Record<string, React.ReactNode> = {
|
|
|
prior: <HeartOutlined />,
|
|
prior: <HeartOutlined />,
|
|
|
posterior: <HistoryOutlined />,
|
|
posterior: <HistoryOutlined />,
|
|
|
hot: <FireOutlined />,
|
|
hot: <FireOutlined />,
|
|
|
- selected: <BookOutlined />,
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const DEMAND_LABEL_STYLE = { width: 120, padding: '2px 8px', whiteSpace: 'nowrap' as const, backgroundColor: '#e6f4ff' };
|
|
const DEMAND_LABEL_STYLE = { width: 120, padding: '2px 8px', whiteSpace: 'nowrap' as const, backgroundColor: '#e6f4ff' };
|
|
@@ -452,9 +450,8 @@ const VideoSelectModal: React.FC<VideoSelectModalProps> = ({ planType, visible,
|
|
|
<Select
|
|
<Select
|
|
|
placeholder="选择品类"
|
|
placeholder="选择品类"
|
|
|
style={{ width: 120 }}
|
|
style={{ width: 120 }}
|
|
|
- value={source === 'selected' ? undefined : category}
|
|
|
|
|
|
|
+ value={category}
|
|
|
allowClear
|
|
allowClear
|
|
|
- disabled={source === 'selected'}
|
|
|
|
|
onChange={setCategory}
|
|
onChange={setCategory}
|
|
|
options={videoCategoryOptions.map(option => ({ label: option, value: option }))}
|
|
options={videoCategoryOptions.map(option => ({ label: option, value: option }))}
|
|
|
/>
|
|
/>
|