Commit 12ee8fb14fd301d7572c8fa0341413137865afde
1 parent
755e834f
专享礼包购买的bug优化
Showing
3 changed files
with
5 additions
and
2 deletions
pages/giftpack/buygiftpack/giftpackbuy.js
@@ -140,6 +140,8 @@ Page({ | @@ -140,6 +140,8 @@ Page({ | ||
140 | var th = this; | 140 | var th = this; |
141 | var index = e.currentTarget.dataset.index; //活动id | 141 | var index = e.currentTarget.dataset.index; //活动id |
142 | var sele_g=th.data.wareCard[index]; | 142 | var sele_g=th.data.wareCard[index]; |
143 | + this.data.payMoney=sele_g.payMoney; | ||
144 | + | ||
143 | th.setData({sele_g:sele_g,buyType:2,}) | 145 | th.setData({sele_g:sele_g,buyType:2,}) |
144 | if(sele_g.is_pickup){ | 146 | if(sele_g.is_pickup){ |
145 | if(sele_g.pickup_list && th.data.def_pick_store){ | 147 | if(sele_g.pickup_list && th.data.def_pick_store){ |
pages/giftpack/giftpacklist/giftpacklist.js
@@ -138,6 +138,7 @@ Page({ | @@ -138,6 +138,7 @@ Page({ | ||
138 | return false; | 138 | return false; |
139 | } | 139 | } |
140 | 140 | ||
141 | + this.data.payMoney=th.data.sele_g.payMoney; | ||
141 | th.setData({ buyType:2 }) | 142 | th.setData({ buyType:2 }) |
142 | if(th.data.sele_g.is_pickup){ | 143 | if(th.data.sele_g.is_pickup){ |
143 | th.setData({ | 144 | th.setData({ |
pages/giftpack/public/buy_com.js
@@ -484,6 +484,7 @@ module.exports = { | @@ -484,6 +484,7 @@ module.exports = { | ||
484 | }, | 484 | }, |
485 | 485 | ||
486 | check_def_pk:function (th) { | 486 | check_def_pk:function (th) { |
487 | + th.data.def_pick_store.is_no_dis=0; | ||
487 | var def_pick_store=th.data.def_pick_store | 488 | var def_pick_store=th.data.def_pick_store |
488 | var sele_g=th.data.sele_g; | 489 | var sele_g=th.data.sele_g; |
489 | var arr=sele_g.pickup_list.split(','); | 490 | var arr=sele_g.pickup_list.split(','); |
@@ -494,9 +495,8 @@ module.exports = { | @@ -494,9 +495,8 @@ module.exports = { | ||
494 | 495 | ||
495 | if(idx==-1){ | 496 | if(idx==-1){ |
496 | def_pick_store.is_no_dis=1; | 497 | def_pick_store.is_no_dis=1; |
497 | - th.setData({def_pick_store}) | ||
498 | } | 498 | } |
499 | - | 499 | + th.setData({def_pick_store}) |
500 | 500 | ||
501 | } | 501 | } |
502 | 502 |