| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <script setup lang="ts">
- import {CirclePlus, UserFilled, SwitchButton} from "@element-plus/icons-vue";
- import {ref} from 'vue';
- const searchContent = ref('')
- function search() {
- //todo: search
- }
- </script>
- <template>
- <div class="bg-primary-500 min-w-full top-0 shadow-md flex-shrink-0 rounded-b-xl">
- <div class="mx-4 p-4">
- <div class="flex items-center justify-between space-x-4">
- <div class="flex items-center">
- <router-link to="/home" v-slot="{navigate}">
- <h1 @click="navigate" class="text-xl text-white"> 蓝鲸在线购物 </h1>
- </router-link>
- </div>
- <div class="w-3/4">
- <form>
- <div class="relative">
- <!--网上抄的logo-->
- <div class="absolute inset-y-0 start-0 flex items-center ps-3 pointer-events-none">
- <svg class="w-4 h-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
- <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"/>
- </svg>
- </div>
- <input type="search" id="search"
- v-model="searchContent"
- class="block w-full p-4 ps-10 text-gray-900 border border-gray-300 rounded-3xl bg-gray-50 focus:ring-blue-500 focus:border-blue-500" placeholder="国货好物" required>
- <button type="submit" @click="search"
- class="text-white absolute end-5 bottom-2.5 bg-primary-600 hover:bg-primary-700 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-3xl text-sm px-4 py-2">搜索商品</button>
- </div>
- </form>
- </div>
- <div class="flex items-center space-x-4 mx-3">
- <router-link to="/manager/createStore" v-slot="{navigate}">
- <el-icon @click="navigate" :size="30" color="white" ><CirclePlus /></el-icon>
- </router-link>
- <router-link to="/dashboard" v-slot="{navigate}">
- <el-icon @click="navigate" :size="30" color="white" ><UserFilled /></el-icon>
- </router-link>
- <router-link to="/" v-slot="{navigate}">
- <el-icon @click="navigate" :size="30" color="white" ><SwitchButton /></el-icon>
- </router-link>
- </div>
- </div>
- </div>
- </div>
- </template>
- <style scoped>
- </style>
|