Browse Source

Update index.tsx

lex 2 years ago
parent
commit
265b8932f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/cart/cart-confirm/index.tsx

+ 1 - 1
src/views/cart/cart-confirm/index.tsx

@@ -149,7 +149,7 @@ export default defineComponent({
         cartIds: ids,
         memberReceiveAddressId: address.value?.id,
         platformType: state.platformType,
-        orderAmount: (payAmount >= 0 ? payAmount : 0).toFixed(2),
+        orderAmount: Number((payAmount >= 0 ? payAmount : 0).toFixed(2)),
         couponId: cartUseAmount.value.couponId,
         useBalance: cartUseAmount.value.useBalance // 是否使用余额
       }