金民工程登录页面
This commit is contained in:
@@ -21,18 +21,16 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['getCode']),
|
...mapActions(['getCode']),
|
||||||
handleLogin(review) {
|
handleLogin() {
|
||||||
const {code} = this.$route.query
|
const {code} = this.$route.query
|
||||||
if (!this.user.token) {
|
if (code) {
|
||||||
} else if (code) {
|
|
||||||
this.$http.post("/app/wxcp/portal/hljJmgcLogin", null, {
|
this.$http.post("/app/wxcp/portal/hljJmgcLogin", null, {
|
||||||
params: {code}
|
params: {code}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
})
|
}).catch(() => this.err = "error")
|
||||||
} else if (!review) {
|
} else this.getCode();
|
||||||
this.getCode();
|
|
||||||
} else this.err = "error"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user