入驻和实名认证页面的搜索改为id搜索
This commit is contained in:
parent
5e2cacd454
commit
bdbe2de99a
|
@ -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">
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue