Commit 35c5a570 by 胡悦

style(HomeFrame): 优化活动中心和学研中心的样式结构

重构活动中心和学研中心的样式代码,将.active类移动到.sprite-icon内部
调整导航栏位置和样式,保持UI一致性
1 parent 6ce4d8c1
......@@ -126,8 +126,8 @@ export default {
detailsList: [{ name: '1' }, { name: '1' }, { name: '1' }, { name: '1' }, { name: '1' }, { name: '1' }, { name: '1' }, { name: '1' }, { name: '1' }],
firstIndex: 0,
activeIndex: 0,
firstLeft: ['first', 'second'],
firstClass: ['short-first-nav', 'short-second-nav'],
firstLeft: ['first', 'second', 'three'],
firstClass: ['short-first-nav', 'short-second-nav', 'short-second-nav'],
isBeisen: false, // 是否是有北森权限,true 有,false无
isFlag: true, // 当前驻店人员所关联的门店非鸿蒙智行或非延保业务
isHmzx: false, // 当前驻店人员所关联的门店是否是鸿蒙智行
......@@ -366,17 +366,26 @@ export default {
}
.second {
left: toRpx(352);
left: toRpx(367);
}
.three {
left: toRpx(756);
left: toRpx(770);
}
.four {
left: toRpx(1162);
}
.sprite-icon {
&.active {
position: absolute;
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3B73FF;
}
}
.text {
position: relative;
text-align: center;
......@@ -391,28 +400,27 @@ export default {
border-radius: 50%;
right: toRpx(86);
}
}
.active {
position: absolute;
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3b73ff;
&::after {
content: '';
&.active {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: toRpx(48);
height: toRpx(8);
background-color: #3b73ff;
border-radius: toRpx(16);
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3b73ff;
&::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: toRpx(48);
height: toRpx(8);
background-color: #3b73ff;
border-radius: toRpx(16);
}
}
}
}
}
}
.activity-box {
......
......@@ -249,7 +249,16 @@ export default {
font-weight: 500;
font-size: toRpx(34);
color: #292D33;
.sprite-icon {
&.active {
position: absolute;
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3B73FF;
}
}
.first {
left: 0;
}
......@@ -280,26 +289,25 @@ export default {
border-radius: 50%;
right: toRpx(86);
}
}
.active {
position: absolute;
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3B73FF;
&::after {
content: '';
&.active {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: toRpx(48);
height: toRpx(8);
background-color: #3B73FF;
border-radius: toRpx(16);
top: 0;
z-index: -1;
font-weight: 500;
font-size: toRpx(32);
color: #3B73FF;
&::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: toRpx(48);
height: toRpx(8);
background-color: #3B73FF;
border-radius: toRpx(16);
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!