Tcode平台改造升级-首屏样式修改开发
This commit is contained in:
140
src/views/Jyh/Home/component/ComProject/index.vue
Normal file
140
src/views/Jyh/Home/component/ComProject/index.vue
Normal file
@@ -0,0 +1,140 @@
|
||||
<template>
|
||||
<div class="secondEdition">
|
||||
<p class="theTitle">核心产品</p>
|
||||
<div>
|
||||
<div class="" style="">
|
||||
<div class="ant-anchor-wrapper" style="max-height: 100vh;">
|
||||
<div class="ant-anchor">
|
||||
<div class="ant-anchor-ink"><span class="ant-anchor-ink-ball"></span></div>
|
||||
|
||||
<li
|
||||
v-for="(item, index) in menuList"
|
||||
:key="index"
|
||||
:class="{ active: activeIndex === index }"
|
||||
@click="changeTab(index)"
|
||||
>
|
||||
<a>{{ item.name }}</a>
|
||||
</li>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="product-content">
|
||||
|
||||
<div v-if="activeIndex === 0" class="component-box">
|
||||
<Product1 />
|
||||
</div>
|
||||
|
||||
<div v-if="activeIndex === 1" class="component-box">
|
||||
<Product2 />
|
||||
</div>
|
||||
|
||||
<div v-if="activeIndex === 2" class="component-box">
|
||||
<Product3 />
|
||||
</div>
|
||||
|
||||
<div v-if="activeIndex === 3" class="component-box">
|
||||
<Product4 />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
import Product1 from './product1.vue';
|
||||
import Product2 from './product2.vue';
|
||||
import Product3 from './product3.vue';
|
||||
import Product4 from './product4.vue';
|
||||
|
||||
const activeIndex = ref(0);
|
||||
|
||||
// 定义菜单列表数据
|
||||
const menuList = [
|
||||
{ name: '可信开源态势感知平台' },
|
||||
{ name: '金银湖安全大模型' },
|
||||
{ name: '软件供应链检测平台' },
|
||||
{ name: '智能终端安全监测平台' }
|
||||
];
|
||||
|
||||
const changeTab = (index) => {
|
||||
activeIndex.value = index;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.secondEdition .theTitle {
|
||||
height: 53px;
|
||||
line-height: 53px;
|
||||
font-size: 38px;
|
||||
font-weight: 500;
|
||||
color: #1e1e1e;
|
||||
text-align: center;
|
||||
margin: 42px 0 30px !important
|
||||
}
|
||||
|
||||
.secondEdition .ant-affix {
|
||||
background-color: #fff;
|
||||
box-shadow: 0 2px 7px 0 rgba(0, 0, 0, .09)
|
||||
}
|
||||
|
||||
.secondEdition .ant-anchor-wrapper {
|
||||
width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding-left: 0
|
||||
}
|
||||
|
||||
.secondEdition .ant-anchor-wrapper .ant-anchor {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.secondEdition .ant-anchor-wrapper .ant-anchor .ant-anchor-ink {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
border-bottom: 1px solid hsla(0, 0%, 60%, .5);
|
||||
bottom: 0;
|
||||
top: auto;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.secondEdition .ant-anchor-wrapper .ant-anchor li {
|
||||
padding: 18px 19px;
|
||||
margin: 0 10px;
|
||||
position: relative;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.secondEdition .ant-anchor-wrapper .ant-anchor li a {
|
||||
color: #333 !important;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.secondEdition .ant-anchor-wrapper .ant-anchor li.active:after {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
height: 3px;
|
||||
background-color: #466aff;
|
||||
content: "";
|
||||
width: 100%;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.secondEdition .ant-anchor-wrapper .ant-anchor li.active a {
|
||||
color: #466aff !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.product-content {
|
||||
//width: 1200px;
|
||||
//margin: 40px auto;
|
||||
//min-height: 300px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user