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
340271e4
Commit
340271e4
authored
Oct 25, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改品类导航页获取品牌接口参数问题
parent
00f29c49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
56 deletions
+1
-56
index.tsx
...plate/categoryNavigation/components/Layout/Tabs/index.tsx
+1
-56
No files found.
src/pages/mobileTemplate/categoryNavigation/components/Layout/Tabs/index.tsx
View file @
340271e4
...
...
@@ -17,61 +17,6 @@ interface Iprops {
children
:
React
.
ReactElement
,
}
/** mock */
const
getData
=
async
(
data
:
any
)
=>
{
const
random
=
Math
.
floor
(
Math
.
random
()
*
3
)
+
1
;
return
new
Promise
((
resolve
)
=>
{
setTimeout
(()
=>
{
resolve
({
saleRanking
:
[
{
id
:
341
,
name
:
'销量排行1'
},
{
id
:
342
,
name
:
'销量排行2'
}
],
flashSale
:
[
{
id
:
112
,
productName
:
'限时抢购1'
},
{
id
:
123
,
productName
:
'限时抢购2'
}
],
brand
:
[
{
id
:
1
,
logo
:
'logo.png'
,
name
:
'荣耀'
},
{
id
:
2
,
logo
:
'logo.png'
,
name
:
'华为'
}
],
suggestProduct
:
[
{
id
:
2
,
name
:
'商品'
},
{
id
:
3
,
name
:
'商品'
}
]
});
},
random
);
});
};
const
CustomizeTabs
:
React
.
FC
<
Iprops
>
&
{
TabItem
:
typeof
TabItem
}
=
(
props
:
Iprops
)
=>
{
const
{
children
}
=
props
;
...
...
@@ -121,7 +66,7 @@ const CustomizeTabs: React.FC<Iprops> & { TabItem: typeof TabItem } = (props: Ip
return
[]
}
const
postData
=
{
idInList
:
ids
,
idInList
:
ids
.
join
(
","
)
,
shopId
:
shopId
,
current
:
1
,
pageSize
:
ids
.
length
,
...
...
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