微信登录问卷表单

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

@@ -0,0 +1,43 @@
<template>
<section class="askForm">
<template v-if="showDetail">
<form-detail/>
</template>
<ai-loading v-else :tips="errMsg"/>
</section>
</template>
<script>
import AiLoading from "../../components/AiLoading";
import {mapState} from "vuex";
import FormDetail from "./formDetail";
export default {
name: "askForm",
appName: "问卷表单",
components: {FormDetail, AiLoading},
computed: {
...mapState(['openUser', 'user']),
showDetail() {
return !!this.$route.query?.id
},
},
data() {
return {
errMsg: "加载表单中..."
}
},
onReachBottom() {
this.$refs?.FormList?.reachBottom()
}
}
</script>
<style lang="scss" scoped>
.askForm {
position: absolute;
width: 100%;
height: 100%;
background: #fff;
}
</style>