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
f33ece61
Commit
f33ece61
authored
Jul 20, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 渠道和店铺装修品类接口添加参数
parent
2ce65571
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
index.tsx
src/pages/editor/channelEdit/index.tsx
+7
-3
index.tsx
src/pages/editor/shopEdit/index.tsx
+6
-2
No files found.
src/pages/editor/channelEdit/index.tsx
View file @
f33ece61
...
...
@@ -25,7 +25,8 @@ interface ChannelPreviewPropsType {
* 模板名称
*/
template
:
string
;
type
:
number
type
:
number
,
shopId
:
number
}
}
}
...
...
@@ -33,7 +34,7 @@ interface ChannelPreviewPropsType {
const
TemplateList
=
[
'science'
]
const
ChannelPreview
:
React
.
FC
<
ChannelPreviewPropsType
>
=
(
props
)
=>
{
const
{
query
:
{
id
,
template
,
type
}
}
=
props
.
location
const
{
query
:
{
id
,
template
,
type
,
shopId
}
}
=
props
.
location
const
userInfo
:
any
=
getAuth
()
||
{}
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
true
)
const
[
theme
,
setTheme
]
=
useState
<
string
>
(
'theme-channel-science'
)
...
...
@@ -74,7 +75,10 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
const
params
:
any
=
{
memberId
:
userInfo
.
memberId
}
PublicApi
.
getTemplateAdornWebChannelFindAllFirstCategory
(
params
).
then
(
res
=>
{
const
headers
:
any
=
{
shopId
}
PublicApi
.
getTemplateAdornWebChannelFindAllFirstCategory
(
params
,
{
headers
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
...
...
src/pages/editor/shopEdit/index.tsx
View file @
f33ece61
...
...
@@ -25,6 +25,7 @@ interface ShopEditPropsType {
* 模板名称
*/
template
:
string
;
shopId
:
number
}
}
}
...
...
@@ -32,7 +33,7 @@ interface ShopEditPropsType {
const
TemplateList
=
[
'science'
]
const
ShopEdit
:
React
.
FC
<
ShopEditPropsType
>
=
(
props
)
=>
{
const
{
query
:
{
id
,
template
}
}
=
props
.
location
const
{
query
:
{
id
,
template
,
shopId
}
}
=
props
.
location
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
true
)
const
[
theme
,
setTheme
]
=
useState
<
string
>
(
'theme-shop-science'
)
const
[
componentConfigs
,
setComponentConfigs
]
=
useState
({})
...
...
@@ -94,7 +95,10 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
memberId
,
roleId
:
memberRoleId
}
PublicApi
.
getTemplateAdornWebStoreFindAllFirstCategory
(
param
).
then
(
res
=>
{
const
headers
:
any
=
{
shopId
}
PublicApi
.
getTemplateAdornWebStoreFindAllFirstCategory
(
param
,
{
headers
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
...
...
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