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
b578340e
Commit
b578340e
authored
Sep 09, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:渠道商城接口参数问题
parent
96d97f47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
index.tsx
src/pages/lxMall/channel/index.tsx
+9
-5
No files found.
src/pages/lxMall/channel/index.tsx
View file @
b578340e
...
...
@@ -28,7 +28,6 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
useEffect
(()
=>
{
if
(
shopInfo
)
{
console
.
log
(
shopInfo
,
"shopInfo"
)
if
(
shopInfo
.
templateId
)
{
getCategoryComponents
()
findFirstAdvertsByType
()
...
...
@@ -40,7 +39,8 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
const
findFirstAdvertsByType
=
()
=>
{
let
params
=
{
templateId
:
shopInfo
.
templateId
,
type
:
1
type
:
1
,
memberId
}
//@ts-ignore
PublicApi
.
getTemplateChannelFindAdvertsByType
(
params
).
then
(
res
=>
{
...
...
@@ -53,7 +53,8 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
const
findSecondAdvertsByType
=
()
=>
{
let
params
=
{
templateId
:
shopInfo
.
templateId
,
type
:
2
type
:
2
,
memberId
}
//@ts-ignore
PublicApi
.
getTemplateChannelFindAdvertsByType
(
params
).
then
(
res
=>
{
...
...
@@ -68,7 +69,9 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
*/
const
fetchFirstCategory
=
()
=>
{
return
new
Promise
((
resolve
)
=>
{
PublicApi
.
getTemplateChannelFindAllFirstCategory
().
then
(
res
=>
{
//@ts-ignore
PublicApi
.
getTemplateChannelFindAllFirstCategory
({
memberId
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setCategoryList
(
res
.
data
)
resolve
(
res
.
data
)
...
...
@@ -84,7 +87,8 @@ const ChannelIndex: React.FC<ChannelIndexPropsType> = (props) => {
return
new
Promise
((
resolve
)
=>
{
let
param
=
{
templateId
:
shopInfo
.
templateId
,
categoryId
categoryId
,
memberId
}
// @ts-ignore
...
...
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