From be84838fd3e7e58ed1db0412cbd51a9f6ba332f8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 12 二月 2026 16:36:48 +0800
Subject: [PATCH] 进销存升级app: 1.确认消息后,页面展示乱码 2.消息通知页面样式修改与优化 3.新增客户拜访后,点击签到页面无响应

---
 src/App.vue |   29 ++++++++++++++++++++++++++---
 1 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 9023f62..bd95a27 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -7,6 +7,7 @@
 <script setup>
   import { ref, onMounted } from "vue";
   import Splash from "./components/Splash.vue";
+  import { confirmMessage } from "@/api/login.js";
 
   const showSplash = ref(true);
   onMounted(() => {
@@ -54,9 +55,31 @@
   // 澶勭悊鎺ㄩ�佹秷鎭偣鍑讳簨浠�
   const handlePushClick = msg => {
     console.log("鐐瑰嚮鎺ㄩ�佹秷鎭�:", msg);
-    uni.navigateTo({
-      url: msg.payload.pagePath,
-    });
+    console.log("瑙f瀽鍚�:", msg.payload.noticeId);
+    try {
+      confirmMessage(msg.payload.noticeId, 1).then(res => {
+        if (msg.payload.url) {
+          if (msg.payload.url.indexOf("/") === 0) {
+            uni.navigateTo({
+              url: msg.payload.url,
+            });
+          } else {
+            uni.navigateTo({
+              url: "/" + msg.payload.url,
+            });
+          }
+        }
+      });
+    } catch (error) {
+      uni.showToast({
+        title: "璺緞:" + msg.payload,
+        icon: "none",
+      });
+      uni.showToast({
+        title: "璺宠浆澶辫触:" + error.message,
+        icon: "none",
+      });
+    }
     // 瑙f瀽骞跺鐞嗘帹閫佹秷鎭�...
   };
 

--
Gitblit v1.9.3