From 5ad4767667c3eac66226dfbf2bd99444e62bfd6b Mon Sep 17 00:00:00 2001 From: JenniferW <1627055433@qq.com> Date: Thu, 14 Aug 2025 15:25:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A5=E9=AA=A4=E4=BA=8C=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/intention/Step2.vue | 1673 +++++++++++++++++++++++---- src/views/order/intention/query.vue | 368 +++++- 2 files changed, 1772 insertions(+), 269 deletions(-) diff --git a/src/views/order/intention/Step2.vue b/src/views/order/intention/Step2.vue index 99305a0..b0a0b0c 100644 --- a/src/views/order/intention/Step2.vue +++ b/src/views/order/intention/Step2.vue @@ -3,131 +3,220 @@
- -
-
- 车型: - + + - -
- - 参数
对比 -
-
- -
- -
- -
-
{{ item.label }}
-
{{ item.code }}
+
+ + +
+ +
+
+ 您输入的条件可能属于以下字段: +
+
+ [字段] + {{ field.label }} + : +
- + +
+ [字段] + [值] + {{ item.label }} + : + +
+
+ + + + + 查询 + +
+ + +
+ + {{ cond.fieldLabel }}: + {{ cond.value }} + + + + + 清除所有 +
- + + +
+
+ + 参数
对比 +
+
+ +
+ +
+ +
+
{{ item.name }}
+
{{ item.productNumber }}
+
+ {{ item.specificationModel }} +
+
+ 适用车型: {{ item.carModel }} +
+
+
+
+
+ +
+ +
+
+ +
- + @@ -142,12 +231,12 @@ {{ column.label }} + {{ + selectedCompareList.find( + (i) => i.productNumber === column.label + ).name + }}
@@ -173,34 +272,26 @@
- -
\ No newline at end of file + +// 从query.vue整合的样式 +.search-box-container { + max-width: 1200px; + margin: 0 auto; + padding: 20px; +} + +.search-box { + display: flex; + align-items: center; + gap: 10px; + margin-bottom: 20px; + position: relative; +} + +.custom-input-wrapper { + position: relative; + flex-grow: 1; +} + +.main-input { + width: 100%; + min-width: 300px; + font-size: 16px; +} + +.search-button { + white-space: nowrap; +} + +.suggestions-dropdown { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + background: white; + border: 1px solid #e4e7ed; + border-radius: 4px; + box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); + margin-top: 5px; + max-height: 300px; + overflow-y: auto; +} + +/* 可能的字段部分样式 */ +.possible-fields-section { + border-bottom: 1px solid #e4e7ed; + padding-bottom: 5px; + margin-bottom: 5px; +} + +.possible-fields-header { + padding: 8px 15px; + font-size: 14px; + color: #666; + background-color: #f5f7fa; +} + +.possible-field-item { + padding: 10px 15px; + cursor: pointer; + transition: background-color 0.2s; +} + +.possible-field-item:hover, +.possible-field-item.active { + background-color: #f0f7ff; + color: #1890ff; +} + +.hint-item { + padding: 10px 15px; + background-color: #f0f7ff; + border-bottom: 1px solid #e4e7ed; + display: flex; + align-items: center; + gap: 8px; + color: #1890ff; +} + +.hint-icon { + font-size: 14px; +} + +.suggestion-item { + padding: 10px 15px; + cursor: pointer; + transition: background-color 0.2s; +} + +.suggestion-item:hover, +.suggestion-item.active { + background-color: #f5f7fa; +} + +.field-type, +.value-type { + display: inline-block; + width: 50px; + font-size: 12px; + color: #909399; +} + +.field-hint { + color: #909399; +} + +.conditions-tags { + margin: 15px 0; + display: flex; + flex-wrap: wrap; + gap: 10px; +} + +.condition-tag { + cursor: pointer; + transition: all 0.2s; + padding-right: 30px !important; + position: relative; +} + +.condition-tag:hover { + transform: translateY(-2px); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); +} + +.tag-field { + font-weight: 500; +} + +.tag-value { + color: #409eff; /* 突出显示可更改的值 */ + margin-right: 5px; + cursor: pointer; + text-decoration: underline; + text-underline-offset: 2px; +} + +.tag-value:hover { + color: #1890ff; +} + +.tag-edit-icon { + position: absolute; + right: 10px; + top: 50%; + transform: translateY(-50%); + color: #409eff; + opacity: 0.7; +} + +.results-section { + margin-top: 30px; + overflow: hidden; +} + +.results-table { + width: 100%; +} + +.no-results { + padding: 50px 0; + text-align: center; +} + +.clear-button { + color: #666; +} + +.result-card-spec { + font-size: 12px; + color: #666; + margin-bottom: 4px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.result-card-car-model { + font-size: 12px; + color: #666; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.compare-table-wrap { + margin-top: 16px; + max-height: 500px; + overflow-y: auto; +} + +@media (max-width: 768px) { + .search-box { + flex-direction: column; + align-items: stretch; + } + + .main-input { + min-width: auto; + } + + .search-button { + width: 100%; + } + + .result-card { + width: 100%; + } +} + diff --git a/src/views/order/intention/query.vue b/src/views/order/intention/query.vue index 56e9580..26691e9 100644 --- a/src/views/order/intention/query.vue +++ b/src/views/order/intention/query.vue @@ -117,33 +117,144 @@
-

查询结果

+

查询结果 ({{ filteredData.length }})

清除所有
- - - + +
+ + 参数
对比 +
+
+ +
+ +
+ +
+
{{ item.name }}
+
{{ item.productNumber }}
+
{{ item.specificationModel }}
+
+ 适用车型: {{ item.carModel }} +
+
+
+
+
+ + + + +
+ + + + + + +
+