fix条件单划转常显,标的与方向同一行。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-13 19:49:34 +08:00
parent 96c78b2ed1
commit ac8a775b98
4 changed files with 36 additions and 39 deletions
+1 -11
View File
@@ -379,7 +379,7 @@
'<span class="cond-inst-name">' +
escapeHtml(it.name || "") +
"</span>" +
'<span class="cond-inst-fund-line" data-xfer-toggle="1">' +
'<span class="cond-inst-fund-line">' +
'<span class="cond-inst-funds cond-inst-funds--trading" title="交易账户可用">交易 ' +
escapeHtml(fmtTradingU(it.trading_usdt)) +
"</span>" +
@@ -494,22 +494,12 @@
);
});
});
box.querySelectorAll("[data-xfer-toggle]").forEach(function (el) {
el.addEventListener("click", function (ev) {
ev.preventDefault();
ev.stopPropagation();
const card = el.closest(".cond-inst");
if (!card || card.classList.contains("is-off")) return;
card.classList.toggle("is-xfer-open");
});
});
box.querySelectorAll(".cond-inst-name").forEach(function (el) {
el.addEventListener("click", function (ev) {
const card = el.closest(".cond-inst");
if (!card || card.classList.contains("is-off")) return;
const cb = card.querySelector('input[name="cf-inst"]');
if (!cb || cb.disabled) return;
// 点名称切换勾选(避免点余额误勾)
if (ev.target === el) {
cb.checked = !cb.checked;
}
+9 -5
View File
@@ -1496,6 +1496,13 @@ input.readonly {
color: #b6c7da;
margin-bottom: 6px;
}
.cond-uly-side-row {
display: flex;
flex-wrap: wrap;
gap: 12px 16px;
align-items: end;
}
.cond-uly-side-item { min-width: 0; }
.cond-native-select[hidden] { display: none !important; }
.cond-seg {
display: inline-flex;
@@ -1621,7 +1628,7 @@ input.readonly {
margin: 2px 0 0;
flex-shrink: 0;
grid-column: 1;
grid-row: 1;
grid-row: 1 / span 2;
align-self: start;
}
.cond-inst-main {
@@ -1655,9 +1662,7 @@ input.readonly {
flex-wrap: wrap;
gap: 6px 12px;
margin-top: 3px;
cursor: pointer;
}
.cond-inst.is-off .cond-inst-fund-line { cursor: default; }
.cond-inst-funds {
color: var(--accent-2, #38bdf8);
font-size: 0.76rem;
@@ -1670,7 +1675,7 @@ input.readonly {
font-weight: 500;
}
.cond-inst-actions {
display: none;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
@@ -1678,7 +1683,6 @@ input.readonly {
grid-row: 2;
padding-top: 2px;
}
.cond-inst.is-xfer-open .cond-inst-actions { display: flex; }
.cond-inst-xfer {
flex-shrink: 0;
white-space: nowrap;