From ccda9ec2fe70d8f51ef184eafc04b78d22dfbabd Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期三, 26 六月 2024 15:02:28 +0800
Subject: [PATCH] 小程序,教材,课程

---
 pages/home/home.js |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/pages/home/home.js b/pages/home/home.js
index 0feef1c..9bd1189 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -592,6 +592,22 @@
 
   },
 
+  // 鎵竴鎵�
+  onIconScanTap() {
+    wx.scanCode({
+      success(res) {
+        console.log(res);
+        if (res.errMsg == "scanCode:ok" && res.path) {
+          console.log(res.path, 2)
+          wx.redirectTo({
+            url: '/' + res.path,
+          })
+        }
+      }
+    })
+  },
+
+
 
   // 鐩戝惉婊氬姩鏉�
   onScroll(e) {

--
Gitblit v1.9.1