问题修复
This commit is contained in:
@@ -13,11 +13,11 @@ export function getNowCart(carItem,goodsList,user) {
|
||||
if(carItem.product_id == goodsItem.id){
|
||||
goodsItem.skuList.map(item=>{
|
||||
if(carItem.product_id == item.productId&&item.id==carItem.sku_id){
|
||||
carItem.lowPrice = item.salePrice
|
||||
carItem.lowPrice = item.lowPrice||item.salePrice
|
||||
carItem.lowMemberPrice = item.memberPrice
|
||||
carItem.memberPrice = item.memberPrice
|
||||
carItem.specInfo = item.specInfo
|
||||
carItem.salePrice = item.salePrice
|
||||
carItem.salePrice = item.lowPrice
|
||||
|
||||
}
|
||||
})
|
||||
@@ -34,8 +34,10 @@ export function getNowCart(carItem,goodsList,user) {
|
||||
carItem.number = parseFloat(carItem.number)
|
||||
carItem.name = carItem.product_name
|
||||
carItem.lowPrice = carItem.discount_sale_amount
|
||||
carItem.discount_sale_amount = 0
|
||||
carItem.discount_sale_amount = carItem.discount_sale_amount?carItem.discount_sale_amount*1:0
|
||||
carItem.discountSaleAmount = carItem.discount_sale_amount
|
||||
}
|
||||
console.log("carItem===",carItem)
|
||||
|
||||
return carItem
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user