huangbin 4 سال پیش
والد
کامیت
6b2d0e2983

+ 2 - 2
src/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_swap/components/post_buying/index.vue

@@ -217,12 +217,12 @@ export default defineComponent({
                 if (marginType === 1) {
                     if (getMoney()) {
                         // 履约保证金=挂牌金额*保证金比例
-                        result = (getMoney() * marginValue).toFixed(2);
+                        result = (Math.round(getMoney() * marginValue * 100) / 100).toString();
                     }
                 } else {
                     if (formState.OrderQty) {
                         // 履约保证金=挂牌数量*保证金固定值
-                        result = (formState.OrderQty * marginValue).toFixed(2);
+                        result = (Math.round(formState.OrderQty * marginValue * 100) / 100).toString();
                     }
                 }
             }