Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-platform
Commits
af140a81
Commit
af140a81
authored
Oct 27, 2021
by
前端-李俊鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 自营商城-关于我们新增电话和地址字段
parent
918247af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
9 deletions
+30
-9
index.tsx
src/pages/ownMall/ownMallManager/ownMallAboutUs/index.tsx
+30
-9
No files found.
src/pages/ownMall/ownMallManager/ownMallAboutUs/index.tsx
View file @
af140a81
import
{
useEffect
,
useState
,
useRef
}
from
'react'
;
import
{
Form
,
Button
,
Card
,
Select
,
Input
,
Tooltip
,
Typography
,
Row
,
Col
,
message
}
from
'antd'
;
import
RequireItem
from
'@/components/RequireItem'
;
import
{
Prompt
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
CopyOutlined
,
SaveOutlined
}
from
'@ant-design/icons'
;
import
{
validatorByte
}
from
'@/utils/regExp'
;
import
{
useEffect
,
useState
,
useRef
}
from
'react'
import
{
Form
,
Button
,
Card
,
Select
,
Input
,
Tooltip
,
Typography
,
Row
,
Col
,
message
}
from
'antd'
import
RequireItem
from
'@/components/RequireItem'
import
{
Prompt
}
from
'umi'
import
{
PublicApi
}
from
'@/services/api'
import
{
CopyOutlined
,
SaveOutlined
}
from
'@ant-design/icons'
import
{
validatorByte
,
checkRegExp
}
from
'@/utils/regExp'
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
copy
from
'copy-to-clipboard'
import
TabAnchor
from
'@/components/TabAnchor'
...
...
@@ -191,11 +192,11 @@ const OwnMallAboutUs = () => {
name=
'describe'
label=
{
<
RequireItem
label=
"公司简介"
isRequire=
{
true
}
/>
}
rules=
{
[
{
required
:
true
,
message
:
"请输公司简介"
},
{
required
:
true
,
message
:
"请输
入
公司简介"
},
{
validator
:
(
r
,
v
,
c
)
=>
validatorByte
(
r
,
v
,
c
,
400
)
}
]
}
>
<
Input
.
TextArea
rows=
{
1
}
placeholder=
"最长400个字符,200个汉字"
/>
<
Input
.
TextArea
rows=
{
3
}
placeholder=
"最长400个字符,200个汉字"
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
12
}
>
...
...
@@ -229,6 +230,26 @@ const OwnMallAboutUs = () => {
</
Form
.
Item
>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
12
}
>
<
Form
.
Item
name=
'phone'
label=
{
<
RequireItem
label=
"联系电话"
/>
}
rules=
{
[{
max
:
20
}]
}
>
<
Input
placeholder=
"请输入联系电话"
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
12
}
>
<
Form
.
Item
name=
'address'
label=
{
<
RequireItem
label=
"详细地址"
/>
}
rules=
{
[
{
validator
:
(
r
,
v
,
c
)
=>
validatorByte
(
r
,
v
,
c
,
100
)
}
]
}
>
<
Input
placeholder=
"请输入详细地址"
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
</
Card
>
<
Card
id=
'2'
title=
'厂房照片'
style=
{
{
marginBottom
:
16
}
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment