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 | 85 | var th = this; |
86 | 86 | console.log('分享参数---'); |
87 | 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 | 98 | this.setData({ |
89 | 99 | params: options, |
100 | + getGiftID:options.id | |
90 | 101 | }) |
91 | 102 | |
92 | 103 | getApp().getConfig(function (e) { |
... | ... | @@ -253,6 +264,10 @@ Page({ |
253 | 264 | }, |
254 | 265 | getList: function (e) { |
255 | 266 | var th = this; |
267 | + if (!d.user_id) { | |
268 | + th.getList2() | |
269 | + return | |
270 | + } | |
256 | 271 | getApp().request.get('/api/weshop/marketing/marketingMonthgiftbagForm/page', { |
257 | 272 | isShowLoading: true, |
258 | 273 | data: { |
... | ... | @@ -404,6 +419,7 @@ Page({ |
404 | 419 | getApp().goto('/packageE/pages/togoin/togoin'); |
405 | 420 | return false; |
406 | 421 | } |
422 | + | |
407 | 423 | if (th.data.params && th.data.params.is_act) { |
408 | 424 | this.getListInfo() |
409 | 425 | }else{ |
... | ... | @@ -879,7 +895,9 @@ Page({ |
879 | 895 | if (pagePath.indexOf('/') != 0) { |
880 | 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 | 901 | // if (this.data.isBuy == 0) { |
884 | 902 | // pagePath += "&orderSn=" + this.data.orderSn; |
885 | 903 | // } else { | ... | ... |