Commit 77d9102bccc11d8c22935c0d714341e22d046222

Authored by yvan.ni
1 parent 94b368d0

需要带入this对象判断是不是可以分享

pages/index/index/index.js
@@ -435,7 +435,7 @@ Page({ @@ -435,7 +435,7 @@ Page({
435 //要等一下会员默认登录 435 //要等一下会员默认登录
436 getApp().waitfor_login(async ()=> { 436 getApp().waitfor_login(async ()=> {
437 437
438 - getApp().check_can_share(); 438 + getApp().check_can_share(th);
439 if (typeof this.getTabBar === 'function' && this.getTabBar()) { 439 if (typeof this.getTabBar === 'function' && this.getTabBar()) {
440 this.getTabBar().setData({ 440 this.getTabBar().setData({
441 cartGoodsNum: getApp().globalData.cartGoodsNum 441 cartGoodsNum: getApp().globalData.cartGoodsNum
pages/user/index/index.js
@@ -132,7 +132,7 @@ Page({ @@ -132,7 +132,7 @@ Page({
132 privacy_pop.check_pri_show(); 132 privacy_pop.check_pri_show();
133 } 133 }
134 134
135 - getApp().check_can_share(); 135 + getApp().check_can_share(this);
136 //看一下小程序是不是过期了 136 //看一下小程序是不是过期了
137 getApp().getConfig2(function (config2) { 137 getApp().getConfig2(function (config2) {
138 if (config2 && config2.is_overdue == 1) { 138 if (config2 && config2.is_overdue == 1) {