From ad982c75d7c93f4b1a573525ce9d8ddf062bcae4 Mon Sep 17 00:00:00 2001 From: Default User Date: Fri, 9 Jan 2026 15:09:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E6=9E=B6?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=E5=8F=88=E6=98=BE=E7=A4=BA=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B0=86=E4=B8=8A?= =?UTF-8?q?=E6=9E=B6=E6=8C=89=E9=92=AE=E9=A2=9C=E8=89=B2=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E8=93=9D=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply.html | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/supply.html b/supply.html index 815f37d..28006ab 100644 --- a/supply.html +++ b/supply.html @@ -703,13 +703,13 @@ } .modal-btn-primary { - background-color: #52c41a; + background-color: #1890ff; color: white; } .modal-btn-primary:hover { - background-color: #73d13d; - box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3); + background-color: #40a9ff; + box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3); } /* 确保模态框底部按钮区域不会被遮挡 */ @@ -4573,7 +4573,7 @@ `; } else if (supply.status === 'rejected') { actionsHTML = ` - + `; @@ -6917,17 +6917,8 @@ // 编辑后上架货源 async function publishSupplyAfterEdit() { - try { - // 直接调用saveEditSupply,它会处理保存和上架逻辑 - const result = await saveEditSupply(); - if (!result) { - // 编辑失败,saveEditSupply函数已经显示了错误信息 - return; - } - } catch (error) { - console.error('上架失败:', error); - alert('上架失败: ' + (error.message || '未知错误')); - } + // 直接调用saveEditSupply,它会处理保存和上架逻辑 + await saveEditSupply(); } // 上架货源