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
65dc8a98
Commit
65dc8a98
authored
Oct 18, 2021
by
前端-李俊鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 自营商城-关于我们数据初始处理
parent
6ff3728d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
index.tsx
src/pages/ownMall/ownMallManager/ownMallAboutUs/index.tsx
+6
-7
No files found.
src/pages/ownMall/ownMallManager/ownMallAboutUs/index.tsx
View file @
65dc8a98
...
@@ -51,10 +51,10 @@ const OwnMallAboutUs = () => {
...
@@ -51,10 +51,10 @@ const OwnMallAboutUs = () => {
const
[
saveLoading
,
setSaveLoading
]
=
useState
<
boolean
>
(
false
)
const
[
saveLoading
,
setSaveLoading
]
=
useState
<
boolean
>
(
false
)
const
[
isFormChange
,
setIsFormChange
]
=
useState
<
boolean
>
(
false
)
const
[
isFormChange
,
setIsFormChange
]
=
useState
<
boolean
>
(
false
)
const
[
albumUrls
,
setAlbumUrls
]
=
useState
<
any
[]
>
([])
const
[
albumUrls
,
setAlbumUrls
]
=
useState
<
any
[]
>
([])
const
[
allMallList
,
setAllMallList
]
=
useState
<
any
[]
>
([])
const
[
allMallList
,
setAllMallList
]
=
useState
<
any
[]
>
([])
const
[
selectCityData
,
setSelectCityData
]
=
useState
<
any
>
([
defaultCityData
])
const
[
selectCityData
,
setSelectCityData
]
=
useState
<
any
>
([
defaultCityData
])
const
[
mallUrl
,
setMallUrl
]
=
useState
<
string
>
()
const
[
mallUrl
,
setMallUrl
]
=
useState
<
string
>
()
const
getAlbumUrls
=
(
data
)
=>
{
const
getAlbumUrls
=
(
data
)
=>
{
setAlbumUrls
(
data
);
setAlbumUrls
(
data
);
...
@@ -151,9 +151,9 @@ const OwnMallAboutUs = () => {
...
@@ -151,9 +151,9 @@ const OwnMallAboutUs = () => {
if
(
code
===
1000
&&
data
)
{
if
(
code
===
1000
&&
data
)
{
const
{
albumName
,
albumUrl
,
honorPics
,
workshopPics
,
...
rest
}
=
data
const
{
albumName
,
albumUrl
,
honorPics
,
workshopPics
,
...
rest
}
=
data
const
newAlbumUrls
=
albumName
&&
albumUrl
?
[{
name
:
albumName
,
url
:
albumUrl
}]
:
[]
const
newAlbumUrls
=
albumName
&&
albumUrl
?
[{
name
:
albumName
,
url
:
albumUrl
}]
:
[]
workshopImgRef
.
current
.
setData
(
workshopPics
)
workshopImgRef
.
current
?
.
setData
(
workshopPics
)
honorImgRef
.
current
.
setData
(
honorPics
)
honorImgRef
.
current
?
.
setData
(
honorPics
)
form
.
setFieldsValue
({
form
.
setFieldsValue
({
...
rest
,
...
rest
,
albumUrls
:
newAlbumUrls
albumUrls
:
newAlbumUrls
...
@@ -272,4 +272,4 @@ const OwnMallAboutUs = () => {
...
@@ -272,4 +272,4 @@ const OwnMallAboutUs = () => {
)
)
}
}
export
default
observer
(
OwnMallAboutUs
)
export
default
observer
(
OwnMallAboutUs
)
\ No newline at end of file
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