From 724df24a66e592584730b86fba42c510d7155dc1 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Mon, 25 Mar 2019 15:16:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8B=BC=E5=9B=A2][=E4=BF=AE=E6=94=B9]:[?= =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E8=AF=A6=E6=83=85=E9=97=AE=E9=A2=98=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/joinFrDpell/index.js | 4 +++- pages/spellDetail/index.js | 11 ++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pages/joinFrDpell/index.js b/pages/joinFrDpell/index.js index f589b53..b6abd61 100644 --- a/pages/joinFrDpell/index.js +++ b/pages/joinFrDpell/index.js @@ -41,7 +41,9 @@ Page({ avatarUrl: options.avatarUrl, nickName: options.nickName, }) - this.checkUser(options); + if (options.orderGroupId){ + this.checkUser(options); + } }, gotoIndex(){ wx.reLaunch({ diff --git a/pages/spellDetail/index.js b/pages/spellDetail/index.js index d230d44..33dced9 100644 --- a/pages/spellDetail/index.js +++ b/pages/spellDetail/index.js @@ -69,9 +69,14 @@ Page({ this.setData({ paramData: options }) - this.getUserInfo() - this.getDetail(options); - this.checkUser(options) + this.getUserInfo(); + if (options.orderGroupId){ + if (options.orderId && options.couponId){ + this.getDetail(options); + } + this.checkUser(options); + } + // 关闭来自于左上角的分享 wx.hideShareMenu() },