Authored by yyq

shop product

... ... @@ -557,7 +557,10 @@ const getShopData = (shopId, channel, params, shopInfo) => {
let shopBrandIds = [], // 店铺的所有品牌id
articleApiMethod = [], // 通过品牌获取相关文章接口
apiMethod = [
searchApi.getProductList({query: _.join(_.uniq(sknList), ',')})
searchApi.getProductList({
viewNum: sknList.length,
query: _.join(_.uniq(sknList), ',')
})
];
if (result[3].code === 200 && result[3].data) {
... ...
... ... @@ -32,7 +32,7 @@ const newProducts = (data) => {
productSkn: value.productSkn,
price: ${value.salesPrice}`,
img: value.src,
url: `/product/pro_${value.productId}_${value.goodsId}/${value.cnAlphabet}.html`
url: helpers.getUrlBySkc(value.productId, value.goodsId, value.cnAlphabet)
});
});
}
... ... @@ -56,7 +56,7 @@ const hotProducts = (data) => {
productSkn: value.productSkn,
price: ${value.salesPrice}`,
img: value.src,
url: `/product/pro_${value.productId}_${value.goodsId}/${value.cnAlphabet}.html`,
url: helpers.getUrlBySkc(value.productId, value.goodsId, value.cnAlphabet),
index: key + 1
});
});
... ...