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 () {