Procházet zdrojové kódy

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP2.0_WEB

Simon Zhou před 4 roky
rodič
revize
31702cbb27

+ 8 - 1
src/views/market/spot_trade/components/post_buying/setup.ts

@@ -77,7 +77,14 @@ export function handleNumAndPrice(enumName: EnumRouterName, selectedRow: WrOrder
                 result = Math.round(canUseMoney / margin)
             }
         }
-        return +result.toFixed(0)
+
+        if (buymarginvalue !== 0) {
+            return +result.toFixed(0)
+        } else {
+            // 当市场设置的买保证金为0时,不做数量限制
+            return 10000
+        }
+        
     }
     //  摘牌金额
     function getMoney() {