From af2e38d1d72633d03afdb6e75f8d30b7ef0d0aee Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 29 七月 2024 15:24:30 +0800 Subject: [PATCH] 图书详情页添加对云学习目录整体购买的判断 --- pages/home/home.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/home/home.js b/pages/home/home.js index 38aed50..7df68cf 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -596,10 +596,10 @@ wx.scanCode({ success(res) { console.log(res); - if (res.errMsg == "scanCode:ok" && res.path) { - console.log(res.path, 2) + if (res.errMsg == "scanCode:ok" && res.path || res.result) { + let path = res.path || res.result wx.redirectTo({ - url: '/' + res.path, + url: '/' + path, }) } } -- Gitblit v1.9.1