Files
dvcp_v2_wxcp_app/src/project/jinmin/AppJinMinLogin.vue

44 lines
858 B
Vue
Raw Normal View History

2023-02-21 16:20:25 +08:00
<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']),
2023-02-21 16:22:31 +08:00
handleLogin() {
2023-02-21 16:20:25 +08:00
const {code} = this.$route.query
2023-02-21 16:22:31 +08:00
if (code) {
2023-02-21 16:20:25 +08:00
this.$http.post("/app/wxcp/portal/hljJmgcLogin", null, {
params: {code}
}).then(res => {
console.log(res)
2023-02-21 16:22:31 +08:00
}).catch(() => this.err = "error")
} else this.getCode();
2023-02-21 16:20:25 +08:00
}
},
created() {
}
}
</script>
<style lang="scss" scoped>
.AppJinMinLogin {
}
</style>