增加微信登录流程(需调整)

This commit is contained in:
aixianling
2021-11-26 17:33:43 +08:00
parent 7ba56e5e36
commit 0695e0725b
12 changed files with 6 additions and 3542 deletions

View File

@@ -125,7 +125,7 @@ export default {
}
},
methods: {
...mapActions(['getUserInfo']),
...mapActions(['getUserInfo', "getCode"]),
getForm() {
let {id} = this.$route.query
this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, {
@@ -239,8 +239,10 @@ export default {
})
})
} else {
this.getUserInfo().then(() => {
if (!!this.openUser?.openId) {
this.getUserInfo().then(res => {
if (res == "getCode") {
this.getCode({url: location.href})
} else if (!!this.openUser?.openId) {
this.checkForm()?.then(() => this.checkUser && this.getForm())
} else {
this.result = {
@@ -252,7 +254,7 @@ export default {
}
}
}
})
}).catch()
}
},
},