"use client" import { useState } from "react" import { Button } from "@/components/ui/button" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { Plus, Settings, Users, MessageSquare, TrendingUp, Calendar } from "lucide-react" import Link from "next/link" // 微信群获客计划数据 const wechatGroupPlans = [ { id: 1, name: "产品推广群计划", status: "运行中", groupCount: 8, memberCount: 1250, dailyMessages: 15, tags: ["产品分享", "优惠信息"], createdAt: "2024-01-15", lastActive: "2小时前", }, { id: 2, name: "用户交流群计划", status: "已暂停", groupCount: 5, memberCount: 680, dailyMessages: 8, tags: ["用户交流", "答疑解惑"], createdAt: "2024-01-10", lastActive: "1天前", }, { id: 3, name: "新人欢迎群计划", status: "运行中", groupCount: 12, memberCount: 2100, dailyMessages: 25, tags: ["新人欢迎", "群活动"], createdAt: "2024-01-08", lastActive: "30分钟前", }, ] export default function WechatGroupPage() { const [plans] = useState(wechatGroupPlans) const getStatusColor = (status: string) => { switch (status) { case "运行中": return "bg-green-100 text-green-800" case "已暂停": return "bg-yellow-100 text-yellow-800" case "已完成": return "bg-blue-100 text-blue-800" default: return "bg-gray-100 text-gray-800" } } const getTagColor = (tag: string) => { const colors = { 群活动: "bg-green-100 text-green-800", 产品分享: "bg-blue-100 text-blue-800", 用户交流: "bg-purple-100 text-purple-800", 优惠信息: "bg-pink-100 text-pink-800", 答疑解惑: "bg-orange-100 text-orange-800", 新人欢迎: "bg-cyan-100 text-cyan-800", 群规通知: "bg-indigo-100 text-indigo-800", 活跃互动: "bg-emerald-100 text-emerald-800", } return colors[tag as keyof typeof colors] || "bg-gray-100 text-gray-800" } return (
管理微信群获客计划,提升群活跃度
总群数
25
总成员
4,030
日均消息
48
活跃计划
2
群数量
{plan.groupCount} 个
成员数
{plan.memberCount.toLocaleString()}
日均消息
{plan.dailyMessages} 条
最后活跃
{plan.lastActive}