diff --git a/pages/giftpack/giftpacklist/giftpacklist.js b/pages/giftpack/giftpacklist/giftpacklist.js index 1e0becd..9f55db1 100644 --- a/pages/giftpack/giftpacklist/giftpacklist.js +++ b/pages/giftpack/giftpacklist/giftpacklist.js @@ -31,8 +31,6 @@ Page({ default_color:null, }, onLoad: function(options) { - - var th = this; th.setData({ isBuy: options.isBuy, @@ -43,6 +41,7 @@ Page({ th.close(); }, onShow: function() { + //--先判断会员状态-- var user_info = getApp().globalData.userInfo; if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { @@ -383,9 +382,9 @@ Page({ pagePath+="?isBuy="+this.data.isBuy; if(this.data.isBuy==0){ - pagePath+="&lbId="+this.data.getGiftID; - }else{ pagePath+="&orderSn="+this.data.orderSn; + }else{ + pagePath+="&lbId="+this.data.getGiftID; } return {