入驻和实名认证页面的搜索改为id搜索

This commit is contained in:
yezian 2024-07-01 12:24:10 +08:00
parent 5e2cacd454
commit bdbe2de99a
2 changed files with 6 additions and 18 deletions

View File

@ -349,12 +349,8 @@ const JoinContent = (props) => {
}, [data]); }, [data]);
// //
const search = (value) => { const search = (value) => {
value.name value.id
? setShowData( ? setShowData(data.filter((item) => item.info.id == value.id))
data.filter((item) =>
item.info.name.toLowerCase().includes(value.name)
)
)
: setShowData(data); : setShowData(data);
}; };
// //
@ -371,11 +367,7 @@ const JoinContent = (props) => {
</p> </p>
<Form name="search" onFinish={search} onFinishFailed={onFinishFailed}> <Form name="search" onFinish={search} onFinishFailed={onFinishFailed}>
<Space style={{ marginBottom: 20 }}> <Space style={{ marginBottom: 20 }}>
<Form.Item <Form.Item label="网红ID" name="id" style={{ margin: 0 }}>
label="网红昵称(提交审核时填写的昵称)"
name="name"
style={{ margin: 0 }}
>
<Input /> <Input />
</Form.Item> </Form.Item>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">

View File

@ -274,12 +274,8 @@ const VerificationContent = (props) => {
}, [data]); }, [data]);
// //
const search = (value) => { const search = (value) => {
value.name value.id
? setShowData( ? setShowData(data.filter((item) => item.baseInfo.user_id == value.id))
data.filter((item) =>
item.baseInfo.name.toLowerCase().includes(value.name)
)
)
: setShowData(data); : setShowData(data);
}; };
// //
@ -295,7 +291,7 @@ const VerificationContent = (props) => {
</p> </p>
<Form name="search" onFinish={search} onFinishFailed={onFinishFailed}> <Form name="search" onFinish={search} onFinishFailed={onFinishFailed}>
<Space style={{ marginBottom: 20 }}> <Space style={{ marginBottom: 20 }}>
<Form.Item label="网红昵称" name="name" style={{ margin: 0 }}> <Form.Item label="网红ID" name="id" style={{ margin: 0 }}>
<Input /> <Input />
</Form.Item> </Form.Item>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">