From aab41b4cf71b53bc7d04c175ff04ea3f3ea2fd70 Mon Sep 17 00:00:00 2001 From: jackyu66git Date: Fri, 4 Jul 2025 00:54:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0250=E5=9D=87=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/templates/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/templates/index.html b/web/templates/index.html index 1ac20f3..cf3a01e 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -3947,7 +3947,7 @@ const defaultEMAs = [ { type: 'EMA', length: 5, color: '#FF0000', name: 'EMA5' }, // 红色 { type: 'EMA', length: 10, color: '#0000FF', name: 'EMA10' }, // 蓝色 - { type: 'EMA', length: 26, color: '#00FF00', name: 'EMA26' }, // 绿色 + { type: 'EMA', length: 26, color: '#008000', name: 'EMA26' }, // 深绿色 { type: 'EMA', length: 52, color: '#800080', name: 'EMA52' } // 紫色 ]; @@ -6952,8 +6952,8 @@ }); // 验证输入 - if (config.length < 1 || config.length > 200) { - alert('均线长度必须在1-200之间'); + if (config.length < 1) { + alert('均线长度必须大于0'); return; } @@ -7235,8 +7235,8 @@ const newSmoothLength = parseInt($('#maSmoothLength').val()); const newSmoothType = $('#maSmoothType').val(); - if (newLength < 1 || newLength > 200) { - alert('均线长度必须在1-200之间'); + if (newLength < 1) { + alert('均线长度必须大于0'); return; }