...
|
...
|
@@ -445,24 +445,25 @@ function transformJit(packageList) { |
|
|
};
|
|
|
|
|
|
if (pValue.shopping_cost !== '0.00') {
|
|
|
perPackageData.push({
|
|
|
_.assign(perPackageData, {
|
|
|
expressCost: pValue.shopping_cost
|
|
|
});
|
|
|
}
|
|
|
if (pValue.shopping_cut_cost !== '0.00') {
|
|
|
perPackageData.push({
|
|
|
_.assign(perPackageData, {
|
|
|
discount: pValue.shopping_cut_cost
|
|
|
});
|
|
|
}
|
|
|
result.packages.push(perPackageData);
|
|
|
|
|
|
_.forEach(pValue.goods_list, gValue => {
|
|
|
result.packages[pKey].goods.push({
|
|
|
perPackageData.goods.push({
|
|
|
thumb: gValue.goods_images,
|
|
|
isAdd: gValue.goods_type === 'price_gift',
|
|
|
isGift: gValue.goods_type === 'gift'
|
|
|
});
|
|
|
});
|
|
|
|
|
|
result.packages.push(perPackageData);
|
|
|
});
|
|
|
return result;
|
|
|
}
|
...
|
...
|
|