Commit aade5904730133ff2fd2a8b41255e8665579233e

Authored by vking
1 parent 3e6a30da

pay

@@ -30,7 +30,6 @@ Page({ @@ -30,7 +30,6 @@ Page({
30 */ 30 */
31 onShow: function () { 31 onShow: function () {
32 this.GetCheckout() 32 this.GetCheckout()
33 - this.GetOrderInfoRun()  
34 }, 33 },
35 34
36 /** 35 /**
@@ -74,6 +73,11 @@ Page({ @@ -74,6 +73,11 @@ Page({
74 this.setData({ 73 this.setData({
75 checkout:checkout 74 checkout:checkout
76 }) 75 })
  76 + if(checkout.status>1){
  77 + this.GetOrderInfoStop()
  78 + }else{
  79 + this.GetOrderInfoRun()
  80 + }
77 }) 81 })
78 }, 82 },
79 is_wine:0, 83 is_wine:0,
@@ -123,7 +127,7 @@ Page({ @@ -123,7 +127,7 @@ Page({
123 if(!this.GetOrderInfoInterval){ 127 if(!this.GetOrderInfoInterval){
124 setInterval(()=>{ 128 setInterval(()=>{
125 this.GetCheckout() 129 this.GetCheckout()
126 - },15000) 130 + },8000)
127 } 131 }
128 }, 132 },
129 GetOrderInfoStop(){ 133 GetOrderInfoStop(){
@@ -137,5 +141,6 @@ Page({ @@ -137,5 +141,6 @@ Page({
137 header: '温馨提示', 141 header: '温馨提示',
138 body: '已为您催促商家,请耐心等待' 142 body: '已为您催促商家,请耐心等待'
139 }).show(); 143 }).show();
  144 + App.PushMsg.SendUrgeMsg({rid:this.data.checkout.rid})
140 }, 145 },
141 }) 146 })
@@ -464,4 +464,6 @@ export default { @@ -464,4 +464,6 @@ export default {
464 'App.Customer.SetInvoice':{ 464 'App.Customer.SetInvoice':{
465 openid:'openid', 465 openid:'openid',
466 }, 466 },
  467 + //催促消息
  468 + 'App.PushMsg.SendUrgeMsg':null,
467 } 469 }