代码提交

This commit is contained in:
黄少君
2023-11-22 18:55:55 +08:00
parent c3e62f8922
commit 68b3f2dcc3
46 changed files with 1021 additions and 763 deletions

View File

@ -229,17 +229,20 @@ const handleOrderInfo = async (option) => {
goodsList.value = res.filter(item => goodsSelect.value.includes(item.cartInfo.productAttrUnique))
let price = 0
let postagePrice = 0
let productParamList = []
let productAttrUnique = []
goodsList.value.forEach(item => {
price += item.cartInfo.truePrice * item.cartInfo.cartNum
price += item.cartInfo.truePrice * item.cartInfo.cartNum - item.cartInfo.couponPrice
postagePrice += item.cartInfo.postagePrice
productParamList.push({
productId: item.productId,
productAttrUnique: item.cartInfo.productAttrUnique
})
})
if(goodsList.value[0].status === 0){
price += postagePrice
}
totalPrice.value = price.toFixed(2)
data.value.orderId = res[0].orderId
data.value.serviceType = refundType.value