...
|
...
|
@@ -66,9 +66,9 @@ const favorite = { |
|
|
});
|
|
|
|
|
|
retData.categoryList.forEach(c => {
|
|
|
c.categoryId="categoryId" in c?c.categoryId:c.category_id;
|
|
|
c.categoryId = 'categoryId' in c ? c.categoryId : c.category_id;
|
|
|
c.checked = c.categoryId === sort;
|
|
|
c.categoryName="categoryName" in c?c.categoryName:c.category_name;
|
|
|
c.categoryName = 'categoryName' in c ? c.categoryName : c.category_name;
|
|
|
});
|
|
|
|
|
|
retData.products = data.product_list.filter(p => {
|
...
|
...
|
@@ -91,7 +91,7 @@ const favorite = { |
|
|
ret.content.banner = thumb;
|
|
|
}
|
|
|
|
|
|
res.display('index', ret);console.log(JSON.stringify(ret));
|
|
|
res.display('index', ret); console.log(JSON.stringify(ret));
|
|
|
}).catch(next);
|
|
|
},
|
|
|
|
...
|
...
|
|