提交 251c4f3a authored 作者: lihuihui's avatar lihuihui

update

上级 e3616fa4
......@@ -277,15 +277,15 @@ export default {
pay_type: parseInt(this.payMode) === 1 ? '1' : '11'
}
// 支付宝环境支付
// if (this.isAlipay) {
// 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
// }
if (this.isAlipay) {
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
}
// 微信环境支付
if (this.isWx && parseInt(this.payMode) === 1) {
params.pay_type = '3'
......
......@@ -56,9 +56,6 @@ export default {
computed: {
isCodeShow() {
let flag = true
// if (/MicroMessenger/.test(window.navigator.userAgent) || /AlipayClient/.test(window.navigator.userAgent)) {
// flag = false
// }
if (parseInt(this.data.payMode) === 1 && /MicroMessenger/.test(window.navigator.userAgent)) {
flag = false
}
......
......@@ -55,7 +55,6 @@ export default {
},
computed: {
setpItem() {
// console.log(this.stepList, this.$route.query.index)
let item = {}
const queryIndex = parseInt(this.$route.query.index)
if (queryIndex && queryIndex !== 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论