Commit 9d88aafff34a2b8529373d750990c0a6a764cfd7
1 parent
ed6b9b2a
月包的优化
Showing
2 changed files
with
11 additions
and
4 deletions
packageE/pages/user/monthgiftbag/giftpackbuy/giftpackbuy.js
... | ... | @@ -206,10 +206,16 @@ Page({ |
206 | 206 | } |
207 | 207 | }).then(res => { |
208 | 208 | if (ut.ajax_ok(res)) { |
209 | + | |
209 | 210 | var item = res.data.data.pageData[0]; |
210 | - if (item.pay_status == 1) { | |
211 | + if (item.pay_state == 1) { | |
211 | 212 | //支付支付,返回首页 |
212 | 213 | ut.m_toast('支付成功'); |
214 | + th.data.back_ord=null; | |
215 | + setTimeout(()=>{ | |
216 | + getApp().goto(bk_url); | |
217 | + },1500) | |
218 | + | |
213 | 219 | } else { |
214 | 220 | //支付支付,返回首页 |
215 | 221 | ut.m_toast('支付失败'); | ... | ... |
packageE/pages/user/monthgiftbag/giftpackinfo/giftpackinfo.js
... | ... | @@ -465,11 +465,12 @@ Page({ |
465 | 465 | |
466 | 466 | if(ut.ajax_ok(res)){ |
467 | 467 | var item=res.data.data.pageData[0]; |
468 | - if(item.pay_status==1){ | |
468 | + if(item.pay_state==1){ | |
469 | 469 | //支付支付,返回首页 |
470 | 470 | ut.m_toast('支付成功'); |
471 | + th.data.back_ord=null; | |
471 | 472 | setTimeout(()=>{ |
472 | - getApp().goto("/pages/payment/pay_success/pay_success?type=2&order_sn=" + th.data.ok_order_sn); | |
473 | + getApp().goto(bk_url); | |
473 | 474 | },1000) |
474 | 475 | |
475 | 476 | }else{ |
... | ... | @@ -490,7 +491,7 @@ Page({ |
490 | 491 | GetBuyPrice: function (e) { |
491 | 492 | var that = this.data; |
492 | 493 | var th = this; |
493 | - let scene =this.data.scene; | |
494 | + let scene=this.data.scene; | |
494 | 495 | if (scene==1154) { |
495 | 496 | wx.navigateTo({ |
496 | 497 | url: '/packageE/pages/togoin/togoin', | ... | ... |