Authored by 郭成尧

多张图处理

... ... @@ -186,7 +186,7 @@ const detailDataPkg = (origin, uid, vipLevel, ua) => {
// 商品返回 YOHO 币
if (origin.productPriceBo.yohoCoinNum !== null && origin.productPriceBo.yohoCoinNum !== 0) {
dest.commodityReturn = dest.productPriceBo.yohoCoinNum;
dest.commodityReturn = origin.productPriceBo.yohoCoinNum;
}
}
... ... @@ -413,14 +413,15 @@ const detailDataPkg = (origin, uid, vipLevel, ua) => {
// 商品图:多个
if (goodsGroup[1] !== null && typeof goodsGroup[1] !== 'undefined') {
_.forEach(goodsGroup, function(value, key) {
dest.bannerTop = {};
dest.bannerTop.list = {};
dest.bannerTop = {};
dest.bannerTop.list = [];
_.forEach(goodsGroup, function(value) {
let params = {};
params.img = value.img;
dest.bannerTop.list[key] = params;
dest.bannerTop.list.push(params);
});
} else if (goodsGroup[0] !== null && typeof goodsGroup[0] !== 'undefined') {
dest.bannerTop = {};
... ...