|
39 | 39 | <div v-for="(item, index) in searchProps" :key="index"> |
40 | 40 | <div class="u-filtrate-title">{{ item.name }}</div> |
41 | 41 | <div class="u-box"> |
42 | | - <div class="u-item" :class="{ active: getActiveStatus(item, item2) }" |
43 | | - v-for="(item2, index2) in item.options" :key="index2" @click=" |
| 42 | + <div |
| 43 | + class="u-item" |
| 44 | + :class="{ active: getActiveStatus(item, item2), disabled: item2.disabled }" |
| 45 | + v-for="(item2, index2) in item.options" |
| 46 | + :key="index2" |
| 47 | + @click=" |
44 | 48 | setSearchParams(item.key == 'nCatag1Index' ? item.key : item2.paramsKey, item2) |
45 | | - "> |
| 49 | + " |
| 50 | + > |
46 | 51 | {{ item.key == "nCatag1Index" ? item2.name : item2.value }} |
47 | 52 | </div> |
48 | 53 | </div> |
@@ -200,9 +205,9 @@ export default { |
200 | 205 | paramsKey: "isSet", |
201 | 206 | }, |
202 | 207 | { |
203 | | - key: "1", |
204 | | - value: "园宅会赛", |
205 | | - paramsKey: "isMatch", |
| 208 | + key: "scoreCostPerformance", |
| 209 | + value: "评分性价比", |
| 210 | + disabled: true, |
206 | 211 | }, |
207 | 212 | ], |
208 | 213 | }, |
@@ -300,6 +305,8 @@ export default { |
300 | 305 | return item_c.key == this.queryParams[item_c.paramsKey]; |
301 | 306 | }, |
302 | 307 | setSearchParams(key, item2) { |
| 308 | + if (item2.disabled) return; |
| 309 | +
|
303 | 310 | if (key == "nCatag1Index") { |
304 | 311 | this.queryParams[key] = item2.id; |
305 | 312 | return; |
@@ -507,6 +514,12 @@ export default { |
507 | 514 | background: #fedaa3; |
508 | 515 | } |
509 | 516 |
|
| 517 | + &.disabled { |
| 518 | + cursor: not-allowed; |
| 519 | + color: @fontColor-dark3; |
| 520 | + background: rgba(255, 255, 255, 0.03); |
| 521 | + } |
| 522 | +
|
510 | 523 | &.top { |
511 | 524 | .w(calc(calc(100% - 1rem) / 2)); |
512 | 525 | } |
|
0 commit comments