微信登录问卷表单

This commit is contained in:
aixianling
2021-11-25 16:02:53 +08:00
parent 94156be077
commit 43ba05ab7c
6 changed files with 14 additions and 195 deletions

View File

@@ -65,14 +65,10 @@
<script>
import UForm from "../../uview/components/u-form/u-form";
import UFormItem from "../../uview/components/u-form-item/u-form-item";
import {mapActions, mapState} from "vuex";
import UInput from "../../uview/components/u-input/u-input";
import AiTextarea from "../../components/AiTextarea";
import AiUploader from "../../components/AiUploader";
import AiSelect from "../../components/AiSelect";
import URadio from "../../uview/components/u-radio/u-radio";
import AiLoading from "../../components/AiLoading";
import AiResult from "../../components/AiResult";
import AiImage from "../../components/AiImage";
@@ -85,13 +81,9 @@ export default {
AiImage,
AiResult,
AiLoading,
URadio,
AiSelect,
AiUploader,
AiTextarea,
UInput,
UFormItem,
UForm
},
computed: {
...mapState(['openUser', 'token']),
@@ -220,14 +212,9 @@ export default {
this.checkUser = true
return Promise.resolve()
}
let {query: {id}, hash} = this.$route,
let {query: {id}} = this.$route,
{openId} = this.openUser
if (hash != "#form") {
this.result = {
tips: "非法的调查问卷链接",
status: "error"
}
} else if (openId) {
if (openId) {
return new Promise(resolve => {
this.$http.post("/app/appquestionnairetemplate/commitCheck", null, {
params: {id, openId}