feat: 登录模块完成
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { useParams, useNavigate, useSearchParams } from 'react-router-dom';
|
||||
import { ArrowLeft, Plus, Users, TrendingUp, Calendar, Settings } from 'lucide-react';
|
||||
import { useParams, useNavigate } from 'react-router-dom';
|
||||
import { ArrowLeft, Plus, Users, TrendingUp, Calendar } from 'lucide-react';
|
||||
|
||||
interface Plan {
|
||||
id: string;
|
||||
@@ -26,7 +26,6 @@ interface ScenarioData {
|
||||
export default function ScenarioDetail() {
|
||||
const { scenarioId } = useParams<{ scenarioId: string }>();
|
||||
const navigate = useNavigate();
|
||||
const [searchParams] = useSearchParams();
|
||||
const [scenario, setScenario] = useState<ScenarioData | null>(null);
|
||||
const [plans, setPlans] = useState<Plan[]>([]);
|
||||
const [loading, setLoading] = useState(true);
|
||||
|
||||
@@ -17,36 +17,36 @@ export default function Scenarios() {
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [error, setError] = useState('');
|
||||
|
||||
// AI智能获客用本地 mock 数据
|
||||
const aiScenarios = [
|
||||
{
|
||||
id: "ai-friend",
|
||||
name: "AI智能加友",
|
||||
icon: "🤖",
|
||||
count: 245,
|
||||
growth: "+18.5%",
|
||||
description: "智能分析目标用户画像,自动筛选优质客户",
|
||||
path: "/scenarios/ai-friend",
|
||||
},
|
||||
{
|
||||
id: "ai-group",
|
||||
name: "AI群引流",
|
||||
icon: "🤖",
|
||||
count: 178,
|
||||
growth: "+15.2%",
|
||||
description: "智能群管理,提高群活跃度,增强获客效果",
|
||||
path: "/scenarios/ai-group",
|
||||
},
|
||||
{
|
||||
id: "ai-conversion",
|
||||
name: "AI场景转化",
|
||||
icon: "🤖",
|
||||
count: 134,
|
||||
growth: "+12.8%",
|
||||
description: "多场景智能营销,提升获客转化率",
|
||||
path: "/scenarios/ai-conversion",
|
||||
},
|
||||
];
|
||||
// AI智能获客用本地 mock 数据(暂时注释掉,可以后续启用)
|
||||
// const aiScenarios = [
|
||||
// {
|
||||
// id: "ai-friend",
|
||||
// name: "AI智能加友",
|
||||
// icon: "🤖",
|
||||
// count: 245,
|
||||
// growth: "+18.5%",
|
||||
// description: "智能分析目标用户画像,自动筛选优质客户",
|
||||
// path: "/scenarios/ai-friend",
|
||||
// },
|
||||
// {
|
||||
// id: "ai-group",
|
||||
// name: "AI群引流",
|
||||
// icon: "🤖",
|
||||
// count: 178,
|
||||
// growth: "+15.2%",
|
||||
// description: "智能群管理,提高群活跃度,增强获客效果",
|
||||
// path: "/scenarios/ai-group",
|
||||
// },
|
||||
// {
|
||||
// id: "ai-conversion",
|
||||
// name: "AI场景转化",
|
||||
// icon: "🤖",
|
||||
// count: 134,
|
||||
// growth: "+12.8%",
|
||||
// description: "多场景智能营销,提升获客转化率",
|
||||
// path: "/scenarios/ai-conversion",
|
||||
// },
|
||||
// ];
|
||||
|
||||
useEffect(() => {
|
||||
const fetchScenarios = async () => {
|
||||
|
||||
Reference in New Issue
Block a user