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,9 +400,7 @@ export default { ...@@ -391,9 +400,7 @@ export default {
border-radius: 50%; border-radius: 50%;
right: toRpx(86); right: toRpx(86);
} }
} &.active {
.active {
position: absolute; position: absolute;
top: 0; top: 0;
z-index: -1; z-index: -1;
...@@ -415,6 +422,7 @@ export default { ...@@ -415,6 +422,7 @@ export default {
} }
} }
} }
}
.activity-box { .activity-box {
padding-top: toRpx(32); padding-top: toRpx(32);
height: calc(100% - #{toRpx(100)}); height: calc(100% - #{toRpx(100)});
......
...@@ -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,9 +289,7 @@ export default { ...@@ -280,9 +289,7 @@ export default {
border-radius: 50%; border-radius: 50%;
right: toRpx(86); right: toRpx(86);
} }
} &.active {
.active {
position: absolute; position: absolute;
top: 0; top: 0;
z-index: -1; z-index: -1;
...@@ -306,5 +313,6 @@ export default { ...@@ -306,5 +313,6 @@ export default {
} }
} }
} }
}
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!