1
李凌
2026-01-10 5f2b76b86980a149c9299acbf022c879e75b85bd
src/views/homePage/components/head.vue
@@ -1,15 +1,18 @@
<template>
    <div class="head flex justify-between items-center pl-5 pr-5">
        <div class="more mr-5"><img src="@/assets/imgs/home/more.png" alt="" @click="onRoute('/my')"></div>
        <div class="more mr-5">
            <img src="@/assets/imgs/home/more.png" alt="" @click="onRoute('/my')">
        </div>
        <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="background-color: #F7F7F7;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> -->
@@ -38,10 +41,9 @@
</script>
<style lang="scss" scoped>
@import '@/assets/theme/index.scss';
.head {
    width: 100%;
    $inp-bg: #F7F7F7;
    $inp-c: #999;
    margin-bottom: 1rem;
    .more,
@@ -52,14 +54,16 @@
    }
    .more_input {
        // width: 26rem;
        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;
            overflow: hidden;