diff --git a/Scripts/NewAddToCart_Web.js b/Scripts/NewAddToCart_Web.js index ffb451b..c179f7d 100644 --- a/Scripts/NewAddToCart_Web.js +++ b/Scripts/NewAddToCart_Web.js @@ -151,11 +151,43 @@ function finalizeAndClean() { } } +function doneWithPage(title, message, type = "warn") { + const color = type === "error" ? "#e05050" : type === "warn" ? "#e8a838" : "#52b043"; + const icon = type === "error" ? "❌" : type === "warn" ? "⚠️" : "✅"; + const html = ` + +
+ + +cart-x-authorization-muidcart-ms-cv", "error");
return;
}
if (productList.length === 0) {
@@ -167,9 +199,9 @@ function startTask() {
url: REMOTE_COMMIT_URL,
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ remaining: {} })
- }, () => $done({}));
+ }, () => doneWithPage("暂无商品", `远程队列与本地列表均为空,无需加购。