|
|
@@ -4,8 +4,18 @@
|
|
|
onLaunch: function() {
|
|
|
console.log('App Launch')
|
|
|
},
|
|
|
- onShow: function() {
|
|
|
- console.log('App Show')
|
|
|
+ onShow: function(options) {
|
|
|
+ console.log('App Show')
|
|
|
+ //传递的参数 query
|
|
|
+ if (options.query) {
|
|
|
+ const shareADId = options.query.shareADId;
|
|
|
+ const shareUserId = options.query.shareUserId;
|
|
|
+ if(shareADId&&shareUserId) {
|
|
|
+ uni.reLaunch({
|
|
|
+ url: `/pagesHome/activityDetail?shareADId=${shareADId}&shareUserId=${shareUserId}`
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
onHide: function() {
|
|
|
console.log('App Hide')
|