|
@@ -18,6 +18,7 @@ Page({
|
|
hidden: true,
|
|
hidden: true,
|
|
reason: '',
|
|
reason: '',
|
|
inputValue: '',
|
|
inputValue: '',
|
|
|
|
+ repeat: false,
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -127,6 +128,10 @@ Page({
|
|
*/
|
|
*/
|
|
async goPay() {
|
|
async goPay() {
|
|
var that = this;
|
|
var that = this;
|
|
|
|
+ if(that.data.repeat){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ that.data.repeat = true;
|
|
let result = await WelfareMall.getOrderParams(that.data.orderSn,wx.getStorageSync('loginInfo').openId);
|
|
let result = await WelfareMall.getOrderParams(that.data.orderSn,wx.getStorageSync('loginInfo').openId);
|
|
let res = result.data
|
|
let res = result.data
|
|
wx.requestPayment({
|
|
wx.requestPayment({
|
|
@@ -139,9 +144,11 @@ Page({
|
|
//支付成功
|
|
//支付成功
|
|
console.log(res);
|
|
console.log(res);
|
|
that.selectOrder(that.data.orderSn);
|
|
that.selectOrder(that.data.orderSn);
|
|
|
|
+ that.data.repeat = false;
|
|
},
|
|
},
|
|
fail: function (res) {
|
|
fail: function (res) {
|
|
console.log(res);
|
|
console.log(res);
|
|
|
|
+ that.data.repeat = false;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|