brand-search.vue 1.11 KB
<template>
    <div class="search">
        <div class="input" @click='yoho.goSearch()'>
            <span class="icon icon-search"></span><span class="search-text">Search</span>
        </div>
    </div>
</template>
<style>
    .search {
        width: 100%;
        height: 88px;
        padding: 15px 15px;
        background-color: #fff;
        text-align: center;
        border-bottom: 1px solid #f6f6f6;
        background-color: #fff;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 99;


        .input {
            margin-left: auto;
            margin-right: auto;
            background-color: #f6f6f6;
            text-align: center;
            color: #b0b0b0;
            height: 56px;
            line-height: 56px;
            font-size: 28px;

            /* padding: 5px 0; */

            border-radius: 8px;

            .search-text {
                margin-left: 16px;
            }
        }
    }
</style>
<script>
    import yoho from 'yoho';

    export default {
        data() {
            return {
                yoho
            };
        }
    };
</script>