a1300399510@qq.com 提交于 2023/03/29 -16:20:02
This commit is contained in:
parent
64380a6e8d
commit
d5cef721d4
@ -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>
|
||||||
|
@ -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: "搜索帖子"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -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
35
src/views/search/search.vue
Executable 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>
|
23
src/views/search/searchResult/SearchResult.vue
Executable file
23
src/views/search/searchResult/SearchResult.vue
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
<template>
|
||||||
|
<div class="">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "SearchResult",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="sass" scoped>
|
||||||
|
|
||||||
|
</style>
|
@ -1,19 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div>
|
|
||||||
改好复工后复工后
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default{
|
|
||||||
name: "SearchResult",
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
</style>
|
|
Loading…
x
Reference in New Issue
Block a user