...
|
...
|
@@ -69,6 +69,7 @@ const tool = { |
|
|
|
|
|
// dest.brandId = origin.brand_info && origin.brand_info.brand_id || 0;
|
|
|
dest.brandId = _.get(origin, 'brand_info.brand_id', 0);
|
|
|
dest.shopId = _.get(origin, 'shopId', 0);
|
|
|
dest.productSkn = origin.product_skn;
|
|
|
dest.id = origin.product_id;
|
|
|
|
...
|
...
|
@@ -285,6 +286,7 @@ const newDetail = { |
|
|
}
|
|
|
|
|
|
result.data.goods_id = data.goodsId;
|
|
|
result.data.shopId = _.get(result, 'data.shop_id', null);
|
|
|
|
|
|
return tool.prodessDetailData(result.data);
|
|
|
});
|
...
|
...
|
@@ -295,11 +297,12 @@ const newDetail = { |
|
|
*/
|
|
|
querySknData(params) {
|
|
|
let brandId = params.brandId;
|
|
|
let shopId = params.shopId;
|
|
|
let productId = params.productId;
|
|
|
let skn = params.skn;
|
|
|
|
|
|
let apiArray = [
|
|
|
this.queryShopsByBrandId(brandId), // 0 品牌信息
|
|
|
this.queryShopsByBrandId(brandId, shopId), // 0 品牌信息
|
|
|
commentModel.getCommentInfo({
|
|
|
productId: productId
|
|
|
}), // 1 评论信息
|
...
|
...
|
@@ -352,10 +355,11 @@ const newDetail = { |
|
|
/*
|
|
|
接口: 根据BrandID, 查询品牌信息
|
|
|
*/
|
|
|
queryShopsByBrandId(brandId) {
|
|
|
queryShopsByBrandId(brandId, shopId) {
|
|
|
let params = {
|
|
|
method: 'app.shop.queryShopsByBrandId',
|
|
|
brand_id: brandId
|
|
|
method: 'app.product.queryShopsInfoById',
|
|
|
brand_id: brandId,
|
|
|
shop_id: shopId
|
|
|
};
|
|
|
|
|
|
let cacheConf = {
|
...
|
...
|
|