From 5bfc1352e82140ac098b9f0537cc7d1457c87122 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期二, 05 八月 2025 10:44:04 +0800
Subject: [PATCH] 1

---
 pages/mine/index.vue |   41 +++++++++++++++++++++++++++++------------
 1 files changed, 29 insertions(+), 12 deletions(-)

diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index 9da555a..efbdad1 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -263,21 +263,38 @@
         }
       });
     },
-    subScriptionMessage() {
-      wx.requestSubscribeMessage({
-        tmplIds: [
-          'M4K_BNVG7g4hOAcrIDO18ux8KOTneHeNide5GdPW3kc',
-          'X467Xtd8HnFDNk-IoT0ChcdoBnClLZJQQwP7DMztYQ8',
-          'Gzc2BgzSsEY9uki6FThNQRLD1_An6uqpSve3PaU58PQ',
-        ],
-        success(res) {
-          console.log(res);
-        },
-        fail(res) {
-          console.log(res);
+subScriptionMessage() {
+  wx.requestSubscribeMessage({
+    tmplIds: [
+      'M4K_BNVG7g4hOAcrIDO18ux8KOTneHeNide5GdPW3kc',
+      'X467Xtd8HnFDNk-IoT0ChcdoBnClLZJQQwP7DMztYQ8',
+      'Gzc2BgzSsEY9uki6FThNQRLD1_An6uqpSve3PaU58PQ',
+    ],
+    success: (res) => {
+      console.log('璁㈤槄娑堟伅缁撴灉:', res);
+      const tmplIds = [
+        'M4K_BNVG7g4hOAcrIDO18ux8KOTneHeNide5GdPW3kc',
+        'X467Xtd8HnFDNk-IoT0ChcdoBnClLZJQQwP7DMztYQ8',
+        'Gzc2BgzSsEY9uki6FThNQRLD1_An6uqpSve3PaU58PQ',
+      ];
+      let acceptedCount = 0;
+      tmplIds.forEach(id => {
+        if (res[id] === 'accept') {
+          acceptedCount++;
         }
       });
+      if (acceptedCount > 0) {
+        this.$u.toast(`鎴愬姛璁㈤槄`);
+      } else {
+        this.$u.toast('宸插彇娑�');
+      }
     },
+    fail: (res) => {
+      console.error('璁㈤槄娑堟伅澶辫触:', res);
+      this.$u.toast('璁㈤槄娑堟伅澶辫触锛岃绋嶅悗閲嶈瘯');
+    }
+  });
+},
     questionnaire() {
       const msg = uni.getStorageSync('msg');
       if (msg) {

--
Gitblit v1.8.0