Commit 340271e4 authored by Bill's avatar Bill

fix: 修改品类导航页获取品牌接口参数问题

parent 00f29c49
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment