import React, { useState } from "react"; import { Form, Input, Button, Space, Table, Checkbox, InputNumber, Image, } from "antd"; import Modal from "../../components/Modal"; import VideoUploader from "../../components/VideoUploader"; import ImageUploader from "../../components/ImageUploader"; import baseRequest from "../../utils/baseRequest"; //tab内容 const StreamerInformationContent = () => { const { TextArea } = Input; //展示的表头 const [showColumns, setShowColumns] = useState([ "baseInfo", "displayInfo", "displayPoster", "displayVideo", "displayGallery", ]); //动态的表头 const dynamicColumns = showColumns.map((item) => { switch (item) { case "baseInfo": return { title: "基础信息", dataIndex: "baseInfo", key: "baseInfo", render: (data) => (

ID:{data.id}

昵称:{data.name}

入驻时间:{data.joinTime}

), }; case "displayInfo": return { title: "个人展示信息", dataIndex: "displayInfo", key: "displayInfo", render: (data) => (

性别: {data.gender === 1 ? "女" : "男"}

全网粉丝:{data.fans}万

微信添加方式: {data.wechat_lock_type === 1 ? "主动添加" : "直接展示"}

微信: {data.wechat ? data.wechat : "空"}

微信价格: ¥{data.wechat_price / 10}

个性签名:{data.signature}

私信自动回复: {data.auto_response_message}

年龄:{data.age}

身高:{data.height}

体重:{data.weight}

星座:{data.constellation}

居住地:{data.location}

), }; case "displayPoster": return { title: "封面图片", dataIndex: "displayPoster", key: "displayPoster", render: (data) => , }; case "displayVideo": return { title: "封面视频", dataIndex: "displayVideo", key: "displayVideo", render: (data) => (