...
|
...
|
@@ -38,18 +38,22 @@ const getProductAdditionInfoByProductBaseInfoAsync = (data) => { |
|
|
let uid = data.uid ? data.uid : 0;
|
|
|
let skn = data.erpProductId;
|
|
|
let brandId = data.brand.id ? data.brand.id : 0;
|
|
|
let isOnlyUrl = true;
|
|
|
|
|
|
// 获取相关url
|
|
|
|
|
|
let result = yield Promise.all([
|
|
|
// 获取相关数据
|
|
|
let promiseData = [
|
|
|
productAPI.getProductBannerAsync(productId, 'web'),
|
|
|
productAPI.sizeInfoAsync(skn),
|
|
|
productAPI.getProductComfortAsync(productId),
|
|
|
productAPI.getProductModelCardAsync(productId),
|
|
|
productAPI.getProductModelTryAsync(skn),
|
|
|
brandService.getBannerInfoAsync(brandId)
|
|
|
]);
|
|
|
];
|
|
|
|
|
|
if (uid) {
|
|
|
promiseData.push(favoriteBrandService.isFavoriteAsync(uid, productId));
|
|
|
}
|
|
|
|
|
|
let result = yield Promise.all(promiseData);
|
|
|
|
|
|
cachedRequestData['ItemData::getProductBanner'] = result[0];
|
|
|
cachedRequestData['ItemData::sizeInfo'] = result[1];
|
...
|
...
|
@@ -57,11 +61,7 @@ const getProductAdditionInfoByProductBaseInfoAsync = (data) => { |
|
|
cachedRequestData['ItemData::getProductModelCard'] = result[3];
|
|
|
cachedRequestData['ItemData::getProductModelTry'] = result[4];
|
|
|
cachedRequestData['BrandData::getBannerInfo'] = result[5];
|
|
|
|
|
|
if (uid) {
|
|
|
cachedRequestData['FavoriteData::getUidProductFav'] =
|
|
|
yield favoriteProductService.isFavoriteAsync(uid, productId, isOnlyUrl);
|
|
|
}
|
|
|
cachedRequestData['FavoriteData::getUidProductFav'] = result[6];
|
|
|
|
|
|
return null;
|
|
|
})();
|
...
|
...
|
@@ -1252,7 +1252,6 @@ function getSizeAttrByMaxSortId(maxSortId, sizeList) { |
|
|
* @return array
|
|
|
*/
|
|
|
const getSizeInfo = (productSkn, maxSortId)=> {
|
|
|
|
|
|
let result = {};
|
|
|
|
|
|
if (productSkn) {
|
...
|
...
|
|