问题修复

This commit is contained in:
2025-11-19 10:45:20 +08:00
parent 93273b796f
commit 71a287d373
4 changed files with 44 additions and 11 deletions

View File

@@ -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
}