@@ -85,60 +134,83 @@ const onClick = (val: any) => {
- -
- {{ item.name }}
-
-
- -
-
-
- {{ child.name }}
-
+
-
+ {{ selectOptionsValue }}
+
-
-
+
分类筛选
+ 公司筛选
+
+
+
+
+
+
+ {{ item.name }}
+
+
+ -
-
-
-
- {{ son.name }}
+
+
+ {{ child.name }}
-
+
- {{ son_1.name }}
+
+
+
+ {{ son.name }}
+
+
+
+
+ {{ son_1.name }}
+
+
-
-
-
+
+
-
-
+
+
+
+
+
+
+ {{ item.companyName }}
+
+
+
@@ -273,80 +359,131 @@ const onClick = (val: any) => {
.home-goods {
height: 500px;
display: flex;
+ position: relative;
.left-nav {
- position: relative;
+ // padding: 10px 0;
// margin-top: 8px;
width: 200px;
height: 100%;
display: flex;
- // background-color: #f7f9fa;
- background-color: #6599ed;
flex-direction: column;
- // justify-content: space-around;
+ align-items: center;
+ background-color: #f7f9fa;
+ overflow: hidden;
+ overflow-y: auto;
- .item-nav {
- // text-align: left;
- // padding-left: 50px;
- color: #fff;
- height: 46px;
- line-height: 46px;
- text-align: center;
- font-size: 16px !important;
+ .left-filter {
+ margin-top: 10px;
+ padding: 3px 0;
+ position: relative;
+ display: flex;
+ align-content: center;
+ justify-content: center;
+ color: #38b2a4;
+ // height: 46px;
+ // line-height: 46px;
+ // text-align: center;
+ font-weight: bold;
+ cursor: pointer;
- &:hover {
- cursor: pointer;
- // color: #2282ff;
- // font-weight: bold;
- background-color: #1abc9c;
+ .select-options {
+ position: absolute;
+ width: 120%;
+ left: 50%;
+ bottom: -65px;
+ border-radius: 4px;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
+ transform: translateX(-50%);
+ background-color: #fff;
- .sub-goods {
- display: block;
+ div {
+ padding: 8px 6px;
+ text-align: left;
+ font-size: 14px;
+ font-weight: normal;
+ cursor: pointer;
+ color: #333;
+ }
+ div:hover {
+ color: #38b2a4;
}
}
}
- .sub-goods {
- position: absolute;
- display: none;
- top: 0;
- left: 200px;
- width: 915px;
- max-height: 100%;
- background-color: #f5f4f4;
- z-index: 999;
- // opacity: 0.9;
- border: 1px solid #333;
- overflow-y: auto;
- box-sizing: border-box;
+ .item-container {
+ width: 100%;
+ text-align: center;
+ .item-nav {
+ // text-align: left;
+ // padding-left: 50px;
+ display: inline-block;
+ margin-top: 10px;
+ padding: 0 10px;
+ color: #000;
+ height: 32px;
+ line-height: 32px;
+ text-align: center;
+ font-size: 16px !important;
- li {
- // margin: 10px 0;
- color: #333;
- font-weight: bold;
- display: flex;
-
- .second-name {
- width: 160px;
- margin-left: 10px;
+ &:hover {
+ cursor: pointer;
+ // color: #2282ff;
+ // font-weight: bold;
+ background-color: #1abc9c;
+ border-radius: 18px;
+ color: #fff;
}
+ }
- span a {
- margin: 0 15px;
- font-size: 14px;
- font-weight: normal;
- }
+ .sub-goods {
+ position: absolute;
+ display: none;
+ top: 0;
+ left: 200px;
+ width: 915px;
+ max-height: 100%;
+ background-color: #f5f4f4;
+ z-index: 999;
+ // opacity: 0.9;
+ border: 1px solid #333;
+ overflow-y: auto;
+ box-sizing: border-box;
- .last-level {
- margin-left: 3px;
- }
+ li {
+ // margin: 10px 0;
+ color: #333;
+ font-weight: bold;
+ display: flex;
- .last-level:hover {
- color: #1abc9c;
- border-bottom: 1px solid #1abc9c !important;
+ .second-name {
+ width: 160px;
+ margin-left: 10px;
+ }
+
+ span a {
+ margin: 0 15px;
+ font-size: 14px;
+ font-weight: normal;
+ }
+
+ .last-level {
+ margin-left: 3px;
+ }
+
+ .last-level:hover {
+ color: #1abc9c;
+ border-bottom: 1px solid #1abc9c !important;
+ }
}
}
}
+ .item-container:hover {
+ .sub-goods {
+ display: block !important;
+ z-index: 9999;
+ }
+ }
}
.right-content {
@@ -467,7 +604,7 @@ const onClick = (val: any) => {
}
}
-::v-deep .el-carousel__container {
+:deep(.el-carousel__container) {
height: 100%;
}
diff --git a/vite.config.ts b/vite.config.ts
index 5b7b6aa..4fb3a16 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -132,7 +132,8 @@ export default ({ mode }: any) => {
drop_console: isProduction, //生产正式 去除
drop_debugger: isProduction //生产正式 去除
}
- }
+ },
+ minify: 'terser',
/*
rollupOptions: {
output: {