Browse Source

fix: 🧩 停车输入框选中态优化

pull/7/head
liyongle 3 years ago
parent
commit
be5699f4d8
  1. 5
      src/components/PlateInput/PlateInput.vue
  2. 2
      src/components/Search/Hot.vue

5
src/components/PlateInput/PlateInput.vue

@ -4,7 +4,10 @@
<div
v-for="(item, index) of renderInputLength"
:key="item"
:class="{ active: index === list.length && list.length <= 7, space: searchMethod === '车位' }"
:class="{
active: (index === list.length && list.length < 7) || (isEnergy && list.length === 7 && index === PLATE_LENGTH - 1),
space: searchMethod === '车位'
}"
class="input"
@click="handleEnergy"
>

2
src/components/Search/Hot.vue

@ -31,7 +31,7 @@ import { useStatistics } from '@/composables/useStatistics'
import ScrollView from '@/base/ScrollView/ScrollView.vue'
const list = ref<HotSearch[]>([])
getIndexJson().then(({ data }) => {
list.value = []
list.value = data.hotSearch
})
const store = useRootStore()

Loading…
Cancel
Save