a1300399510@qq.com 提交于 2023/03/29 -16:20:02

This commit is contained in:
XiaoMo 2023-03-29 16:20:11 +08:00
parent 64380a6e8d
commit d5cef721d4
9 changed files with 77 additions and 29 deletions

View File

@ -11,7 +11,7 @@
<div class="right flexacenter"> <div class="right flexacenter">
<!-- <slot name="search"></slot> --> <!-- <slot name="search"></slot> -->
<search-box slot="search" :issearch="true"></search-box> <search-box slot="search" :issearch="issearch"></search-box>
<div class="head-more flexcenter" @click="headMorePopState = !headMorePopState"> <div class="head-more flexcenter" @click="headMorePopState = !headMorePopState">
<div class="red-dot" v-if="false"></div> <div class="red-dot" v-if="false"></div>

View File

@ -12,11 +12,12 @@ VueRouter.prototype.push = function push(to) {
import getPageTitle from "@/utils/title-config"; import getPageTitle from "@/utils/title-config";
const Index = () => import('views/index') const Index = () => import('views/index/index')
const Recommend = () => import('views/recommend/Recommend') const Recommend = () => import('views/index/recommend/Recommend')
const Collect = () => import('views/collect/Collect') const Collect = () => import('views/index/collect/Collect')
const AllSections = () => import('views/allSections/AllSections') const AllSections = () => import('views/index/allSections/AllSections')
const SearchResult = () => import('views/searchResult/SearchResult') const search = () => import('views/search/search')
const SearchResult = () => import('views/search/searchResult/SearchResult')
const routes = [ const routes = [
{ {
@ -50,16 +51,24 @@ const routes = [
title: "全部版块" title: "全部版块"
} }
}, },
]
}, {
path: '/searchResult', // 首页
name: 'search',
redirect: "/searchResult",
component: search,
children: [
{ {
path: '/searchResult', path: '/searchResult',
name: 'SearchResult', name: 'Recommend',
component: SearchResult, component: SearchResult,
meta: { meta: {
title: "搜索帖子" title: "搜索帖子"
} }
} },
] ]
}, }
] ]

View File

@ -18,7 +18,7 @@
</template> </template>
<script> <script>
import HeaderNav from "../components/HeaderNav"; import HeaderNav from "@/components/HeaderNav";
export default { export default {
name: "Index", name: "Index",
data() { data() {

35
src/views/search/search.vue Executable file
View File

@ -0,0 +1,35 @@
<template>
<div>
<header-nav :issearch="false" :needgetuser="true">
<template slot="header-title">搜索帖子</template>
</header-nav>
<router-view />
</div>
</template>
<script>
import HeaderNav from "@/components/HeaderNav";
export default {
name: 'GterforumwebSearch',
data() {
return {
};
},
mounted() {
},
methods: {
},
components: {
HeaderNav,
},
};
</script>
<style lang="scss" scoped></style>

View File

@ -0,0 +1,23 @@
<template>
<div class="">
</div>
</template>
<script>
export default {
name: "SearchResult",
data() {
return {
}
},
components: {
},
}
</script>
<style lang="sass" scoped>
</style>

View File

@ -1,19 +0,0 @@
<template>
<div>
改好复工后复工后
</div>
</template>
<script>
export default{
name: "SearchResult",
data() {
return {
}
}
}
</script>
<style>
</style>