a1300399510@qq.com 提交于 2023/03/29 -16:00:01

This commit is contained in:
XiaoMo 2023-03-29 16:00:11 +08:00
parent f0660d19d2
commit 64380a6e8d
4 changed files with 19 additions and 10 deletions

View File

@ -16,6 +16,7 @@ const Index = () => import('views/index')
const Recommend = () => import('views/recommend/Recommend') const Recommend = () => import('views/recommend/Recommend')
const Collect = () => import('views/collect/Collect') const Collect = () => import('views/collect/Collect')
const AllSections = () => import('views/allSections/AllSections') const AllSections = () => import('views/allSections/AllSections')
const SearchResult = () => import('views/searchResult/SearchResult')
const routes = [ const routes = [
{ {
@ -48,6 +49,14 @@ const routes = [
meta: { meta: {
title: "全部版块" title: "全部版块"
} }
},
{
path: '/searchResult',
name: 'SearchResult',
component: SearchResult,
meta: {
title: "搜索帖子"
}
} }
] ]
}, },

View File

@ -6,7 +6,7 @@
@click="allClick(index)">{{ item.title }}</span> @click="allClick(index)">{{ item.title }}</span>
</div> </div>
<!-- 右选项 --> <!-- 右选项 -->
<div class="allSections-right" :class="{ 'active': index == allActive }" v-for="(item, index) in list" :key="index"> <div class="allSections-right">
<div class="allSections-right-item" v-for="(i, k) in starList" :key="k"> <div class="allSections-right-item" v-for="(i, k) in starList" :key="k">
<div class="item-content"> <div class="item-content">
<div class="item-title">{{ i.title }}</div> <div class="item-title">{{ i.title }}</div>
@ -178,7 +178,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
z-index: 1; z-index: 1;
display: none; // display: none;
padding-bottom: 0.4rem; padding-bottom: 0.4rem;
&.active { &.active {

View File

@ -1,9 +1,9 @@
<template> <template>
<div> <div>
改好复工后复工后
</div> </div>
</template> </template>
<script> <script>
export default{ export default{
name: "SearchResult", name: "SearchResult",
@ -12,8 +12,8 @@
} }
} }
} }
</script> </script>
<style> <style>
</style> </style>