|
@@ -27,19 +27,24 @@ Page({
|
|
|
if (!this.data.firstLoad) {
|
|
|
app.setFromSource(this.data.fromSource)
|
|
|
}
|
|
|
- if (app.globalData.userInfo) {
|
|
|
- setTimeout(() => {
|
|
|
- bonusUp((tipsFlag, tipsDatas) => {
|
|
|
- this.setData({
|
|
|
- tipsFlag,
|
|
|
- tipsDatas
|
|
|
- })
|
|
|
- })
|
|
|
- }, 0);
|
|
|
- }
|
|
|
+
|
|
|
+ // if (app.globalData.userInfo) {
|
|
|
+ // setTimeout(() => {
|
|
|
+ // bonusUp((tipsFlag, tipsDatas) => {
|
|
|
+ // this.setData({
|
|
|
+ // tipsFlag,
|
|
|
+ // tipsDatas
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // }, 0);
|
|
|
+ // }
|
|
|
},
|
|
|
|
|
|
- onLoad: function () {
|
|
|
+ onLoad: function (options) {
|
|
|
+ console.log('index onLoad:',options)
|
|
|
+ if (!options.relay_id) {
|
|
|
+ app.globalData.relay_id = options.relay_id
|
|
|
+ }
|
|
|
// this.req_tabs();
|
|
|
this.getDatas(0)
|
|
|
},
|
|
@@ -138,9 +143,12 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
onShareAppMessage: function () {
|
|
|
+ console.log('index onShareAppMessage')
|
|
|
+ let relay_id = 100
|
|
|
+
|
|
|
return {
|
|
|
title: `${app.globalData.channel}小程序`,
|
|
|
- path: "/pages/index/index"
|
|
|
+ path: "/pages/index/index?relay_id=${relay_id}"
|
|
|
}
|
|
|
},
|
|
|
onReachBottom: function () {
|