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
ed2dd049
Commit
ed2dd049
authored
Oct 19, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 装修预览页面
parent
5578ac36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
32 deletions
+34
-32
index.tsx
src/pages/editor/ownMallEdit/index.tsx
+17
-16
preview.tsx
src/pages/editor/ownMallEdit/preview.tsx
+17
-16
No files found.
src/pages/editor/ownMallEdit/index.tsx
View file @
ed2dd049
...
...
@@ -140,22 +140,23 @@ const OwnMallEdit: React.FC<ShopEditPropsType> = (props) => {
})
}
// const getCategoryTree = () => {
// return new Promise((resolve) => {
// const param: any = {
// templateId: id,
// categoryId,
// memberId,
// roleId: memberRoleId
// }
const
getCategoryTree
=
()
=>
{
return
new
Promise
((
resolve
)
=>
{
const
param
:
any
=
{
memberId
,
}
const
headers
:
any
=
{
shopId
}
// PublicApi.getTemplateAdornWebSelfMemberCategoryAdorn(param
).then(res => {
//
if (res.code === 1000) {
//
resolve(res.data)
//
}
//
})
//
})
//
}
PublicApi
.
getSearchShopSelfGetCustomerCategoryTree
(
param
,
{
headers
}
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
})
})
}
const
fetchNewByLabel
=
(
label
:
string
)
=>
{
// 1-头条文章 2-轮播新闻 3-图片新闻 4-推荐阅读
...
...
@@ -186,7 +187,7 @@ const OwnMallEdit: React.FC<ShopEditPropsType> = (props) => {
mainNavConfig
[
mainNavConfig
.
key
].
props
.
menuData
=
getDefaultMenuData
(
mallPath
,
memberId
);
}
mainNavConfig
[
mainNavConfig
.
key
].
props
.
type
=
LAYOUT_TYPE
.
shop
mainNavConfig
[
mainNavConfig
.
key
].
props
.
categoryList
=
[]
mainNavConfig
[
mainNavConfig
.
key
].
props
.
categoryList
=
await
getCategoryTree
()
// 一号位广告
oneBannerConfig
[
oneBannerConfig
.
key
].
props
.
advertList
=
await
findAdvertsByType
(
1
)
...
...
src/pages/editor/ownMallEdit/preview.tsx
View file @
ed2dd049
...
...
@@ -139,22 +139,23 @@ const OwnMallEdit: React.FC<ShopEditPropsType> = (props) => {
})
}
// const getCategoryTree = () => {
// return new Promise((resolve) => {
// const param: any = {
// templateId: id,
// categoryId,
// memberId,
// roleId: memberRoleId
// }
const
getCategoryTree
=
()
=>
{
return
new
Promise
((
resolve
)
=>
{
const
param
:
any
=
{
memberId
,
}
const
headers
:
any
=
{
shopId
}
// PublicApi.getTemplateAdornWebSelfMemberCategoryAdorn(param
).then(res => {
//
if (res.code === 1000) {
//
resolve(res.data)
//
}
//
})
//
})
//
}
PublicApi
.
getSearchShopSelfGetCustomerCategoryTree
(
param
,
{
headers
}
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
})
})
}
const
fetchNewByLabel
=
(
label
:
string
)
=>
{
// 1-头条文章 2-轮播新闻 3-图片新闻 4-推荐阅读
...
...
@@ -180,7 +181,7 @@ const OwnMallEdit: React.FC<ShopEditPropsType> = (props) => {
mainNavConfig
[
mainNavConfig
.
key
].
props
.
menuData
=
menuData
;
}
mainNavConfig
[
mainNavConfig
.
key
].
props
.
type
=
LAYOUT_TYPE
.
shop
mainNavConfig
[
mainNavConfig
.
key
].
props
.
categoryList
=
[]
mainNavConfig
[
mainNavConfig
.
key
].
props
.
categoryList
=
await
getCategoryTree
()
// 一号位广告
oneBannerConfig
[
oneBannerConfig
.
key
].
props
.
advertList
=
await
findAdvertsByType
(
1
)
...
...
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