价格/百分比模式开仓按钮靠右;持仓上限红字移到预估风险下方。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-12 20:45:47 +08:00
parent ce22f8c7d6
commit bacb5fdde4
6 changed files with 44 additions and 16 deletions
@@ -1306,6 +1306,8 @@ function setOmFieldVisible(inputEl, show){
}
function toggleSltpMode(){
const mode = sltpModeEl ? sltpModeEl.value : "fixed_rr";
const levelsRow = document.querySelector("#add-order-form .om-row-levels");
if(levelsRow) levelsRow.setAttribute("data-sltp-mode", mode);
const slEl = document.getElementById("order-sl");
const tpEl = document.getElementById("order-tp");
const fixedRrEl = document.getElementById("order-fixed-rr");