|
|
@@ -59,7 +59,7 @@ const getHead = async () => {
|
|
|
try {
|
|
|
const datas1 = await getProductCategoryTree({});
|
|
|
const datas2 = await categoryMainList({ status: 1 });
|
|
|
- document.documentElement.style.setProperty('--enterprise-color', '#E7000B');
|
|
|
+ document.documentElement.style.setProperty('--hover-jd2', datas2.rows.length > 0 ? datas2.rows[0].categoryThemeColor || '#E7000B' : '#E7000B');
|
|
|
datas1.data.forEach((item1: any) => {
|
|
|
datas2.rows.forEach((item2: any) => {
|
|
|
if (item2.syncCategoryId == item1.id) {
|
|
|
@@ -108,7 +108,7 @@ const onMouseenter = (index: any) => {
|
|
|
.cate-item.active,
|
|
|
.cate-item:hover {
|
|
|
background: #fff;
|
|
|
- border-color: #e1251b; /* 四周边框变红 */
|
|
|
+ border-color: var(--hover-jd2); /* 四周边框变红 */
|
|
|
border-right-color: #fff; /* 右边框变白打通 */
|
|
|
z-index: 201; /* 盖在弹窗上方 */
|
|
|
width: calc(100% + 1px); /* 向右延伸 1px */
|
|
|
@@ -116,7 +116,7 @@ const onMouseenter = (index: any) => {
|
|
|
|
|
|
.cate-item.active a,
|
|
|
.cate-item:hover a {
|
|
|
- color: #e1251b;
|
|
|
+ color: var(--hover-jd2);
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
@@ -145,7 +145,7 @@ const onMouseenter = (index: any) => {
|
|
|
width: 950px;
|
|
|
height: 440px;
|
|
|
background: #fff;
|
|
|
- border: 1px solid #e1251b;
|
|
|
+ border: 1px solid var(--hover-jd2);
|
|
|
border-radius: 12px;
|
|
|
box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.12);
|
|
|
padding: 24px 30px;
|
|
|
@@ -170,7 +170,7 @@ const onMouseenter = (index: any) => {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
.p-tag:hover {
|
|
|
- background: #e1251b;
|
|
|
+ background: var(--hover-jd2);
|
|
|
color: #fff;
|
|
|
}
|
|
|
|
|
|
@@ -179,7 +179,7 @@ const onMouseenter = (index: any) => {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
.red-t {
|
|
|
- color: #e1251b;
|
|
|
+ color: var(--hover-jd2);
|
|
|
font-size: 18px;
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
@@ -190,7 +190,7 @@ const onMouseenter = (index: any) => {
|
|
|
}
|
|
|
.small-t {
|
|
|
font-size: 9px;
|
|
|
- color: #e1251b;
|
|
|
+ color: var(--hover-jd2);
|
|
|
letter-spacing: 1px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
@@ -212,7 +212,7 @@ const onMouseenter = (index: any) => {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
.item-label:hover {
|
|
|
- color: var(--enterprise-color);
|
|
|
+ color: var(--hover-jd2);
|
|
|
}
|
|
|
.sub-dl dd {
|
|
|
flex: 1;
|
|
|
@@ -228,6 +228,6 @@ const onMouseenter = (index: any) => {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
.item1-label:hover {
|
|
|
- color: var(--enterprise-color);
|
|
|
+ color: var(--hover-jd2);
|
|
|
}
|
|
|
</style>
|