diff --git a/track-uniapp/src/pages/notify/index.vue b/track-uniapp/src/pages/notify/index.vue index 9092b8e..e2292bd 100644 --- a/track-uniapp/src/pages/notify/index.vue +++ b/track-uniapp/src/pages/notify/index.vue @@ -102,7 +102,13 @@ function formatTime(t) { async function handleCardTap(item) { if (!item.is_read) { - try { await markNotificationRead(item.id); item.is_read = true; } catch {} + try { + await markNotificationRead(item.id); + item.is_read = true; + } catch { + uni.showToast({ title: "标记已读失败,请下拉刷新重试", icon: "none", duration: 2000 }); + return; + } } // 🚀 优先使用 product_serial_number,兜底从 content 中解析 let sn = item.product_serial_number || "";