Parcourir la source

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

Simon Zhou il y a 4 ans
Parent
commit
31702cbb27
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      src/views/market/spot_trade/components/post_buying/setup.ts

+ 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() {