Commit a2309cb9d3bbde4122f4dda265e312bbf36551ec

Authored by yvan.ni
1 parent b40e1ac9

分享的优化

Showing 1 changed file with 8 additions and 2 deletions
... ... @@ -994,11 +994,17 @@ App({
994 994 },
995 995  
996 996 //检验能不能分享
997   - check_can_share() {
  997 + check_can_share(th) {
998 998  
999 999 var userinfo=wx.getStorageSync("userinfo");
1000   - if (!this.globalData.user_id && !userinfo) wx.hideShareMenu();
  1000 + if (!this.globalData.user_id && !userinfo) {
  1001 + wx.hideShareMenu();
  1002 + if(th) th.setData({isLogin:0 })
  1003 +
  1004 +
  1005 + }
1001 1006 else{
  1007 + if(th) th.setData({isLogin:1 })
1002 1008 wx.showShareMenu({
1003 1009 withShareTicket: true,
1004 1010 menus: ["shareAppMessage", "shareTimeline"],
... ...