From 703194877cd0429227e1218145023cbcafa7ce46 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Mon, 25 Mar 2019 15:26:38 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=88=91=E7=9A=84=E6=8B=BC=E5=9B=A2][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9]:[=E6=88=91=E7=9A=84=E6=8B=BC=E5=9B=A2undifi?= =?UTF-8?q?ned=E9=97=AE=E9=A2=98=E7=9A=84=E4=BF=AE=E6=94=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/spellGroup/mySpellGroup/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/spellGroup/mySpellGroup/index.js b/pages/spellGroup/mySpellGroup/index.js index 8c86012..b03ca9b 100644 --- a/pages/spellGroup/mySpellGroup/index.js +++ b/pages/spellGroup/mySpellGroup/index.js @@ -33,8 +33,12 @@ Page({ couponChannelId: options.couponChannelId, couponId: options.couponId }) - this.getDetail(options.couponChannelId); - this.getOneSpell(options.couponId) + if (options.couponChannelId){ + this.getDetail(options.couponChannelId); + } + if (options.couponId){ + this.getOneSpell(options.couponId) + } this.getUserInfo(); }, getUserInfo: function () {