qa_portal_vue/app/pages/public/index.vue

137 lines
3.2 KiB
Vue

<template>
<div class="container">
<AppHead/>
<div class="banner">
<div class="banner_main">
<h2>网上公开</h2>
<p>安全第一 预防为主 综合治理</p>
</div>
</div>
<div class="new_container">
<div class="left">
<div class="top">网上公开</div>
<div class="main">
<div v-for="(item, index) in publicItems"
:key="index"
class="list"
:class="{ active: activeIndex === index }"
@click="activeIndex = index">{{item}}</div>
</div>
</div>
<div class="right_main">
<NuxtLink to="/public/details">
<div class="wrap">
<div class="title">安全生产检测检验机构信息公开表-河北秦安安全科技股份有限公司(标准变更)</div>
<div class="time">2026-5-1</div>
</div>
</NuxtLink>
<NuxtLink to="/public/details">
<div class="wrap">
<div class="title">安全生产检测检验机构信息公开表-河北秦安安全科技股份有限公司(标准变更)</div>
<div class="time">2026-5-1</div>
</div>
</NuxtLink>
</div>
</div>
<AppFoot/>
<right/>
</div>
</template>
<script setup lang="ts">
import { ref } from "vue";
const publicItems=["河北秦安安全科技股份有限公司", "秦皇岛市秦安职业卫生检测检", "河北联安众企业管理咨询有限公司", "信息化","公开承诺书","安全生产检测","职业卫生","收费标准","交通运输企业安全生产标准化"];
const activeIndex = ref(0);
</script>
<style scoped lang="scss">
.container {
background: #f6f8fa;
.banner {
width: 100%;
height: 400px;
background: url("@/assets/images/newbanner.png") no-repeat top center;
.banner_main {
width: 1400px;
margin: 0 auto;
padding-top: 180px;
h2 {
font-size: 60px;
color: #ffffff;
margin: 0;
padding: 0;
}
p {
margin: 0;
color: #ffffff;
}
}
}
.new_container {
width: 1400px;
margin: 20px auto;
display: flex;
.left{
width: 250px;
box-sizing: border-box;
background: #ffffff;
border-radius: 4px;
.top{
width: 100%;
background: #3f79ff;
text-align: center;
color: #ffffff;
line-height: 40px;
border-radius: 4px 4px 0 0;
font-weight: bold;
}
.main{
.list{
border-bottom: 1px solid #eeeeee;
padding: 10px 5px;
font-size: 14px;
cursor: pointer;
&:hover{
background: #f1f1fa;
}
}
&:last-child{
border-bottom: none;
}
}
}
.right_main{
flex: 1;
margin-left: 20px;
background: #ffffff;
padding: 10px;
a{
color: #222222;
text-decoration: none;
}
.wrap{
width: 100%;
border-bottom: 1px dashed #eeeeee;
padding: 20px 10px;
box-sizing: border-box;
display: flex;
justify-content: space-between;
cursor: pointer;
.time{
color: #999999;
}
}
}
}
}
</style>