|
|
@ -122,9 +122,27 @@ |
|
|
|
} |
|
|
|
this.$api('createOrderPay', this.form, res => { |
|
|
|
if(res.code == 200){ |
|
|
|
uni.redirectTo({ |
|
|
|
url: '/pages/center/center' |
|
|
|
}) |
|
|
|
// uni.requestPayment({ |
|
|
|
// provider: 'wxpay', // 服务提提供商 |
|
|
|
// timeStamp: res.weChatPayData.timestamp, // 时间戳 |
|
|
|
// nonceStr: res.weChatPayData.noncestr, // 随机字符串 |
|
|
|
// package: res.weChatPayData.package, |
|
|
|
// signType: res.weChatPayData.signtype, // 签名算法 |
|
|
|
// paySign: res.weChatPayData.sign, // 签名 |
|
|
|
// success: function (res) { |
|
|
|
// console.log('支付成功',res); |
|
|
|
// uni.redirectTo({ |
|
|
|
// url: '/pages/center/center' |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
// fail: function (err) { |
|
|
|
// console.log('支付失败',err); |
|
|
|
// uni.showToast({ |
|
|
|
// icon:'none', |
|
|
|
// title:"支付失败" |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// }); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|