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,