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
2ba05897
Commit
2ba05897
authored
Jun 10, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 店铺和渠道装修问题
parent
6ae4a531
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
index.tsx
src/pages/editor/channelEdit/index.tsx
+3
-3
index.tsx
src/pages/editor/shopEdit/index.tsx
+3
-3
No files found.
src/pages/editor/channelEdit/index.tsx
View file @
2ba05897
...
...
@@ -218,8 +218,8 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
const
firstCategory
:
any
=
await
fetchFirstCategory
()
for
(
const
item
of
firstCategory
)
{
if
(
item
.
i
d
)
{
const
categoryDetail
:
any
=
await
fetchCategoryById
(
item
.
i
d
)
if
(
item
.
categoryI
d
)
{
const
categoryDetail
:
any
=
await
fetchCategoryById
(
item
.
categoryI
d
)
let
floorLineConfigItem
=
{}
floorLineKeys
.
push
(
String
(
initIndex
+
1
))
...
...
@@ -228,7 +228,7 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
[
String
(
initIndex
+
1
)]:
{
"componentName"
:
"ShopFloorLine"
,
"props"
:
{
title
:
item
.
n
ame
title
:
item
.
categoryN
ame
},
"childNodes"
:
[
String
(
initIndex
+
2
),
String
(
initIndex
+
3
)]
}
...
...
src/pages/editor/shopEdit/index.tsx
View file @
2ba05897
...
...
@@ -166,8 +166,8 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
const
firstCategory
:
any
=
await
fetchFirstCategory
()
for
(
const
item
of
firstCategory
)
{
if
(
item
.
i
d
){
const
categoryDetail
:
any
=
await
fetchCategoryById
(
item
.
i
d
)
if
(
item
.
categoryI
d
){
const
categoryDetail
:
any
=
await
fetchCategoryById
(
item
.
categoryI
d
)
let
floorLineConfigItem
=
{}
floorLineKeys
.
push
(
String
(
initIndex
+
1
))
...
...
@@ -176,7 +176,7 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
[
String
(
initIndex
+
1
)]:
{
"componentName"
:
"ShopFloorLine"
,
"props"
:
{
title
:
item
.
n
ame
title
:
item
.
categoryN
ame
},
"childNodes"
:
[
String
(
initIndex
+
2
),
String
(
initIndex
+
3
)]
}
...
...
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