|
|
|
@ -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 = ` |
|
|
|
<button class="${supply.label === 1 ? 'btn-disabled' : 'btn-success'}" ${supply.label === 1 ? '' : `onclick="preparePublishSupply('${supply.id}')"`}>上架</button> |
|
|
|
<button class="${supply.label === 1 ? 'btn-disabled' : 'btn-primary'}" ${supply.label === 1 ? '' : `onclick="preparePublishSupply('${supply.id}')"`}>上架</button> |
|
|
|
<button class="btn-danger" onclick="deleteSupply('${supply.id}')">删除</button> |
|
|
|
<button class="btn-primary" onclick="showRejectReason('${supply.id}')">查看原因</button> |
|
|
|
`; |
|
|
|
@ -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(); |
|
|
|
} |
|
|
|
|
|
|
|
// 上架货源 |
|
|
|
|