增加请求锁屏

This commit is contained in:
aixianling
2023-02-24 09:38:38 +08:00
parent 4f122e03d4
commit 8f5f59f6b7

View File

@@ -26,6 +26,7 @@ export default {
handleLogin() { handleLogin() {
const {code} = this.$route.query const {code} = this.$route.query
if (code) { if (code) {
uni.showLoading()
this.$http.post("/app/wxcp/portal/hljJmgcLogin", null, { this.$http.post("/app/wxcp/portal/hljJmgcLogin", null, {
withoutToken: true, withoutToken: true,
params: {code} params: {code}
@@ -34,7 +35,7 @@ export default {
if (token) { if (token) {
location.replace(`https://mzt.hlj.gov.cn/app/ljmz_app_qywx?token=${token}`) location.replace(`https://mzt.hlj.gov.cn/app/ljmz_app_qywx?token=${token}`)
} else this.err = "error" } else this.err = "error"
}).catch(() => this.err = "error") }).catch(() => this.err = "error").finally(() => uni.hideLoading())
} else this.getCode(); } else this.getCode();
} }
}, },
@@ -47,4 +48,4 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.AppJinMinLogin { .AppJinMinLogin {
} }
</style> </style>