增加请求锁屏
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user