140 lines
3.5 KiB
Plaintext
140 lines
3.5 KiB
Plaintext
<!-- 首页 > 差别化云空间 > 基础研究方向 -->
|
|
<script setup lang="ts">
|
|
import { NIcon } from 'naive-ui'
|
|
import { ChevronBack, ChevronForward, ArrowForward } from '@vicons/ionicons5'
|
|
import AppBlock from '@/components/AppBlock.vue'
|
|
import AppAlert from '@/components/AppAlert.vue'
|
|
import AppNewsBox from '@/components/AppNewsBox.vue'
|
|
import AppPagination from '@/components/AppPagination.vue'
|
|
import HomeHead from '@/views/home/components/HomeHead.vue'
|
|
// import HomeHeadSearch from '@/views/home/components/HomeHeadSearch.vue'
|
|
import { useDate } from '@/views/home/hooks/useDate'
|
|
|
|
const { push } = useRouter()
|
|
const route = useRoute()
|
|
|
|
const activeNav = ref('0')
|
|
const Navs = [
|
|
{ key: '0', name: '未来品牌力提升' },
|
|
{ key: '1', name: 'X领域研究 ' },
|
|
]
|
|
|
|
const page = reactive({
|
|
current: 1,
|
|
total: 100,
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div class="h-full relative flex flex-col">
|
|
<HomeHead class="top">
|
|
<!-- <template #title>
|
|
<div class="font-600 flex items-center">
|
|
<img src="./images/logo.svg" class="h56px mr21px" />
|
|
<div class="text-36px">差别化云空间</div>
|
|
</div>
|
|
</template> -->
|
|
</HomeHead>
|
|
<AppBlock class="flex w-full h-full mt18px">
|
|
<div class="font-600 flex items-center">
|
|
<img src="./images/logo.svg" class="h56px mr21px" />
|
|
<div class="text-36px text-#000">差别化云空间</div>
|
|
</div>
|
|
<section class="px44px flex navs">
|
|
<div :class="`navs-item ${item.key === activeNav && 'active'}`" v-for="item in Navs" @click="activeNav = item.key" :key="item.key">
|
|
{{ item.name }}
|
|
</div>
|
|
</section>
|
|
<section class="px44px mt44px">
|
|
<div class="mt12px news-wrap">
|
|
<div class="news-item flex items-center" v-for="item in 16" :key="item" @click="push({ path: `${route.path}/${123}` })">
|
|
<AppNewsBox class="flex-1" text="第二期报告 23年5月第二期报告 23年5月..." date="2023-05-22" />
|
|
<div class="flex-shrink flex">
|
|
<div class="btn primary ml36px">预览</div>
|
|
<div class="btn default ml10px">下载</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="text-center mt32px">
|
|
<AppPagination v-model:current="page.current" v-model:total="page.total" />
|
|
</div>
|
|
</section>
|
|
</AppBlock>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
|
|
|
|
|
.top{
|
|
position: absolute;
|
|
right: 30px;
|
|
top: -92px;
|
|
}
|
|
|
|
.navs {
|
|
font-size: 28px;
|
|
color: #999;
|
|
font-weight: 600;
|
|
margin-top: 10px;
|
|
border-bottom: 1px solid #eef3fb;
|
|
.navs-item {
|
|
cursor: pointer;
|
|
padding: 14px 18px;
|
|
margin-right: 22px;
|
|
transition: all 0.1s;
|
|
|
|
border-bottom: 4px solid transparent;
|
|
|
|
&.active {
|
|
color: #003ab5;
|
|
border-color: #003ab5;
|
|
}
|
|
}
|
|
}
|
|
|
|
.items-content {
|
|
margin-top: 12px;
|
|
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
line-height: 1.7;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.news-wrap {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-column-gap: 90px;
|
|
|
|
.news-item {
|
|
cursor: pointer;
|
|
padding: 20px 0;
|
|
border-bottom: 1px solid #eef3fb;
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
--color-primary: #3870e5;
|
|
|
|
padding: 10px 22px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
line-height: 1;
|
|
display: inline-flex;
|
|
&.default {
|
|
border: 1px solid var(--color-primary);
|
|
color: var(--color-primary);
|
|
}
|
|
&.primary {
|
|
background-color: var(--color-primary);
|
|
color: #fff;
|
|
}
|
|
}
|
|
</style>
|