This commit is contained in:
唐明明
2021-11-03 10:18:31 +08:00
parent d0596bd8a2
commit 6cb32203bf
5 changed files with 44183 additions and 313 deletions

View File

@@ -177,3 +177,4 @@
"vueVersion" : "2" "vueVersion" : "2"
} }
/* SDK */ /* SDK */

View File

@@ -206,6 +206,9 @@
if (this.selectTypeId === '2') { if (this.selectTypeId === '2') {
if (typeof res === 'string') { if (typeof res === 'string') {
let payInfo = JSON.parse(res) let payInfo = JSON.parse(res)
console.log(res)
uni.requestPayment({ uni.requestPayment({
provider: "wxpay", provider: "wxpay",
orderInfo: payInfo, orderInfo: payInfo,
@@ -224,8 +227,9 @@
}, 3000); }, 3000);
}, },
fail: (err) => { fail: (err) => {
console.log(err)
uni.showToast({ uni.showToast({
title: '支付失败' + err.message, title: '支付失败' + err.errMsg,
duration: 3000, duration: 3000,
mask: true, mask: true,
icon: 'none' icon: 'none'

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long