...
|
...
|
@@ -136,6 +136,10 @@ const index = (params) => { |
|
|
Object.assign(finalResult, {
|
|
|
productFavoriteTotal: result[2].data.product_favorite_total || '0'
|
|
|
});
|
|
|
} else {
|
|
|
Object.assign(finalResult, {
|
|
|
productFavoriteTotal: '0'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (result[3] && result[3].data) {
|
...
|
...
|
@@ -149,6 +153,11 @@ const index = (params) => { |
|
|
brandFavoriteTotal: result[3].data.brand_favorite_total || '0',
|
|
|
productBrowse: result[3].data.product_browse || '0'
|
|
|
});
|
|
|
} else {
|
|
|
Object.assign(finalResult, {
|
|
|
brandFavoriteTotal: '0',
|
|
|
productBrowse: '0'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if (result[4] && result[4].data) {
|
...
|
...
|
|