| | |
| | | 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) { |
| | |
| | | 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('登录失败!') |
| | | } |