fix: 修复bug
parent
fa341e5e18
commit
d14191e8dc
|
@ -41,6 +41,11 @@ const unityPay = (options) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
_options.payInfo.openid = openId
|
_options.payInfo.openid = openId
|
||||||
|
if (_options.payType === 'WXPAY') {
|
||||||
|
_options.payInfo.payChannel = '微信支付'
|
||||||
|
} else if (_options.payType === 'ALIPAY') {
|
||||||
|
_options.payInfo.payChannel = '支付宝'
|
||||||
|
}
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '支付中',
|
title: '支付中',
|
||||||
mask: true
|
mask: true
|
||||||
|
|
|
@ -63,7 +63,8 @@
|
||||||
import AlipayLinkCopy from '@/components/aliPayLinkCopy'
|
import AlipayLinkCopy from '@/components/aliPayLinkCopy'
|
||||||
import {
|
import {
|
||||||
getOrderDetail,
|
getOrderDetail,
|
||||||
orderPay
|
orderPay,
|
||||||
|
wechatOrderPay
|
||||||
} from '@/api/order.js';
|
} from '@/api/order.js';
|
||||||
import uniPay from '@/libs/pay.js'
|
import uniPay from '@/libs/pay.js'
|
||||||
export default {
|
export default {
|
||||||
|
@ -191,9 +192,11 @@
|
||||||
title: '支付中'
|
title: '支付中'
|
||||||
})
|
})
|
||||||
uniPay({
|
uniPay({
|
||||||
payInfo: that.payInfo,
|
payInfo: {
|
||||||
|
orderNo: that.orderId
|
||||||
|
},
|
||||||
payType: that.paytype,
|
payType: that.paytype,
|
||||||
createOrderFun: memberTopUp,
|
createOrderFun: wechatOrderPay,
|
||||||
payResultHandle: (res) => {
|
payResultHandle: (res) => {
|
||||||
return {
|
return {
|
||||||
jsapiResult: res.jsapiConfig,
|
jsapiResult: res.jsapiConfig,
|
||||||
|
|
Loading…
Reference in New Issue