From 1a6905045d38bb50b0c6554c3440bdfd339c8d23 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 30 七月 2024 19:13:46 +0800
Subject: [PATCH] ‘’
---
wechat_jiaxuan/app.js | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/wechat_jiaxuan/app.js b/wechat_jiaxuan/app.js
index 4bb2f46..1aa5ea5 100644
--- a/wechat_jiaxuan/app.js
+++ b/wechat_jiaxuan/app.js
@@ -10,7 +10,7 @@
App({
globalData,
onLaunch: function (op) {
- console.log('options', op.query.scene)
+ console.log('options', op.query)
let pathMap = [
'/pages/detailDis/product',
'/pages/detailDis/case',
@@ -27,10 +27,17 @@
wx.login({
timeout: 5000,
success: (res) => {
+ var userId = null
+ if (op.query.scene) {
+ let temp = op.query.scene.split('_')
+ userId = temp[2]
+ }
if (res.code) {
//鍙戣捣缃戠粶璇锋眰
wxLoginCustomer({
- code: res.code
+ code: res.code,
+ userId
+
}).then(res => {
wx.setStorageSync('token', res.data.token)
this.globalData.token = res.data.token
--
Gitblit v1.9.3