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
shenshaokai
jinfa-platform
Commits
67c556d6
Commit
67c556d6
authored
Sep 23, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 创建店铺添加联系电话和详细地址
parent
04c7901a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
index.tsx
src/pages/channel/channelInfo/index.tsx
+11
-1
index.tsx
src/pages/shop/shopInfo/index.tsx
+25
-0
No files found.
src/pages/channel/channelInfo/index.tsx
View file @
67c556d6
...
...
@@ -205,8 +205,11 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
logo
:
value
.
logo
,
memberChannelAreas
:
value
.
memberChannelAreas
,
workshopPics
,
customerUrl
:
value
.
customerUrl
,
phone
:
value
.
phone
,
address
:
value
.
address
,
}
console
.
log
(
params
)
PublicApi
.
postTemplateWebMemberChannelWebSaveCurrMemberChannel
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
fetchShopInfo
()
...
...
@@ -475,6 +478,13 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
)
}
</
Form
.
Item
>
<
Form
.
Item
labelAlign=
"left"
name=
"address"
label=
{
<
RequireItem
label=
"详细地址"
/>
}
>
<
Input
allowClear
autoComplete=
"off"
className=
{
styles
.
form_item
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
<
RequireItem
label=
""
/>
}
>
<
Button
loading=
{
confirmLoading
}
type=
"primary"
style=
{
{
marginRight
:
16
}
}
onClick=
{
handleSave
}
>
保存
</
Button
>
...
...
src/pages/shop/shopInfo/index.tsx
View file @
67c556d6
...
...
@@ -212,6 +212,9 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
logo
:
value
.
logo
,
memberShopAreas
:
value
.
memberShopAreas
,
workshopPics
,
customerUrl
:
value
.
customerUrl
,
phone
:
value
.
phone
,
address
:
value
.
address
,
}
PublicApi
.
postTemplateWebMemberShopWebSaveCurrMemberShop
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
@@ -473,6 +476,28 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
)
}
</
Form
.
Item
>
<
Form
.
Item
labelAlign=
"left"
name=
"customerUrl"
label=
{
<
RequireItem
label=
"客服链接"
/>
}
rules=
{
[{
pattern
:
/
(
http|ftp|https
)
:
\/\/[\w\-
_
]
+
(\.[\w\-
_
]
+
)
+
([\w\-
.,@?^=%&:
/
~+#
]
*
[\w\-
@?^=%&
/
~+#
])?
/
,
message
:
'请输入正确的客服链接'
}]
}
>
<
Input
allowClear
autoComplete=
"off"
className=
{
styles
.
form_item
}
/>
</
Form
.
Item
>
<
Form
.
Item
labelAlign=
"left"
name=
"phone"
label=
{
<
RequireItem
label=
"联系电话"
/>
}
>
<
Input
allowClear
autoComplete=
"off"
className=
{
styles
.
form_item
}
/>
</
Form
.
Item
>
<
Form
.
Item
labelAlign=
"left"
name=
"address"
label=
{
<
RequireItem
label=
"详细地址"
/>
}
>
<
Input
allowClear
autoComplete=
"off"
className=
{
styles
.
form_item
}
/>
</
Form
.
Item
>
<
Form
.
Item
label=
{
<
RequireItem
label=
""
/>
}
>
<
Button
loading=
{
confirmLoading
}
type=
"primary"
style=
{
{
marginRight
:
16
}
}
onClick=
{
handleSave
}
>
保存
</
Button
>
...
...
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