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
黄庭坚
jinfa-platform
Commits
5d4c34f2
Commit
5d4c34f2
authored
Dec 21, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 店铺装修页面商城名称获取修改
parent
99bf4a80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
+23
-16
index.tsx
src/pages/editor/shopEdit/index.tsx
+12
-8
index.tsx
src/pages/preview/shopPreview/index.tsx
+11
-8
No files found.
src/pages/editor/shopEdit/index.tsx
View file @
5d4c34f2
...
...
@@ -159,15 +159,19 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
serviceAdvertConfig
[
serviceAdvertConfig
.
key
].
props
.
advertList
=
await
findSecondAdvertsByType
()
//店铺信息
const
shopList
=
GlobalConfig
.
web
.
shopInfo
const
webMallInfo
=
shopList
.
filter
(
item
=>
item
.
environment
===
1
&&
item
.
type
===
1
)[
0
]
const
shopInfo
:
any
=
await
fetchShopInfo
(
webMallInfo
.
id
)
headerConfig
[
headerConfig
.
key
].
props
.
shopInfo
=
shopInfo
headerConfig
[
headerConfig
.
key
].
props
.
logoUrl
=
webMallInfo
.
logoUrl
topBarConfig
[
topBarConfig
.
key
].
props
.
shopname
=
webMallInfo
.
name
const
webMallInfo
=
shopList
.
filter
(
item
=>
item
.
id
===
Number
(
shopId
))[
0
]
if
(
webMallInfo
)
{
const
shopInfo
:
any
=
await
fetchShopInfo
(
webMallInfo
.
id
)
headerConfig
[
headerConfig
.
key
].
props
.
shopInfo
=
shopInfo
headerConfig
[
headerConfig
.
key
].
props
.
logoUrl
=
webMallInfo
.
logoUrl
topBarConfig
[
topBarConfig
.
key
].
props
.
shopname
=
webMallInfo
.
name
CompanyInfoConfig
[
CompanyInfoConfig
.
key
].
props
.
shopInfo
=
shopInfo
||
{}
AlbumConfig
[
AlbumConfig
.
key
].
props
.
workshopPics
=
shopInfo
.
workshopPics
||
[]
HonroPicConfig
[
HonroPicConfig
.
key
].
props
.
honorPics
=
shopInfo
.
honorPics
||
[]
}
CompanyInfoConfig
[
CompanyInfoConfig
.
key
].
props
.
shopInfo
=
shopInfo
||
{}
AlbumConfig
[
AlbumConfig
.
key
].
props
.
workshopPics
=
shopInfo
.
workshopPics
||
[]
HonroPicConfig
[
HonroPicConfig
.
key
].
props
.
honorPics
=
shopInfo
.
honorPics
||
[]
// AboutUsConfig[AboutUsConfig.key].props.shopInfo = shopInfo
let
initIndex
=
100
let
floorLineConfig
:
any
=
{}
...
...
src/pages/preview/shopPreview/index.tsx
View file @
5d4c34f2
...
...
@@ -159,15 +159,18 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
serviceAdvertConfig
[
serviceAdvertConfig
.
key
].
props
.
advertList
=
await
findSecondAdvertsByType
()
//店铺信息
const
shopList
=
GlobalConfig
.
web
.
shopInfo
const
webMallInfo
=
shopList
.
filter
(
item
=>
item
.
environment
===
1
&&
item
.
type
===
1
)[
0
]
const
shopInfo
:
any
=
await
fetchShopInfo
(
webMallInfo
.
id
)
headerConfig
[
headerConfig
.
key
].
props
.
shopInfo
=
shopInfo
headerConfig
[
headerConfig
.
key
].
props
.
logoUrl
=
webMallInfo
.
logoUrl
topBarConfig
[
topBarConfig
.
key
].
props
.
shopname
=
webMallInfo
.
name
const
webMallInfo
=
shopList
.
filter
(
item
=>
item
.
id
===
Number
(
shopId
))[
0
]
CompanyInfoConfig
[
CompanyInfoConfig
.
key
].
props
.
shopInfo
=
shopInfo
||
{}
AlbumConfig
[
AlbumConfig
.
key
].
props
.
workshopPics
=
shopInfo
.
workshopPics
||
[]
HonroPicConfig
[
HonroPicConfig
.
key
].
props
.
honorPics
=
shopInfo
.
honorPics
||
[]
if
(
webMallInfo
)
{
const
shopInfo
:
any
=
await
fetchShopInfo
(
webMallInfo
.
id
)
headerConfig
[
headerConfig
.
key
].
props
.
shopInfo
=
shopInfo
headerConfig
[
headerConfig
.
key
].
props
.
logoUrl
=
webMallInfo
.
logoUrl
topBarConfig
[
topBarConfig
.
key
].
props
.
shopname
=
webMallInfo
.
name
CompanyInfoConfig
[
CompanyInfoConfig
.
key
].
props
.
shopInfo
=
shopInfo
||
{}
AlbumConfig
[
AlbumConfig
.
key
].
props
.
workshopPics
=
shopInfo
.
workshopPics
||
[]
HonroPicConfig
[
HonroPicConfig
.
key
].
props
.
honorPics
=
shopInfo
.
honorPics
||
[]
}
// AboutUsConfig[AboutUsConfig.key].props.shopInfo = shopInfo
let
initIndex
=
100
let
floorLineConfig
:
any
=
{}
...
...
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