Commit 35c5a570 by 胡悦

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

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