huangbin 4 rokov pred
rodič
commit
875287d178

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

@@ -217,7 +217,7 @@ export default defineComponent({
                 if (marginType === 1) {
                     if (getMoney()) {
                         // 履约保证金=挂牌金额*保证金比例
-                        result = ((getMoney() * marginValue) / 100).toFixed(2);
+                        result = (getMoney() * marginValue).toFixed(2);
                     }
                 } else {
                     if (formState.OrderQty) {
@@ -243,7 +243,7 @@ export default defineComponent({
                     // 合约单位
                     const agreeunit = getGoodsAgreeunitByGoodsCode(goodscode);
                     // 最大可挂牌数量=可用/(价格*合约单位*保证金比例
-                    result = money / (((+price * marginValue) / 100) * agreeunit);
+                    result = money / (+price * marginValue * agreeunit);
                 } else {
                     // 最大可挂牌数量=可用/保证金固定值
                     result = money / marginValue;