|
@@ -141,14 +141,15 @@ export default defineComponent({
|
|
|
},
|
|
|
[]
|
|
|
)
|
|
|
+
|
|
|
+ const payAmount =
|
|
|
+ cartConfirm.calcAmount.payAmount -
|
|
|
+ cartConfirm.calcAmount.promotionAmount
|
|
|
const body = {
|
|
|
cartIds: ids,
|
|
|
memberReceiveAddressId: address.value?.id,
|
|
|
platformType: state.platformType,
|
|
|
- orderAmount: (
|
|
|
- cartConfirm.calcAmount.payAmount -
|
|
|
- cartConfirm.calcAmount.promotionAmount
|
|
|
- ).toFixed(2),
|
|
|
+ orderAmount: (payAmount >= 0 ? payAmount : 0).toFixed(2),
|
|
|
couponId: cartUseAmount.value.couponId,
|
|
|
useBalance: cartUseAmount.value.useBalance // 是否使用余额
|
|
|
}
|
|
@@ -190,12 +191,10 @@ export default defineComponent({
|
|
|
// )
|
|
|
// }
|
|
|
const needPayPrice = () => {
|
|
|
- let price = Number(
|
|
|
- (
|
|
|
- cartConfirm.calcAmount.payAmount -
|
|
|
- cartConfirm.calcAmount.promotionAmount
|
|
|
- ).toFixed(2)
|
|
|
- )
|
|
|
+ const payAmount =
|
|
|
+ cartConfirm.calcAmount.payAmount -
|
|
|
+ cartConfirm.calcAmount.promotionAmount
|
|
|
+ let price = Number((payAmount >= 0 ? payAmount : 0).toFixed(2))
|
|
|
console.log(price)
|
|
|
if (cartUseAmount.value.useBalance) {
|
|
|
price =
|