Commit 422e1ad37f03200ad9bfc02eed44d1f7b0651ef1
1 parent
49956f5f
1. 礼包分享的bug
Showing
1 changed file
with
3 additions
and
4 deletions
pages/giftpack/giftpacklist/giftpacklist.js
| ... | ... | @@ -31,8 +31,6 @@ Page({ |
| 31 | 31 | default_color:null, |
| 32 | 32 | }, |
| 33 | 33 | onLoad: function(options) { |
| 34 | - | |
| 35 | - | |
| 36 | 34 | var th = this; |
| 37 | 35 | th.setData({ |
| 38 | 36 | isBuy: options.isBuy, |
| ... | ... | @@ -43,6 +41,7 @@ Page({ |
| 43 | 41 | th.close(); |
| 44 | 42 | }, |
| 45 | 43 | onShow: function() { |
| 44 | + | |
| 46 | 45 | //--先判断会员状态-- |
| 47 | 46 | var user_info = getApp().globalData.userInfo; |
| 48 | 47 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
| ... | ... | @@ -383,9 +382,9 @@ Page({ |
| 383 | 382 | |
| 384 | 383 | pagePath+="?isBuy="+this.data.isBuy; |
| 385 | 384 | if(this.data.isBuy==0){ |
| 386 | - pagePath+="&lbId="+this.data.getGiftID; | |
| 387 | - }else{ | |
| 388 | 385 | pagePath+="&orderSn="+this.data.orderSn; |
| 386 | + }else{ | |
| 387 | + pagePath+="&lbId="+this.data.getGiftID; | |
| 389 | 388 | } |
| 390 | 389 | |
| 391 | 390 | return { | ... | ... |