tapd问题修改

This commit is contained in:
GaoHao
2025-03-10 18:35:58 +08:00
parent cc97b6acca
commit 56b115a695
5 changed files with 17 additions and 14 deletions

View File

@@ -412,6 +412,7 @@
* 打包费
*/
const $packFee = computed(() => {
console.log("打包费===",goods.list)
return goods.list.reduce((prve, cur) => {
return prve + (cur.packFee*parseFloat(cur.pack_number).toFixed(0))
}, 0).toFixed(2)
@@ -447,7 +448,7 @@
const goodsTotalPrice = goods.list.reduce((prve, cur) => {
const lowMemberPrice = cur.lowMemberPrice ? cur.lowMemberPrice : cur.lowPrice
const tPrice = (isVip.value ? lowMemberPrice : cur.lowPrice) * cur.number
const tpackFee = parseFloat(cur.pack_number).toFixed(0) > 0 ? cur.packFee*parseFloat(cur.pack_number).toFixed(0) : 0
const tpackFee = cur.is_temporary !=1&&parseFloat(cur.pack_number).toFixed(0) > 0 ? cur.packFee*parseFloat(cur.pack_number).toFixed(0) : 0
return prve + (cur.is_gift ? 0 : tPrice) + tpackFee
}, 0)
return ((goodsTotalPrice - discount_sale_amount.value) || 0).toFixed(2)