diff --git a/src/pages/BlockUser/index.jsx b/src/pages/BlockUser/index.jsx new file mode 100644 index 0000000..4721a1b --- /dev/null +++ b/src/pages/BlockUser/index.jsx @@ -0,0 +1,456 @@ +import React, { useState, useRef, useEffect } from "react"; +import { Form, Input, Button, Space, Table, Menu, Image, Modal } from "antd"; +import { + Routes, + Route, + Navigate, + useNavigate, + useLocation, +} from "react-router-dom"; +import baseRequest from "../../utils/baseRequest"; + +const BlockUserContent = (props) => { + const { TextArea } = Input; + const current = props.current; + //表头 + const columns = [ + { + title: "用户信息", + dataIndex: "user", + key: "user", + onCell: (_, index) => ({ + rowSpan: _.rowSpan, + }), + render: (data) => ( +
+ 昵称:{data.name} +
++ ID:{data.user_id} +
+{data === 0 && "主播发帖封禁"}
, + }, + { + title: "起始时间", + dataIndex: "ct", + key: "ct", + }, + { + title: "结束时间", + dataIndex: "end_time", + key: "end_time", + }, + { + title: "状态", + dataIndex: "status", + key: "status", + render: (data, record) => ( +{data === 0 && "处罚中"}
+{data === 1 && "正常结束"}
++ {data === 2 && `提前终止:${record.ut}`} +
++ *请选中用户后再执行操作 +
+ + {userInfo && ( +ID:{userInfo.user_id}
+昵称:{userInfo.name}
++ 订单号: + {data.order_id} +
++ 订单状态: + {data.order_status_desc} +
++ 创建时间: + {data.ct} +
+{data.coins}
} + {data.money &&{data.money}
} ++ 用户id: + {data.user_user_id} +
+ {data.streamer_user_id && ( ++ 主播id: + {data.streamer_user_id} +
+ )} +数据可见性:
-