|
|
|
@@ -6,13 +6,13 @@ Page({ |
|
|
|
data: { |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
// console.log(option.id) |
|
|
|
// let that = this |
|
|
|
// if(option.id){ // 有ID则是通过分享链接进来的 |
|
|
|
// setTimeout(function(){ |
|
|
|
// that.inviteFun(option.id) |
|
|
|
// },1000) |
|
|
|
// } |
|
|
|
console.log(option.id) |
|
|
|
let that = this |
|
|
|
if(option.id){ // 有ID则是通过分享链接进来的 |
|
|
|
setTimeout(function(){ |
|
|
|
that.inviteFun(option.id) |
|
|
|
},1000) |
|
|
|
} |
|
|
|
}, |
|
|
|
inviteFun(id){ |
|
|
|
let token = wx.getStorageSync('token') |
|
|
|
|