diff --git a/app.js b/app.js index a6b002c..e30525f 100644 --- a/app.js +++ b/app.js @@ -994,11 +994,17 @@ App({ }, //检验能不能分享 - check_can_share() { + check_can_share(th) { var userinfo=wx.getStorageSync("userinfo"); - if (!this.globalData.user_id && !userinfo) wx.hideShareMenu(); + if (!this.globalData.user_id && !userinfo) { + wx.hideShareMenu(); + if(th) th.setData({isLogin:0 }) + + + } else{ + if(th) th.setData({isLogin:1 }) wx.showShareMenu({ withShareTicket: true, menus: ["shareAppMessage", "shareTimeline"],