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,8 +31,6 @@ Page({ | ||
31 | default_color:null, | 31 | default_color:null, |
32 | }, | 32 | }, |
33 | onLoad: function(options) { | 33 | onLoad: function(options) { |
34 | - | ||
35 | - | ||
36 | var th = this; | 34 | var th = this; |
37 | th.setData({ | 35 | th.setData({ |
38 | isBuy: options.isBuy, | 36 | isBuy: options.isBuy, |
@@ -43,6 +41,7 @@ Page({ | @@ -43,6 +41,7 @@ Page({ | ||
43 | th.close(); | 41 | th.close(); |
44 | }, | 42 | }, |
45 | onShow: function() { | 43 | onShow: function() { |
44 | + | ||
46 | //--先判断会员状态-- | 45 | //--先判断会员状态-- |
47 | var user_info = getApp().globalData.userInfo; | 46 | var user_info = getApp().globalData.userInfo; |
48 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { | 47 | if (user_info == null || user_info.mobile == undefined || user_info.mobile == "" || user_info.mobile == null) { |
@@ -383,9 +382,9 @@ Page({ | @@ -383,9 +382,9 @@ Page({ | ||
383 | 382 | ||
384 | pagePath+="?isBuy="+this.data.isBuy; | 383 | pagePath+="?isBuy="+this.data.isBuy; |
385 | if(this.data.isBuy==0){ | 384 | if(this.data.isBuy==0){ |
386 | - pagePath+="&lbId="+this.data.getGiftID; | ||
387 | - }else{ | ||
388 | pagePath+="&orderSn="+this.data.orderSn; | 385 | pagePath+="&orderSn="+this.data.orderSn; |
386 | + }else{ | ||
387 | + pagePath+="&lbId="+this.data.getGiftID; | ||
389 | } | 388 | } |
390 | 389 | ||
391 | return { | 390 | return { |