测试支付功能

This commit is contained in:
gaoxs
2020-04-23 19:55:05 +08:00
parent 2171e9f7bd
commit c66a90ed50
9 changed files with 62 additions and 28 deletions

View File

@ -71,6 +71,7 @@ export function delOrderHandle(orderId) {
}
export function payOrderHandle(orderId, type, from) {
console.log(orderId, type, from, '支付')
return new Promise((resolve, reject) => {
uni.showLoading({ title: '加载中' })
payOrder(orderId, type, from)
@ -97,6 +98,10 @@ export function payOrderHandle(orderId, type, from) {
weappPay(data.result.jsConfig).then(res => {
resolve(data);
});
case "WECHAT_APP_PAY":
weappPay(data.result.jsConfig).then(res => {
resolve(data);
});
}
})
.catch(err => {