Commit 982791765affb25d8306d81973c1a9d4c77f9c02
1 parent
e2317d17
1、 服务卡项的拼团服务,判断有没有待支付的
Showing
1 changed file
with
13 additions
and
3 deletions
packageA/pages/serviceCard_pd/goodsInfo/goodsInfo.js
| ... | ... | @@ -876,6 +876,7 @@ Page({ |
| 876 | 876 | //----------立即购买----------- |
| 877 | 877 | buyNow: function(e) { |
| 878 | 878 | getApp().globalData.service_now=e; |
| 879 | + this.setData({openSpecModal_pt:0}) | |
| 879 | 880 | wx.redirectTo({ |
| 880 | 881 | url: "/packageA/pages/cart2_ser/cart2_ser", |
| 881 | 882 | }); |
| ... | ... | @@ -884,6 +885,7 @@ Page({ |
| 884 | 885 | //----------立即购买_pt----------- |
| 885 | 886 | buyNow_pt: function (e) { |
| 886 | 887 | getApp().set_b_now(e); |
| 888 | + this.setData({openSpecModal_pt:0}) | |
| 887 | 889 | getApp().goto("/packageA/pages/serviceCard_pd/cart/cart?is_bnow=1&goods_id=" + e.goods_id); |
| 888 | 890 | }, |
| 889 | 891 | |
| ... | ... | @@ -3291,9 +3293,10 @@ Page({ |
| 3291 | 3293 | } |
| 3292 | 3294 | |
| 3293 | 3295 | //拼单商品从这里进,先判断有没有买过商品, |
| 3294 | - getApp().request.get("/api/weshop/order/page", { | |
| 3296 | + getApp().request.get("/api/weshop/rechargeServicelist/page", { | |
| 3295 | 3297 | data: { |
| 3296 | - pt_prom_id: th.data.prom_act.id, | |
| 3298 | + prom_id: th.data.prom_act.id, | |
| 3299 | + prom_type: 6, | |
| 3297 | 3300 | user_id: oo.user_id, |
| 3298 | 3301 | store_id: os.stoid, |
| 3299 | 3302 | pageSize: 1, |
| ... | ... | @@ -3310,7 +3313,7 @@ Page({ |
| 3310 | 3313 | success: function (a) { |
| 3311 | 3314 | if (a.confirm) { |
| 3312 | 3315 | wx.navigateTo({ |
| 3313 | - url: "/pages/user/order_detail/order_detail?order_id=" + odr.order_id, | |
| 3316 | + url: "/packageA/pages/details_serviceCard/details_serviceCard?order_id=" + odr.order_id, | |
| 3314 | 3317 | }); |
| 3315 | 3318 | } |
| 3316 | 3319 | } |
| ... | ... | @@ -3779,6 +3782,13 @@ Page({ |
| 3779 | 3782 | }) |
| 3780 | 3783 | }, |
| 3781 | 3784 | |
| 3785 | + //--跳转到支付尾款界面-- | |
| 3786 | + go_pay_wk: function () { | |
| 3787 | + var url = "/packageA/pages/serviceCard_pd/cart_wk/cart_wk?order_id=" + this.data.wk_order_id; | |
| 3788 | + getApp().goto(url); | |
| 3789 | + }, | |
| 3790 | + | |
| 3791 | + | |
| 3782 | 3792 | }); |
| 3783 | 3793 | |
| 3784 | 3794 | ... | ... |