浏览代码

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

Simon Zhou 4 年之前
父节点
当前提交
31702cbb27
共有 1 个文件被更改,包括 8 次插入1 次删除
  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() {