Browse Source

feat: 搜索跳转

潮流
jiannibang 4 years ago
parent
commit
31496df83b
  1. 8
      src/components/PublicComponent/SearchBar.vue

8
src/components/PublicComponent/SearchBar.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="row"> <div class="row">
<div class="back" v-if="$route.path !== '/index'" @click="() => $router.push('/')"></div> <div class="back" v-if="$route.path !== '/index'" @click="() => $router.push('/')"></div>
<div class="bar">
<div class="bar" @click="handleSearch">
<div class="icon"></div> <div class="icon"></div>
<div class="stick"></div> <div class="stick"></div>
<div class="placeholder">精确查询品牌/公共设施</div> <div class="placeholder">精确查询品牌/公共设施</div>
@ -9,7 +9,11 @@
</div> </div>
</template> </template>
<script setup></script>
<script setup>
import { useStore } from '@/store/root'
const store = useStore()
const handleSearch = () => store.SET_SHOW_SEARCH(true)
</script>
<style lang="scss" scoped> <style lang="scss" scoped>
.row { .row {

Loading…
Cancel
Save