123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <template>
- <div style="min-width: 1184px;">
- <!-- 搜索框 -->
- <div class="default-width py-5">
- <div class="search d-flex align-center">
- <v-text-field
- v-model="inputVal"
- placeholder="请输入关键词"
- color="primary"
- variant="plain"
- density="compact"
- clearable
- :hide-details="true"
- class="ml-3 px-2"
- style="height: 100%; line-height: 100%;"
- @keyup.enter="handleSearch"
- ></v-text-field>
- <v-btn class="searchBtn" prepend-icon="mdi-shopping-search-outline" @click="handleSearch">搜索</v-btn>
- </div>
- </div>
- <!-- 轮播图 -->
- <Carousel />
- </div>
- </template>
- <script setup>
- defineOptions({ name: 'mall-home-index'})
- import { ref } from 'vue'
- import Carousel from './components/carousel.vue'
- const inputVal = ref('')
- const handleSearch = () => {}
- </script>
- <style scoped lang="scss">
- .search {
- height: 50px;
- width: 800px;
- border: 2px solid var(--v-primary-base);
- border-radius: 5px;
- margin: 0 auto;
- .searchBtn {
- width: 180px;
- height: 50px;
- line-height: 48px;
- text-align: center;
- font-size: 18px;
- color: #fff;
- background-color: var(--v-primary-base);
- cursor: pointer;
- }
- }
- </style>
|