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

update

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