...
|
...
|
@@ -44,6 +44,14 @@ Page(extend({},Toast,{ data: { |
|
|
// console.log('avatar tapped!!')
|
|
|
},
|
|
|
|
|
|
getUserInfo() {
|
|
|
tt.getUserInfo({
|
|
|
success(info) {
|
|
|
checkLoginWithAction({ logged: this.logged, loginSuccess: this.loginSuccess, isJump: true });
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
onLoad: function (options) {
|
|
|
this.setData({
|
|
|
hasUnionID: app.globalData.WXUnion_ID !== null && app.globalData.WXUnion_ID !== '' && app.globalData.WXUnion_ID !== undefined ? true:false,
|
...
|
...
|
@@ -94,7 +102,7 @@ Page(extend({},Toast,{ data: { |
|
|
},
|
|
|
|
|
|
onShow: function() {
|
|
|
checkLoginWithAction({ logged: this.logged, loginSuccess: this.loginSuccess });
|
|
|
checkLoginWithAction({ logged: this.logged, loginSuccess: this.loginSuccess, isJump: false });
|
|
|
// console.log("app.isLogin():", app.globalData.userInfo)
|
|
|
// if (app.isLogin()) {
|
|
|
// // this.data.isLogin = true;
|
...
|
...
|
|