Commit 23a3e560 authored by cellee's avatar cellee

账号样式更改,解决后台报错loading框不消失问题

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent 0cd0d8ac
...@@ -99,6 +99,8 @@ const Account = (props: any) => { ...@@ -99,6 +99,8 @@ const Account = (props: any) => {
dispatch({ type: module + '/AccountClear' }); dispatch({ type: module + '/AccountClear' });
setLoading(false); setLoading(false);
history.go(-1); history.go(-1);
} else {
setLoading(false);
} }
} }
}, [SubResult]); }, [SubResult]);
...@@ -303,28 +305,28 @@ const Account = (props: any) => { ...@@ -303,28 +305,28 @@ const Account = (props: any) => {
name="contract" name="contract"
onFinish={onFinishContract} onFinish={onFinishContract}
> >
<Descriptions column={{ xs: 1, sm: 1, md: 2, xl: 3 }}> <div style={{ display: 'flex', justifyContent: 'initial', alignItems: 'center' }}>
<Descriptions.Item> <Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}>
<Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}> <Input placeholder="E-mail address" className="input" />
<Input placeholder="E-mail address" className="input" /> </Form.Item>
</Form.Item> <Form.Item
</Descriptions.Item> name="tosAccountName"
<Descriptions.Item> label="Name"
<Form.Item name="tosAccountName" label="Name" rules={AccountTip[1] as any}> rules={AccountTip[1] as any}
<Input placeholder="Name Of Administrator" className="input" /> style={{ marginRight: 20 }}
</Form.Item> >
</Descriptions.Item> <Input placeholder="Name Of Administrator" className="input" />
<Descriptions.Item> </Form.Item>
<Form.Item name="tosUserPhone" label="Correct telephone" rules={AccountTip[2] as any}>
<Input <Form.Item name="tosUserPhone" label="Contact Number" rules={AccountTip[2] as any}>
placeholder="Contact Information" <Input
className="input" placeholder="Contact Information"
maxLength={11} className="input"
onKeyUp={keyup_communityManagerFee} maxLength={11}
/> onKeyUp={keyup_communityManagerFee}
</Form.Item> />
</Descriptions.Item> </Form.Item>
</Descriptions> </div>
<div className="diy" style={{ marginBottom: '14px' }}> <div className="diy" style={{ marginBottom: '14px' }}>
<div className="label required"> <div className="label required">
......
...@@ -423,29 +423,28 @@ const Account = (props: any) => { ...@@ -423,29 +423,28 @@ const Account = (props: any) => {
name="contract" name="contract"
onFinish={onFinishContract} onFinish={onFinishContract}
> >
<Descriptions column={{ xs: 1, sm: 1, md: 2, xl: 3 }}> <div style={{ display: 'flex', justifyContent: 'initial', alignItems: 'center' }}>
<Descriptions.Item> <Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}>
<Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}> <Input placeholder="Login Account" className="input" disabled />
<Input placeholder="Login Account" className="input" disabled /> </Form.Item>
</Form.Item> <Form.Item
</Descriptions.Item> name="tosAccountName"
<Descriptions.Item> label="Name"
<Form.Item name="tosAccountName" label="Name" rules={AccountTip[1] as any}> rules={AccountTip[1] as any}
<Input placeholder="Name Of Administrator" className="input" disabled /> style={{ marginRight: 20 }}
</Form.Item> >
</Descriptions.Item> <Input placeholder="Name Of Administrator" className="input" disabled />
<Descriptions.Item> </Form.Item>
<Form.Item name="tosUserPhone" label="Phone" rules={AccountTip[2] as any}> <Form.Item name="tosUserPhone" label="Contact Number" rules={AccountTip[2] as any}>
<Input <Input
placeholder="Contact Information" placeholder="Contact Information"
className="input" className="input"
maxLength={11} maxLength={11}
onKeyUp={keyup_communityManagerFee} onKeyUp={keyup_communityManagerFee}
disabled disabled
/> />
</Form.Item> </Form.Item>
</Descriptions.Item> </div>
</Descriptions>
<div className="diy" style={{ marginBottom: '14px' }}> <div className="diy" style={{ marginBottom: '14px' }}>
<div className="label required"> <div className="label required">
......
...@@ -88,6 +88,8 @@ const Account = (props: any) => { ...@@ -88,6 +88,8 @@ const Account = (props: any) => {
dispatch({ type: module + '/AccountClear' }); dispatch({ type: module + '/AccountClear' });
setLoading(true); setLoading(true);
history.go(-1); history.go(-1);
} else {
setLoading(false);
} }
} }
}, [SubResult]); }, [SubResult]);
...@@ -572,28 +574,27 @@ const Account = (props: any) => { ...@@ -572,28 +574,27 @@ const Account = (props: any) => {
name="contract" name="contract"
onFinish={onFinishContract} onFinish={onFinishContract}
> >
<Descriptions column={{ xs: 1, sm: 1, md: 2, xl: 3 }}> <div style={{ display: 'flex', justifyContent: 'initial', alignItems: 'center' }}>
<Descriptions.Item> <Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}>
<Form.Item name="tosUserName" label="Account ID" rules={AccountTip[0] as any}> <Input placeholder="E-mail address" className="input" disabled />
<Input placeholder="E-mail address" className="input" disabled /> </Form.Item>
</Form.Item> <Form.Item
</Descriptions.Item> name="tosAccountName"
<Descriptions.Item> label="Name"
<Form.Item name="tosAccountName" label="Name" rules={AccountTip[1] as any}> rules={AccountTip[1] as any}
<Input placeholder="Name Of Administrator" className="input" /> style={{ marginRight: 20 }}
</Form.Item> >
</Descriptions.Item> <Input placeholder="Name Of Administrator" className="input" />
<Descriptions.Item> </Form.Item>
<Form.Item name="tosUserPhone" label="Correct telephone" rules={AccountTip[2] as any}> <Form.Item name="tosUserPhone" label="Contact Number" rules={AccountTip[2] as any}>
<Input <Input
placeholder="Contact Information" placeholder="Contact Information"
className="input" className="input"
maxLength={11} maxLength={11}
onKeyUp={keyup_communityManagerFee} onKeyUp={keyup_communityManagerFee}
/> />
</Form.Item> </Form.Item>
</Descriptions.Item> </div>
</Descriptions>
<div className="diy" style={{ marginBottom: '14px' }}> <div className="diy" style={{ marginBottom: '14px' }}>
<div className="label required"> <div className="label required">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment