...
|
...
|
@@ -294,12 +294,13 @@ const filterCartData = (result, uid) => { |
|
|
});
|
|
|
}
|
|
|
|
|
|
// _.groupBy(_.concat(advancedGoods, advancedSoldOutGoods), 'brand_id')
|
|
|
return _.merge(resData, {
|
|
|
hasGoods: advancedGoods.length || ordinaryGoods.length || invalidGoods.length,
|
|
|
preSalePros: (advancedSoldOutGoods.length || advancedGoods.length) ?
|
|
|
_.groupBy(_.concat(advancedGoods, advancedSoldOutGoods), 'brand_id') : [],
|
|
|
preSalePros: (advancedSoldOutGoods.length || advancedGoods.length) ?
|
|
|
_.concat(advancedGoods, advancedSoldOutGoods) : [],
|
|
|
commonPros: (ordinarySoldOutGoods.length || ordinaryGoods.length) ?
|
|
|
_.groupBy(_.concat(ordinaryGoods, ordinarySoldOutGoods), 'brand_id') : [],
|
|
|
_.concat(ordinaryGoods, ordinarySoldOutGoods) : [],
|
|
|
invalidPros: invalidGoods,
|
|
|
selectedNum: selectedAdvanceNum + selectedOrdinaryNum,
|
|
|
checkAll: totalNum === (selectedAdvanceNum + selectedOrdinaryNum),
|
...
|
...
|
|