Commit 04aa24bc9205124f895c62454a4d6e139065fffc
1 parent
da572fc1
oa单每月礼包分享
Showing
1 changed file
with
19 additions
and
1 deletions
packageE/pages/user/monthgiftbag/giftpackinfo/giftpackinfo.js
@@ -85,8 +85,19 @@ Page({ | @@ -85,8 +85,19 @@ Page({ | ||
85 | var th = this; | 85 | var th = this; |
86 | console.log('分享参数---'); | 86 | console.log('分享参数---'); |
87 | console.log(options); | 87 | console.log(options); |
88 | + if (options.lbId && !options.id) { | ||
89 | + options.id=options.lbId | ||
90 | + // options.lbId=options.id | ||
91 | + } | ||
92 | + if (options.id) { | ||
93 | + options.lbId=options.id | ||
94 | + // options.lbId=options.id | ||
95 | + } | ||
96 | + | ||
97 | + | ||
88 | this.setData({ | 98 | this.setData({ |
89 | params: options, | 99 | params: options, |
100 | + getGiftID:options.id | ||
90 | }) | 101 | }) |
91 | 102 | ||
92 | getApp().getConfig(function (e) { | 103 | getApp().getConfig(function (e) { |
@@ -253,6 +264,10 @@ Page({ | @@ -253,6 +264,10 @@ Page({ | ||
253 | }, | 264 | }, |
254 | getList: function (e) { | 265 | getList: function (e) { |
255 | var th = this; | 266 | var th = this; |
267 | + if (!d.user_id) { | ||
268 | + th.getList2() | ||
269 | + return | ||
270 | + } | ||
256 | getApp().request.get('/api/weshop/marketing/marketingMonthgiftbagForm/page', { | 271 | getApp().request.get('/api/weshop/marketing/marketingMonthgiftbagForm/page', { |
257 | isShowLoading: true, | 272 | isShowLoading: true, |
258 | data: { | 273 | data: { |
@@ -404,6 +419,7 @@ Page({ | @@ -404,6 +419,7 @@ Page({ | ||
404 | getApp().goto('/packageE/pages/togoin/togoin'); | 419 | getApp().goto('/packageE/pages/togoin/togoin'); |
405 | return false; | 420 | return false; |
406 | } | 421 | } |
422 | + | ||
407 | if (th.data.params && th.data.params.is_act) { | 423 | if (th.data.params && th.data.params.is_act) { |
408 | this.getListInfo() | 424 | this.getListInfo() |
409 | }else{ | 425 | }else{ |
@@ -879,7 +895,9 @@ Page({ | @@ -879,7 +895,9 @@ Page({ | ||
879 | if (pagePath.indexOf('/') != 0) { | 895 | if (pagePath.indexOf('/') != 0) { |
880 | pagePath = '/' + pagePath; | 896 | pagePath = '/' + pagePath; |
881 | } | 897 | } |
882 | - pagePath += "?isBuy=1" + "&lbId=" + this.data.getGiftID + "&first_leader=" + this.data.getUserID; | 898 | + pagePath += "?isBuy=1" + "&id=" + this.data.options.id + "&first_leader=" + this.data.getUserID; |
899 | + console.log('分享路径'); | ||
900 | + console.log(pagePath); | ||
883 | // if (this.data.isBuy == 0) { | 901 | // if (this.data.isBuy == 0) { |
884 | // pagePath += "&orderSn=" + this.data.orderSn; | 902 | // pagePath += "&orderSn=" + this.data.orderSn; |
885 | // } else { | 903 | // } else { |