推荐页面跳转

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

@ -273,7 +273,7 @@ export default {
musicTypes: [{ required: true, message: '请选择喜欢的音乐类型', trigger: 'change' }],
movieTypes: [{ 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' }],
maritalStatus: [{ required: true, message: '请选择婚姻状况', trigger: 'change' }],
minIncome: [{ required: true, message: '请选择最低收入', trigger: 'change' }],
@ -331,7 +331,8 @@ export default {
if (valid) {
//
this.submitData(this.formData);
this.$router.push("/result");
// Recommenduser
this.$router.push('/main/recommend/recommenduser');
} else {
this.$message.error("请检查表单填写是否正确");
}

@ -43,6 +43,15 @@ const routes = [
{
path:'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>
<div class="recommend-container">
<div class="content">
<button class="start-btn">开始填</button>
<button class="start-btn" @click="goToPreferenceForm"></button>
</div>
</div>
</template>
<script>
export default {
name: 'RecommendIndex'
name: 'RecommendIndex',
methods: {
goToPreferenceForm() {
this.$router.push('/main/recommend/preference')
}
}
}
</script>

Loading…
Cancel
Save