入驻和实名认证页面的搜索改为id搜索
This commit is contained in:
parent
5e2cacd454
commit
bdbe2de99a
|
@ -349,12 +349,8 @@ const JoinContent = (props) => {
|
|||
}, [data]);
|
||||
//搜索名人
|
||||
const search = (value) => {
|
||||
value.name
|
||||
? setShowData(
|
||||
data.filter((item) =>
|
||||
item.info.name.toLowerCase().includes(value.name)
|
||||
)
|
||||
)
|
||||
value.id
|
||||
? setShowData(data.filter((item) => item.info.id == value.id))
|
||||
: setShowData(data);
|
||||
};
|
||||
//表单提交失败
|
||||
|
@ -371,11 +367,7 @@ const JoinContent = (props) => {
|
|||
</p>
|
||||
<Form name="search" onFinish={search} onFinishFailed={onFinishFailed}>
|
||||
<Space style={{ marginBottom: 20 }}>
|
||||
<Form.Item
|
||||
label="网红昵称(提交审核时填写的昵称)"
|
||||
name="name"
|
||||
style={{ margin: 0 }}
|
||||
>
|
||||
<Form.Item label="网红ID" name="id" style={{ margin: 0 }}>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
<Button type="primary" htmlType="submit">
|
||||
|
|
|
@ -274,12 +274,8 @@ const VerificationContent = (props) => {
|
|||
}, [data]);
|
||||
//搜索名人
|
||||
const search = (value) => {
|
||||
value.name
|
||||
? setShowData(
|
||||
data.filter((item) =>
|
||||
item.baseInfo.name.toLowerCase().includes(value.name)
|
||||
)
|
||||
)
|
||||
value.id
|
||||
? setShowData(data.filter((item) => item.baseInfo.user_id == value.id))
|
||||
: setShowData(data);
|
||||
};
|
||||
//表单提交失败
|
||||
|
@ -295,7 +291,7 @@ const VerificationContent = (props) => {
|
|||
</p>
|
||||
<Form name="search" onFinish={search} onFinishFailed={onFinishFailed}>
|
||||
<Space style={{ marginBottom: 20 }}>
|
||||
<Form.Item label="网红昵称" name="name" style={{ margin: 0 }}>
|
||||
<Form.Item label="网红ID" name="id" style={{ margin: 0 }}>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
<Button type="primary" htmlType="submit">
|
||||
|
|
Loading…
Reference in New Issue