From bf67d777344e1ad2819d78b9d897776b2768b2be Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Mon, 25 Mar 2019 20:27:59 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8B=BC=E5=9B=A2=E6=A0=B7=E5=BC=8F=E5=BE=97?= =?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/spellGroup/mySpellGroup/index.js | 4 ++-- pages/spellGroup/spellGroup.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/spellGroup/mySpellGroup/index.js b/pages/spellGroup/mySpellGroup/index.js index f778698..ca19f28 100644 --- a/pages/spellGroup/mySpellGroup/index.js +++ b/pages/spellGroup/mySpellGroup/index.js @@ -33,10 +33,10 @@ Page({ couponChannelId: options.couponChannelId, couponId: options.couponId }) - if (options.couponChannelId){ + if (options&&options.couponChannelId){ this.getDetail(options.couponChannelId); } - if (options.couponId){ + if (options&&options.couponId){ this.getOneSpell(options.couponId) } this.getUserInfo(); diff --git a/pages/spellGroup/spellGroup.js b/pages/spellGroup/spellGroup.js index a4c82da..8dee4b7 100644 --- a/pages/spellGroup/spellGroup.js +++ b/pages/spellGroup/spellGroup.js @@ -33,7 +33,7 @@ Page({ todayDate: todayDate }) that.getList(1, "spellList"); - that.getUserInfo() + that.getUserInfo(); that.setData({ flag: "spellList", spellList: true,