From e01cee0f0c5c5c2eb2d8595eadb3c7a9df2a37fc Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Wed, 21 Jan 2026 16:37:01 +0800
Subject: [PATCH] 1
---
src/views/quotes/components/head.vue | 23 +++++++++++++++++------
1 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/src/views/quotes/components/head.vue b/src/views/quotes/components/head.vue
index bd47298..e41d3b2 100644
--- a/src/views/quotes/components/head.vue
+++ b/src/views/quotes/components/head.vue
@@ -1,8 +1,11 @@
<template>
<div class="head flex justify-between items-center pl-5 pr-5">
- <div class="more_input pl-20 pr-5 flex items-center justify-start mr-5 pt-2" @click="onRoute('/optional/search')">
+ <!-- <div class="more_input pl-20 pr-5 flex items-center justify-start mr-5 pt-2" @click="onRoute('/optional/search')"> -->
+ <div class="more_input pl-20 pr-5 flex items-center justify-start mr-5 pt-2">
<img src="@/assets/imgs/quotes/search.png" alt="">
- <span class="pl-5">{{ $t('请输入关键词搜寻') }}</span>
+ <!-- <span class="pl-5">{{ $t('请输入关键词搜寻') }}</span> -->
+ <van-field v-model="iValue" :placeholder="$t('请输入关键词搜寻')" style="background: none;"
+ @input="emit('search', iValue)" />
</div>
</div>
</template>
@@ -10,6 +13,7 @@
<script setup>
import { useRouter } from 'vue-router';
import { useI18n } from "vue-i18n";
+import { ref } from 'vue';
const { t } = useI18n()
const router = useRouter()
@@ -17,23 +21,29 @@
const onRoute = (path) => {
router.push(path)
}
+
+const iValue = ref('')
+const emit = defineEmits(['search'])
</script>
<style lang="scss" scoped>
+@import '@/assets/theme/index.scss';
+
.head {
width: 100%;
- $inp-bg: #F7F7F7;
- $inp-c: #999;
margin-bottom: 1rem;
.more_input {
width: 100%;
height: 4.5rem;
- background: $inp-bg;
border-radius: 2.25rem;
- color: $inp-c;
font-size: 1.5rem;
+
+ @include themify() {
+ background-color: themed("input_background");
+ color: themed("text_color1");
+ }
span {
text-overflow: ellipsis;
@@ -44,6 +54,7 @@
img {
width: 2.5rem;
+ margin-right: .5rem;
}
}
}
--
Gitblit v1.9.3