...
|
...
|
@@ -21,7 +21,7 @@ const commentAPI = require('./detail-comment-api'); |
|
|
const consultAPI = require('./detail-consult-api');
|
|
|
const hotAreaAPI = require('./detail-hotarea-api');
|
|
|
const brandAPI = require('./brand-api');
|
|
|
const favoriteAPI = require('./favorite-api');
|
|
|
const favoriteBrandService = require('./favorite-service');
|
|
|
const shopAPI = require('./shop-api');
|
|
|
const searchAPI = require('./search-api');
|
|
|
const homeHandle = require('./home-handle');
|
...
|
...
|
@@ -65,7 +65,7 @@ const setMultiResourceByProductBaseInfo = (data) => { |
|
|
|
|
|
if (uid) {
|
|
|
multiResourcesUrl['FavoriteData::getUidProductFav'] =
|
|
|
yield favoriteAPI.getUidProductFavAsync(uid, productId, isOnlyUrl);
|
|
|
yield favoriteBrandService.getUidProductFavAsync(uid, productId, isOnlyUrl);
|
|
|
}
|
|
|
})();
|
|
|
};
|
...
|
...
|
@@ -91,13 +91,13 @@ const getProductFavoriteData = (uid, pid, bid) => { |
|
|
let productData = getMultiDataByResourceName('FavoriteData::getUidProductFav');
|
|
|
|
|
|
if (!productData) {
|
|
|
productData = yield favoriteAPI.getUidProductFavAsync(uid, pid);
|
|
|
productData = yield favoriteBrandService.getUidProductFavAsync(uid, pid);
|
|
|
}
|
|
|
result.product = productData.code === 200 && productData.data ? true : false;
|
|
|
}
|
|
|
|
|
|
if (bid) {
|
|
|
let brandData = yield favoriteAPI.isFavoriteBrandAsync(uid, bid);
|
|
|
let brandData = yield favoriteBrandService.isFavoriteBrandAsync(uid, bid);
|
|
|
|
|
|
result.brand = brandData.code && brandData.code === 200 ? true : false;
|
|
|
}
|
...
|
...
|
@@ -794,7 +794,7 @@ function getProductComfortAsync(productId) { |
|
|
let comfort = getMultiDataByResourceName('ItemData::getProductComfort');
|
|
|
|
|
|
if (!comfort) {
|
|
|
comfort = yield favoriteAPI.getProductComfortAsync(productId);
|
|
|
comfort = yield favoriteBrandService.getProductComfortAsync(productId);
|
|
|
}
|
|
|
|
|
|
if (comfort.data) {
|
...
|
...
|
|