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

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

View File

@@ -176,7 +176,7 @@
path: ''
},
openCondition: {},
voucher: '', //弹窗展示得内容
voucher: '', //弹窗展示得内容
}
},
created() {
@@ -297,7 +297,7 @@
vipWechatPay(orderId, {
type: 'app'
}).then(res => {
let payConfig = JSON.parse(res)
let payConfig = JSON.parse(res)
cashierPay.pay('wxpay', payConfig).then(payRes => {
this.idenInfo()
})