|
@@ -112,6 +112,8 @@
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
//this.refresh();
|
|
//this.refresh();
|
|
|
|
|
+ console.log('测试',getApp().globalData.user_id)
|
|
|
|
|
+ console.log('上级id对象',options.inviteId)
|
|
|
getApp().globalData.lastId = options.inviteId ? options.inviteId : getApp().globalData.user_id
|
|
getApp().globalData.lastId = options.inviteId ? options.inviteId : getApp().globalData.user_id
|
|
|
this.loginRequest();
|
|
this.loginRequest();
|
|
|
this.getPageProductList();
|
|
this.getPageProductList();
|
|
@@ -163,6 +165,7 @@
|
|
|
success: res => {
|
|
success: res => {
|
|
|
// 通过openid发起会员登录
|
|
// 通过openid发起会员登录
|
|
|
console.log('userId',res.data.msg.id)
|
|
console.log('userId',res.data.msg.id)
|
|
|
|
|
+ console.log('lastId',getApp().globalData.lastId)
|
|
|
getApp().globalData.user_id = res.data.msg.id;
|
|
getApp().globalData.user_id = res.data.msg.id;
|
|
|
getApp().globalData.open_id = res.data.msg.openid;
|
|
getApp().globalData.open_id = res.data.msg.openid;
|
|
|
getApp().globalData.isAuth = res.data.msg.auth_status === '1';
|
|
getApp().globalData.isAuth = res.data.msg.auth_status === '1';
|
|
@@ -175,8 +178,9 @@
|
|
|
// getApp().globalData.total_times = res.data.msg.total_times;
|
|
// getApp().globalData.total_times = res.data.msg.total_times;
|
|
|
this.isAuth = getApp().globalData.isAuth;
|
|
this.isAuth = getApp().globalData.isAuth;
|
|
|
this.isAuthPhone = getApp().globalData.user_phone;
|
|
this.isAuthPhone = getApp().globalData.user_phone;
|
|
|
|
|
+ let lastId = getApp().globalData.lastId ? getApp().globalData.lastId : res.data.msg.id
|
|
|
this.getPageInfo(res.data.msg.id);
|
|
this.getPageInfo(res.data.msg.id);
|
|
|
- this.getShareInfo(res.data.msg.id)
|
|
|
|
|
|
|
+ this.getShareInfo(lastId)
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|