|
|
@@ -278,7 +278,9 @@ Page({ |
|
|
|
console.log(err); |
|
|
|
that.setData({ |
|
|
|
showbutton: false, |
|
|
|
showbutton1: false |
|
|
|
showbutton1: false, |
|
|
|
canSpell: true, |
|
|
|
canBuyIf: true |
|
|
|
}) |
|
|
|
if (err.code == 2011) { |
|
|
|
wx.showToast({ |
|
|
@@ -365,7 +367,9 @@ Page({ |
|
|
|
if (typeof (res) != "undefined") { |
|
|
|
let orderId = "" + res.data.id; |
|
|
|
that.setData({ |
|
|
|
orderId: orderId |
|
|
|
orderId: orderId, |
|
|
|
canSpell: true, |
|
|
|
canBuyIf: true |
|
|
|
}); |
|
|
|
// 支付金额不为0 |
|
|
|
/** |
|
|
@@ -420,7 +424,9 @@ Page({ |
|
|
|
*/ |
|
|
|
that.payOrderUpdate(that.data.orderId, payOrderId, 2, '', that, orderGroupId); |
|
|
|
that.setData({ |
|
|
|
showbutton: false |
|
|
|
showbutton: false, |
|
|
|
canSpell: true, |
|
|
|
canBuyIf: true |
|
|
|
}) |
|
|
|
return; |
|
|
|
}, |
|
|
@@ -429,6 +435,10 @@ Page({ |
|
|
|
/// End payment -------- |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
that.setData({ |
|
|
|
canSpell: true, |
|
|
|
canBuyIf: true |
|
|
|
}) |
|
|
|
wx.showToast({ |
|
|
|
title: err.message, |
|
|
|
icon: 'none', |
|
|
|