From e58400c3fec99bbf7d896933319509f5d0695710 Mon Sep 17 00:00:00 2001 From: leon <916117771@qq.com> Date: Tue, 28 Apr 2026 19:00:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20=E4=BF=AE=E5=A4=8D=E7=AD=9B?= =?UTF-8?q?=E5=8F=B7=E5=99=A8=E6=B3=A2=E8=89=B2=E6=8C=89=E9=92=AE=E6=97=A0?= =?UTF-8?q?=E6=95=88=E5=92=8C=E5=B0=BE=E5=8F=B7=E9=80=BB=E8=BE=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 波色按钮class名nf-color与容器id冲突,改为nf-color-btn 2. 尾号选择改为屏蔽选中尾号的号码(之前是反向逻辑) --- public/assets/js/backend/history.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/public/assets/js/backend/history.js b/public/assets/js/backend/history.js index 6b81ecf..95a0d0b 100644 --- a/public/assets/js/backend/history.js +++ b/public/assets/js/backend/history.js @@ -777,10 +777,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin '' + '
' + ' ' + - '
' + - ' ' + - ' ' + - ' ' + + '
' + + ' ' + + ' ' + + ' ' + '
' + '
' + '
' + @@ -809,7 +809,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin }); // 波色按钮点击 - $('.nf-color', layero).on('click', function () { + $('.nf-color-btn', layero).on('click', function () { var $btn = $(this); $btn.toggleClass('btn-default').toggleClass('btn-gray'); Controller.api.applyNumberFilters(layero); @@ -819,7 +819,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin $('.btn-nf-reset', layero).on('click', function () { $('#nf-tail', layero).val(''); $('.nf-zodiac', layero).removeClass('btn-gray').addClass('btn-default'); - $('.nf-color', layero).removeClass('btn-gray').addClass('btn-default'); + $('.nf-color-btn', layero).removeClass('btn-gray').addClass('btn-default'); Controller.api.applyNumberFilters(layero); }); } @@ -854,7 +854,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin }); // 收集被点击(置灰)的波色 var excludedColors = []; - $('.nf-color.btn-gray', layero).each(function () { + $('.nf-color-btn.btn-gray', layero).each(function () { excludedColors.push($(this).data('color')); }); @@ -867,8 +867,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin var hidden = false; - // 尾号筛选:选择了具体尾号则隐藏不匹配的 - if (tailVal !== '' && parseInt(tailVal) !== tail) { + // 尾号筛选:选择了具体尾号则屏蔽该尾号 + if (tailVal !== '' && parseInt(tailVal) === tail) { hidden = true; } // 排除的生肖