推荐页面跳转

main
陈佳慧 1 month ago
parent 4a5b127262
commit 2214cd3cdd

@ -273,7 +273,7 @@ export default {
musicTypes: [{ required: true, message: '请选择喜欢的音乐类型', trigger: 'change' }], musicTypes: [{ required: true, message: '请选择喜欢的音乐类型', trigger: 'change' }],
movieTypes: [{ required: true, message: '请选择喜欢的电影类型', trigger: 'change' }], movieTypes: [{ required: true, message: '请选择喜欢的电影类型', trigger: 'change' }],
lifeValue: [{ required: true, message: '请选择生活价值观', trigger: 'change' }], lifeValue: [{ required: true, message: '请选择生活价值观', trigger: 'change' }],
religion: [{ required: true, message: '请选教信仰', trigger: 'change' }], religion: [{ required: true, message: '请选<EFBFBD><EFBFBD><EFBFBD>教信仰', trigger: 'change' }],
relationshipType: [{ required: true, message: '请选择关系类型', trigger: 'change' }], relationshipType: [{ required: true, message: '请选择关系类型', trigger: 'change' }],
maritalStatus: [{ required: true, message: '请选择婚姻状况', trigger: 'change' }], maritalStatus: [{ required: true, message: '请选择婚姻状况', trigger: 'change' }],
minIncome: [{ required: true, message: '请选择最低收入', trigger: 'change' }], minIncome: [{ required: true, message: '请选择最低收入', trigger: 'change' }],
@ -331,7 +331,8 @@ export default {
if (valid) { if (valid) {
// //
this.submitData(this.formData); this.submitData(this.formData);
this.$router.push("/result"); // Recommenduser
this.$router.push('/main/recommend/recommenduser');
} else { } else {
this.$message.error("请检查表单填写是否正确"); this.$message.error("请检查表单填写是否正确");
} }

@ -43,6 +43,15 @@ const routes = [
{ {
path:'familyTree', path:'familyTree',
component:familyTree component:familyTree
},
{
path:'recommend/preference',
component: () => import('@/recommend/PreferenceForm.vue')
},
{
path:'recommend/recommenduser',
name: 'RecommendUserPage',
component: () => import('@/views/recommend/Recommenduser.vue')
} }

@ -1,14 +1,19 @@
<template> <template>
<div class="recommend-container"> <div class="recommend-container">
<div class="content"> <div class="content">
<button class="start-btn">开始填</button> <button class="start-btn" @click="goToPreferenceForm"></button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'RecommendIndex' name: 'RecommendIndex',
methods: {
goToPreferenceForm() {
this.$router.push('/main/recommend/preference')
}
}
} }
</script> </script>

Loading…
Cancel
Save