Commit 9d88aafff34a2b8529373d750990c0a6a764cfd7

Authored by yvan.ni
1 parent ed6b9b2a

月包的优化

packageE/pages/user/monthgiftbag/giftpackbuy/giftpackbuy.js
@@ -206,10 +206,16 @@ Page({ @@ -206,10 +206,16 @@ Page({
206 } 206 }
207 }).then(res => { 207 }).then(res => {
208 if (ut.ajax_ok(res)) { 208 if (ut.ajax_ok(res)) {
  209 +
209 var item = res.data.data.pageData[0]; 210 var item = res.data.data.pageData[0];
210 - if (item.pay_status == 1) { 211 + if (item.pay_state == 1) {
211 //支付支付,返回首页 212 //支付支付,返回首页
212 ut.m_toast('支付成功'); 213 ut.m_toast('支付成功');
  214 + th.data.back_ord=null;
  215 + setTimeout(()=>{
  216 + getApp().goto(bk_url);
  217 + },1500)
  218 +
213 } else { 219 } else {
214 //支付支付,返回首页 220 //支付支付,返回首页
215 ut.m_toast('支付失败'); 221 ut.m_toast('支付失败');
packageE/pages/user/monthgiftbag/giftpackinfo/giftpackinfo.js
@@ -465,11 +465,12 @@ Page({ @@ -465,11 +465,12 @@ Page({
465 465
466 if(ut.ajax_ok(res)){ 466 if(ut.ajax_ok(res)){
467 var item=res.data.data.pageData[0]; 467 var item=res.data.data.pageData[0];
468 - if(item.pay_status==1){ 468 + if(item.pay_state==1){
469 //支付支付,返回首页 469 //支付支付,返回首页
470 ut.m_toast('支付成功'); 470 ut.m_toast('支付成功');
  471 + th.data.back_ord=null;
471 setTimeout(()=>{ 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 },1000) 474 },1000)
474 475
475 }else{ 476 }else{
@@ -490,7 +491,7 @@ Page({ @@ -490,7 +491,7 @@ Page({
490 GetBuyPrice: function (e) { 491 GetBuyPrice: function (e) {
491 var that = this.data; 492 var that = this.data;
492 var th = this; 493 var th = this;
493 - let scene =this.data.scene; 494 + let scene=this.data.scene;
494 if (scene==1154) { 495 if (scene==1154) {
495 wx.navigateTo({ 496 wx.navigateTo({
496 url: '/packageE/pages/togoin/togoin', 497 url: '/packageE/pages/togoin/togoin',