a1300399510@qq.com 提交于 2023/03/29 -15:40:01

This commit is contained in:
XiaoMo 2023-03-29 15:40:10 +08:00
parent 45571c6f35
commit f0660d19d2

View File

@ -2,7 +2,8 @@
<div class="allSections">
<!-- 左选项 -->
<div class="allSections-left">
<span v-for="(item,index) in list" :class="{'active':index == allActive}" :key="index" @click="allClick(index)">{{item.title}}</span>
<span v-for="(item, index) in list" :class="{ 'active': index == allActive }" :key="index"
@click="allClick(index)">{{ item.title }}</span>
</div>
<!-- 右选项 -->
<div class="allSections-right" :class="{ 'active': index == allActive }" v-for="(item, index) in list" :key="index">
@ -64,7 +65,7 @@
},
{
title: "2023招生季[你好 招生官]",
text: "[权威、官方]的第一手信息。"
text: "全球博士项目信息发布查找23fall博士交流群 点击加入微信群 QQ群号461086769"
},
{
title: "2023招生季[你好 招生官]",
@ -107,8 +108,9 @@
border-radius: 0.32rem;
margin-top: 0.666667rem;
filter: drop-shadow(0.05rem 0 0.09rem rgba(0, 0, 0, 0.1));
margin: 0 0.35rem;
margin: .64rem 0.35rem 0;
}
.allSections-left {
width: 35%;
border-left: 0.013333rem solid #ddd;
@ -117,6 +119,7 @@
display: flex;
flex-direction: column;
text-align: center;
span {
height: 1.28rem;
line-height: 1.28rem;
@ -124,6 +127,7 @@
font-size: 0.32rem;
// padding: 0 0 0 0.2rem;
position: relative;
&.active {
background-color: #fff;
font-weight: bolder;
@ -133,6 +137,7 @@
margin-left: -0.133333rem;
filter: drop-shadow(0 0 0.08rem rgba(0, 0, 0, 0.1));
}
&.active::before {
content: "";
width: 0.36rem;
@ -143,6 +148,7 @@
box-shadow: 0.14rem 0.14rem #fff;
border-radius: 0 0 0.32rem 0;
}
&.active::after {
content: "";
width: 0.36rem;
@ -153,14 +159,17 @@
box-shadow: 0.14rem -0.14rem #fff;
border-radius: 0 0.32rem 0 0;
}
&:first-child.active::before {
display: none;
}
&:last-child.active::after {
display: none;
}
}
}
.allSections-right {
width: 65%;
background-color: #fff;
@ -171,9 +180,11 @@
z-index: 1;
display: none;
padding-bottom: 0.4rem;
&.active {
display: block;
}
.allSections-right-item {
padding: 0.4rem 0;
margin: 0 0.32rem 0 0.7rem;
@ -181,25 +192,31 @@
display: flex;
justify-content: space-between;
position: relative;
.item-content {
width: 80%;
}
.item-title {
color: #000;
font-size: 0.32rem;
}
.item-text {
margin: 0.266667rem 0;
color: #aaa;
font-size: 0.28rem;
}
.item-star {
display: flex;
align-items: center;
img {
width: 20px;
}
}
&::before {
content: "";
width: 0.12rem;
@ -211,5 +228,4 @@
background-color: #62b1ff;
}
}
}
</style>
}</style>