微信登录暂改方案,接口未通

This commit is contained in:
aixianling
2021-11-26 19:28:57 +08:00
parent 739b825618
commit f0f3ebf7b7

View File

@@ -239,32 +239,8 @@ export default {
}) })
}) })
} else { } else {
this.getUserInfo().then(res => {
if (this.$route.hash == "#loginfail") {
this.result = {
tips: "您的信息获取失败",
status: "error",
btn: "重新加载",
btnTap() {
location.reload()
}
}
} else if (res == "getCode") {
let {corpId} = this.$route.query let {corpId} = this.$route.query
this.getCode({corpId, url: location.href}) this.getCode({corpId, url: location.href})
} else if (!!this.openUser?.openId) {
this.checkForm()?.then(() => this.checkUser && this.getForm())
} else {
this.result = {
tips: "您的信息获取失败",
status: "error",
btn: "重新加载",
btnTap() {
location.reload()
}
}
}
}).catch()
} }
}, },
}, },