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
a13b185e
Commit
a13b185e
authored
Oct 26, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 自营商城装修保存数据问题
parent
b2fa872e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
36 deletions
+44
-36
returnSaveParams.ts
src/pages/editor/components/toolBar/returnSaveParams.ts
+12
-8
index.tsx
src/pages/mobileTemplate/ownMallTemplateEdit/index.tsx
+32
-28
No files found.
src/pages/editor/components/toolBar/returnSaveParams.ts
View file @
a13b185e
...
...
@@ -719,10 +719,12 @@ export const paramsShop = (
if
(
_childList
?.
length
)
{
const
_customize
:
any
=
[];
for
(
const
keys
in
_childList
)
{
_customize
.
push
({
id
:
pageConfig
[
_childList
[
keys
]].
props
.
id
,
tags
:
pageConfig
[
_childList
[
keys
]].
props
.
tags
,
});
if
(
pageConfig
[
_childList
[
keys
]].
props
.
id
)
{
_customize
.
push
({
id
:
pageConfig
[
_childList
[
keys
]].
props
.
id
,
tags
:
pageConfig
[
_childList
[
keys
]].
props
.
tags
,
});
}
}
_obj
.
customize
=
_customize
;
}
...
...
@@ -1360,10 +1362,12 @@ export const paramsShop = (
if
(
_childList
?.
length
)
{
const
_customize
:
any
=
[];
for
(
const
keys
in
_childList
)
{
_customize
.
push
({
id
:
pageConfig
[
_childList
[
keys
]].
props
.
id
,
tags
:
pageConfig
[
_childList
[
keys
]].
props
.
tags
,
});
if
(
pageConfig
[
_childList
[
keys
]].
props
.
id
)
{
_customize
.
push
({
id
:
pageConfig
[
_childList
[
keys
]].
props
.
id
,
tags
:
pageConfig
[
_childList
[
keys
]].
props
.
tags
||
[],
});
}
}
_obj
.
customize
=
_customize
;
}
...
...
src/pages/mobileTemplate/ownMallTemplateEdit/index.tsx
View file @
a13b185e
...
...
@@ -1005,34 +1005,38 @@ const OwnMallTempleteEdit: React.FC<ShopPreviewPropsType> = props => {
memberRoleId
,
};
const
_detailsData
=
await
PublicApi
.
getMarketingAdornGoodsListAdorn
(
param
,
);
_detailsData
.
data
.
data
?.
forEach
((
child
,
childIndex
)
=>
{
const
_childNewKey
=
`
${
_newKey
}
-
${
Number
(
childIndex
)
+
1
}
`
;
!
_suggestProductConfig
[
_newKey
].
childNodes
.
includes
(
_childNewKey
,
)
&&
_suggestProductConfig
[
_newKey
].
childNodes
.
push
(
_childNewKey
);
_suggestProductConfig
[
_childNewKey
]
=
{
key
:
_childNewKey
,
title
:
child
?.
name
,
componentName
:
'SuggestProduct.Commodity'
,
canEdit
:
true
,
canHide
:
false
,
props
:
{
...
child
,
name
:
child
.
name
,
image
:
child
.
mainPic
,
mode
:
'vertical'
,
discountPrice
:
priceFormat
(
child
.
min
),
buyBtn
:
false
,
tags
:
item
.
customize
.
filter
(
filChild
=>
filChild
.
id
===
child
.
id
,
)?.[
0
]?.
tags
,
},
};
});
try
{
const
_detailsData
=
await
PublicApi
.
getMarketingAdornGoodsListAdorn
(
param
,
);
_detailsData
.
data
.
data
?.
forEach
((
child
,
childIndex
)
=>
{
const
_childNewKey
=
`
${
_newKey
}
-
${
Number
(
childIndex
)
+
1
}
`
;
!
_suggestProductConfig
[
_newKey
].
childNodes
.
includes
(
_childNewKey
,
)
&&
_suggestProductConfig
[
_newKey
].
childNodes
.
push
(
_childNewKey
);
_suggestProductConfig
[
_childNewKey
]
=
{
key
:
_childNewKey
,
title
:
child
?.
name
,
componentName
:
'SuggestProduct.Commodity'
,
canEdit
:
true
,
canHide
:
false
,
props
:
{
...
child
,
name
:
child
.
name
,
image
:
child
.
mainPic
,
mode
:
'vertical'
,
discountPrice
:
priceFormat
(
child
.
min
),
buyBtn
:
false
,
tags
:
item
.
customize
.
filter
(
filChild
=>
filChild
.
id
===
child
.
id
,
)?.[
0
]?.
tags
,
},
};
});
}
catch
(
error
)
{
console
.
log
(
error
)
}
}
}
}
...
...
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