提交 fac1c613 authored 作者: lihuihui's avatar lihuihui

update

上级 ffa1bdf0
......@@ -285,6 +285,7 @@ export default {
: `${encodeURIComponent(window.location.href)}&qr=1`
params.redirect_url =
window.location.href.indexOf('qr') !== -1 ? encodeURIComponent(window.location.href) : url
console.log(params, 'par')
this.getPayInfo(params)
} else if (this.isWx && parseInt(this.payMode) === 1) {
// 微信环境支付
......@@ -323,17 +324,9 @@ export default {
// 支付宝
if (this.isAlipay && parseInt(this.payMode) === 2) {
window.location.href = res.data.url
}
if (this.isWx && parseInt(this.payMode) === 1) {
} else if (this.isWx && parseInt(this.payMode) === 1) {
// 拉起微信支付
window.WeixinJSBridge.invoke('getBrandWCPayRequest', JSON.parse(res.data.more_info), res => {
// if (res.err_msg === 'get_brand_wcpay_request:ok') {
// console.log(res, 'zhifu')
// } else {
// console.log(res, 'zhifu2')
// }
})
// window.sessionStorage.isCodePage = 'wx'
window.WeixinJSBridge.invoke('getBrandWCPayRequest', JSON.parse(res.data.more_info), res => {})
}
this.isQrPageShow = true
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论