金民工程登录页面

This commit is contained in:
2023-02-21 16:20:25 +08:00
parent ba4617a54c
commit 4a83f895d5

View File

@@ -0,0 +1,46 @@
<template>
<section class="AppJinMinLogin">
<AiResult v-else :tips="errTip" :status="err" class="t-center"/>
</section>
</template>
<script>
import {mapActions} from "vuex";
export default {
name: "AppJinMinLogin",
appName: "金民工程登录",
data() {
return {err: "loading"}
},
computed: {
errTip: v => ({
loading: "正在登录中...",
error: "登录失败!"
}[v.err]),
},
methods: {
...mapActions(['getCode']),
handleLogin(review) {
const {code} = this.$route.query
if (!this.user.token) {
} else if (code) {
this.$http.post("/app/wxcp/portal/hljJmgcLogin", null, {
params: {code}
}).then(res => {
console.log(res)
})
} else if (!review) {
this.getCode();
} else this.err = "error"
}
},
created() {
}
}
</script>
<style lang="scss" scoped>
.AppJinMinLogin {
}
</style>