|
@@ -6,18 +6,21 @@
|
|
|
userInfo: {},
|
|
|
},
|
|
|
onLaunch: function(options) {
|
|
|
- console.log(`====参数app====`, options.query);
|
|
|
if (options.query && options.query.qrCode) {
|
|
|
const { qrCode } = options.query
|
|
|
let parameter = urlParameter(qrCode)
|
|
|
- uni.reLaunch({
|
|
|
- url: `/pages/lucky/index?id=${ parameter.id }`
|
|
|
- })
|
|
|
+ uni.setStorageSync('code', parameter.id)
|
|
|
}
|
|
|
uni.hideTabBar()
|
|
|
},
|
|
|
- onShow: function() {
|
|
|
+ onShow: function(options) {
|
|
|
+ if (options.query && options.query.qrCode) {
|
|
|
+ const { qrCode } = options.query
|
|
|
+ let parameter = urlParameter(qrCode)
|
|
|
+ uni.setStorageSync('code', parameter.id)
|
|
|
+ }
|
|
|
this.updateManager()
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
updateManager() {
|