Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
project
jinfa-admin
Commits
7ab72ca4
Commit
7ab72ca4
authored
Jul 23, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 获取品类接口添加请求头参数
parent
8ceb2997
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
global.d.ts
src/global/config/global.d.ts
+2
-2
index.tsx
src/pages/pageCustomized/mallEdit/index.tsx
+8
-3
No files found.
src/global/config/global.d.ts
View file @
7ab72ca4
...
...
@@ -41,7 +41,7 @@ export interface ShopInfo {
describe
:
string
;
state
:
number
;
url
:
string
;
isDefault
?:
any
;
isDefault
:
number
;
}
export
interface
OrderMode
{
...
...
@@ -60,7 +60,7 @@ export interface SiteInfo {
name
:
string
;
logo
:
string
;
siteUrl
:
string
;
symbol
?:
any
;
symbol
:
string
;
}
export
interface
Site
{
...
...
src/pages/pageCustomized/mallEdit/index.tsx
View file @
7ab72ca4
...
...
@@ -124,7 +124,10 @@ const MallEdit: React.FC<MallEditPropsType> = (props) => {
const
param
:
any
=
{
templateId
:
id
};
PublicApi
.
getTemplateWebCategoryWebFindEnterpriseCategoryTree
(
param
).
then
(
res
=>
{
const
headers
:
any
=
{
shopId
}
PublicApi
.
getTemplateWebCategoryWebFindEnterpriseCategoryTree
(
param
,
{
headers
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
}
...
...
@@ -172,8 +175,10 @@ const MallEdit: React.FC<MallEditPropsType> = (props) => {
const
shopList
=
GlobalConfig
.
web
.
shopInfo
;
const
webMallInfo
=
shopList
.
filter
(
item
=>
item
.
id
===
Number
(
shopId
))[
0
];
headerConfig
[
headerConfig
.
key
].
props
.
logoUrl
=
webMallInfo
.
logoUrl
;
topBarConfig
[
topBarConfig
.
key
].
props
.
shopname
=
webMallInfo
.
name
;
if
(
webMallInfo
)
{
headerConfig
[
headerConfig
.
key
].
props
.
logoUrl
=
webMallInfo
.
logoUrl
;
topBarConfig
[
topBarConfig
.
key
].
props
.
shopname
=
webMallInfo
.
name
;
}
// 行情资讯
InformationConfig
[
InformationConfig
.
key
].
props
.
newsList
=
await
fetchNewByLabel
(
'4'
);
...
...
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