feat: 问卷功能开发

This commit is contained in:
DEV_DSW
2026-01-30 16:59:36 +08:00
parent 4496f74f77
commit 5c3bcc4fef
22 changed files with 1262 additions and 106 deletions

View File

@@ -1,8 +1,15 @@
<template>
<van-button @click="handleClick">跳转记录</van-button>
<Layout>
<template #title>{{ questionnaire.title }}</template>
<div class="list">
{{ questionnaire.questions }}
</div>
</Layout>
</template>
<script setup name="home">
import { getSurveyQuestionnaireUsingGet } from '@api'
const router = useRouter()
// 跳转按钮操作
@@ -10,13 +17,19 @@ const handleClick = () => {
console.log('跳转记录')
}
const questionnaire = ref({})
const getQuestionnaire = async () => {
questionnaire.value = await getSurveyQuestionnaireUsingGet({})
}
onMounted(() => {
console.log('onMounted')
})
onActivated(() => {
console.log('onActivated')
getQuestionnaire()
})
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
section {
padding: 20px;
}
</style>