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

update

上级 b63890ea
......@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="https://zws-imgs-pub.ezijing.com/pc/base/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<title>页面</title>
</head>
<body>
<div id="app"></div>
......
......@@ -254,29 +254,38 @@ export default {
// 完成步骤跳转
this.$router.push({ path: '/' })
} else {
// 是微信才走授权
if (/MicroMessenger/.test(window.navigator.userAgent)) {
if (!window.localStorage.openId) {
this.wxAuthorize(resId => {
window.localStorage.openId = resId.openid
console.log(res.data, 1)
this.$emit('next', res.data)
})
} else {
this.$emit('next', res.data)
}
} else {
this.$emit('next', res.data)
}
}
} else {
if (this.stepList[this.stepList.length - 1].num === this.data.num) {
// 完成步骤跳转
this.$router.push({ path: '/' })
} else {
// 是微信才走授权
if (/MicroMessenger/.test(window.navigator.userAgent)) {
if (!window.localStorage.openId) {
this.wxAuthorize(resId => {
window.localStorage.openId = resId.openid
// this.$emit('next', res.data)
console.log(res.data, 2)
this.$emit('next', res.data)
})
} else {
this.$emit('next', res.data)
}
} else {
this.$emit('next', res.data)
}
}
}
this.checkedPay = false
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论