From 076b2a90d0ddd75e4e27d3813b6143abbca25597 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 24 七月 2024 17:40:09 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
---
wechat_jiaxuan/app.js | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/wechat_jiaxuan/app.js b/wechat_jiaxuan/app.js
index e56016f..2920c51 100644
--- a/wechat_jiaxuan/app.js
+++ b/wechat_jiaxuan/app.js
@@ -1,16 +1,26 @@
-import { wxLoginCustomer } from './api/index'
+import {
+ wxLoginCustomer
+} from './api/index'
App({
globalData: {
primary: '#B08771',
bottomLift: ''
},
- onLaunch: function () {
+ onLaunch: function (op) {
+ console.log('options', op.query.scene);
+ let pathMap = [
+ '/pages/detailDis/product',
+ '/pages/detailDis/case',
+ '/pages/detailDis/realpic',
+ '/pages/consult/detail',
+ '/pages/productVideo/index',
+ ]
//鑾峰彇褰撳墠璁惧淇℃伅
const WindowInfo = wx.getWindowInfo()
if (WindowInfo.safeArea.top > 20) {
this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom;
}
- //
+ // 鎺堟潈鐧诲綍
wx.login({
timeout: 5000,
success(res) {
@@ -25,6 +35,12 @@
wx.setStorageSync('openid', res.data.member.openid)
wx.setStorageSync('sessionKey', res.data.sessionKey)
wx.setStorageSync('token', res.data.token)
+ if(op.query.scene){
+ let temp = op.query.scene.split('&')
+ wx.navigateTo({
+ url: `${pathMap[temp[1]]}?id=${temp[0]}`,
+ })
+ }
} else {
console.log('鐧诲綍澶辫触锛�')
}
@@ -37,5 +53,8 @@
console.log(err)
}
})
+
+
+
}
})
\ No newline at end of file
--
Gitblit v1.9.3