提交 0dc57337 authored 作者: lihuihui's avatar lihuihui

update

上级 31f6effa
...@@ -277,7 +277,7 @@ export default { ...@@ -277,7 +277,7 @@ export default {
pay_type: parseInt(this.payMode) === 1 ? '1' : '11' pay_type: parseInt(this.payMode) === 1 ? '1' : '11'
} }
// 支付宝环境支付 // 支付宝环境支付
if (this.isAlipay) { if (this.isAlipay && parseInt(this.payMode) === 2) {
params.pay_type = '12' params.pay_type = '12'
const url = const url =
window.location.href.indexOf('?') === -1 window.location.href.indexOf('?') === -1
...@@ -285,6 +285,7 @@ export default { ...@@ -285,6 +285,7 @@ export default {
: `${encodeURIComponent(window.location.href)}&qr=1` : `${encodeURIComponent(window.location.href)}&qr=1`
params.redirect_url = params.redirect_url =
window.location.href.indexOf('qr') !== -1 ? encodeURIComponent(window.location.href) : url window.location.href.indexOf('qr') !== -1 ? encodeURIComponent(window.location.href) : url
this.getPayInfo(params)
} }
// 微信环境支付 // 微信环境支付
if (this.isWx && parseInt(this.payMode) === 1) { if (this.isWx && parseInt(this.payMode) === 1) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论