Commit 720da7a40577c409e103cab812b29503780f3419

Authored by pengye
1 parent 588b3b17

扫码支付成功后,关闭小程序

@@ -269,7 +269,7 @@ Page({ @@ -269,7 +269,7 @@ Page({
269 discountPrice: '0.00', 269 discountPrice: '0.00',
270 actualPrice: '', 270 actualPrice: '',
271 }) 271 })
272 - that.getCoupon() 272 + that.exitFun()
273 console.log('支付成功', ress); 273 console.log('支付成功', ress);
274 return that.myToast.showToast('支付成功', 2000) 274 return that.myToast.showToast('支付成功', 2000)
275 } 275 }
@@ -713,7 +713,9 @@ Page({ @@ -713,7 +713,9 @@ Page({
713 onReady() { 713 onReady() {
714 this.myToast = this.selectComponent("#myToast") 714 this.myToast = this.selectComponent("#myToast")
715 }, 715 },
716 - 716 + exitFun(){
  717 + wx.exitMiniProgram({success: (res) => {}})
  718 + },
717 /** 719 /**
718 * 生命周期函数--监听页面显示 720 * 生命周期函数--监听页面显示
719 */ 721 */