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

update

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