代码提交
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user