From 5b19b0e39a91e566a835460bf1213e7b3a0582b9 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期一, 17 三月 2025 14:27:14 +0800
Subject: [PATCH] 图

---
 pages/scanResult/index.js |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/pages/scanResult/index.js b/pages/scanResult/index.js
index d9f65b5..21cd7d6 100644
--- a/pages/scanResult/index.js
+++ b/pages/scanResult/index.js
@@ -30,6 +30,9 @@
           result,
           textValue: result.type == "PromoteCode" ? '棰嗗彇' : '婵�娲�'
         })
+        wx.setNavigationBarTitle({
+          title: result.type == "PromoteCode" ? '棰嗗彇浼樻儬鍗�' : '婵�娲诲晢鍝�',
+        })
         // this.getRules();
         this.getProductByCode();
       } else {
@@ -95,13 +98,14 @@
           wx.showModal({
             title: '娓╅Θ鎻愮ず',
             content: res,
-            showCancel: false
+            showCancel: false,
+            success(res) {
+              if (res.confirm)
+                wx.switchTab({
+                  url: '/pages/home/home',
+                })
+            }
           })
-          setTimeout(() => {
-            wx.navigateTo({
-              url: '/pages/codeRecord/index',
-            })
-          }, 2500);
         });
     } else {
       let that = this;
@@ -141,7 +145,9 @@
           showCancel: false,
           success(res) {
             if (res.confirm) {
-              wx.navigateBack()
+              wx.switchTab({
+                url: '/pages/home/home',
+              })
             }
           }
         })

--
Gitblit v1.9.1