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

update

上级 0dc57337
......@@ -277,7 +277,8 @@ export default {
pay_type: parseInt(this.payMode) === 1 ? '1' : '11'
}
// 支付宝环境支付
if (this.isAlipay && parseInt(this.payMode) === 2) {
console.log(!this.isAlipay, parseInt(this.payMode), '123')
if (!this.isAlipay && parseInt(this.payMode) === 2) {
params.pay_type = '12'
const url =
window.location.href.indexOf('?') === -1
......@@ -286,9 +287,8 @@ export default {
params.redirect_url =
window.location.href.indexOf('qr') !== -1 ? encodeURIComponent(window.location.href) : url
this.getPayInfo(params)
}
} else if (this.isWx && parseInt(this.payMode) === 1) {
// 微信环境支付
if (this.isWx && parseInt(this.payMode) === 1) {
params.pay_type = '3'
// 没有openid去授权获取
if (!window.localStorage.openId) {
......@@ -323,8 +323,7 @@ export default {
window.localStorage.payDetail = JSON.stringify(this.payDetail)
// 支付宝
if (this.isAlipay && parseInt(this.payMode) === 2) {
console.log(res.data.url, 'url')
// window.location.href = res.data.url
window.location.href = res.data.url
}
if (this.isWx && parseInt(this.payMode) === 1) {
// 拉起微信支付
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论