Commit 6d7e044d authored by 肖健's avatar 肖健

添加测试支付

parent 762a2eb8
...@@ -79,6 +79,35 @@ export default { ...@@ -79,6 +79,35 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: '/pagesA/pages/index/index' url: '/pagesA/pages/index/index'
}); });
// let param = {"appId" : "6", "ids": [125,126],
// "channelCode" : "wx_lite", "channelExtras" : {"openid" : "orQCF5W_Z6281tGMooVnSNE1yGog"},
// }
// let opts = { url: '/app/pay/order/submit', method: 'post' }
//
// this.http.httpRequest(opts, param).then(res => {
// console.log(res);
// if (res.data.code == 200) {
// let paymentData = res.data;
//
// uni.requestPayment({
// provider: 'wxpay', // 服务提提供商
// timeStamp: paymentData.timeStamp,
// nonceStr: paymentData.nonceStr,
// package: paymentData.package,
// signType: paymentData.signType,
// paySign: paymentData.paySign,
// success: function (res) {
// console.log('支付成功',res);
// // 业务逻辑。。。
// },
// fail: function (err) {
// console.log('支付失败',err);
// },
// });
// } else {
//
// }
// })
}, },
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment