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

update

上级 bae79d75
...@@ -161,9 +161,9 @@ export default { ...@@ -161,9 +161,9 @@ export default {
} }
}, },
created() { created() {
// if (this.$route.query.qr !== undefined) { if (this.$route.query.qr !== undefined) {
// this.payDetail = JSON.parse(window.localStorage.payDetail) this.payDetail = JSON.parse(window.localStorage.payDetail)
// } }
}, },
mounted() { mounted() {
if (this.isPc()) { if (this.isPc()) {
...@@ -264,12 +264,12 @@ export default { ...@@ -264,12 +264,12 @@ export default {
} }
if (/AlipayClient/.test(window.navigator.userAgent)) { if (/AlipayClient/.test(window.navigator.userAgent)) {
params.pay_type = '12' params.pay_type = '12'
// const url = const url =
// window.location.href.indexOf('?') === -1 window.location.href.indexOf('?') === -1
// ? `${encodeURIComponent(window.location.href)}?qr=1` ? `${encodeURIComponent(window.location.href)}?qr=1`
// : `${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
} }
// 获取支付二维码 订单id // 获取支付二维码 订单id
getPayInfo(params).then(res => { getPayInfo(params).then(res => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论