From 77d9102bccc11d8c22935c0d714341e22d046222 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sun, 10 Mar 2024 20:07:32 +0800 Subject: [PATCH] 需要带入this对象判断是不是可以分享 --- pages/index/index/index.js | 2 +- pages/user/index/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index/index/index.js b/pages/index/index/index.js index eac6e87..41ff22d 100644 --- a/pages/index/index/index.js +++ b/pages/index/index/index.js @@ -435,7 +435,7 @@ Page({ //要等一下会员默认登录 getApp().waitfor_login(async ()=> { - getApp().check_can_share(); + getApp().check_can_share(th); if (typeof this.getTabBar === 'function' && this.getTabBar()) { this.getTabBar().setData({ cartGoodsNum: getApp().globalData.cartGoodsNum diff --git a/pages/user/index/index.js b/pages/user/index/index.js index 3308413..960d48e 100644 --- a/pages/user/index/index.js +++ b/pages/user/index/index.js @@ -132,7 +132,7 @@ Page({ privacy_pop.check_pri_show(); } - getApp().check_can_share(); + getApp().check_can_share(this); //看一下小程序是不是过期了 getApp().getConfig2(function (config2) { if (config2 && config2.is_overdue == 1) { -- libgit2 0.21.4