From 7bb960ef165d091678a65ddc01b6551ec4487daa Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Mon, 29 Dec 2025 14:26:11 +0800
Subject: [PATCH] 1
---
src/views/homePage/components/head.vue | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/views/homePage/components/head.vue b/src/views/homePage/components/head.vue
index 39f7d08..29ffc8f 100644
--- a/src/views/homePage/components/head.vue
+++ b/src/views/homePage/components/head.vue
@@ -4,15 +4,15 @@
<img src="@/assets/imgs/home/more.png" alt="" @click="onRoute('/my')">
</div>
- <div class="more_input tabBackground1 pl-5 pr-5 flex items-center justify-start mr-5 pt-2">
+ <div class="more_input pl-5 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> -->
- <van-field v-model="iValue" :placeholder="$t('请输入关键词搜寻')" style="padding: 0 1rem;"
+ <van-field v-model="iValue" :placeholder="$t('请输入关键词搜寻')" style="padding: 0 1rem;background: none;"
@input="emit('search', iValue)" />
</div>
<div class="scan"><img src="@/assets/image/assets-center/language.png" alt="" @click="onRoute('/language')">
</div>
-
+
<!-- <div class="" @click="store.commit('vant/SET_THEME', 'dark')">切换1</div>
<div class="" @click="store.commit('vant/SET_THEME', 'light')">切换2</div> -->
@@ -41,6 +41,7 @@
</script>
<style lang="scss" scoped>
+@import '@/assets/theme/index.scss';
.head {
width: 100%;
margin-bottom: 1rem;
@@ -53,13 +54,16 @@
}
.more_input {
- // width: 26rem;
- // background: #fff;
width: 100%;
height: 4.5rem;
border-radius: 2.25rem;
font-size: 1.5rem;
+ @include themify() {
+ background-color: themed("input_background");
+ color: themed("text_color1");
+ }
+
span {
text-overflow: ellipsis;
overflow: hidden;
--
Gitblit v1.9.3