uniapp列表顶部搜索框组件

<template>
    <view class="seach-list">
        <!-- <u-search placeholder="请输入搜索内容" :showAction="false" v-model="keyword" @change="inputFcuntion"></u-search> -->
        <view class="welcome">
                <image class="imgss" :src="searlogo" ></image>
                <input class="welcome-input" @change="inputFcuntion" placeholder="搜索订单关键词" v-model="keyword"
                name="value" />
<!--             <view style="width: 85px;height: 40px;margin: 3px;">
                <u-button type="primary" text="搜索" iconColor="#277EEB" color="#277EEB"></u-button>
            </view> -->
            <view class="btn"  @tap="inputFcuntion">
                搜索
            </view>
        </view>
    </view>
</template>

<script>
    import {
        BaseApi,
        imgUrl,code_type
    } from "@/http/baseApi.js"
    export default {
        components: {
            
        },
        data() {
            return {
                keyword: "",
                searlogo: imgUrl+'/uploads/20230705/2e8e0ddc13c9771171cbd68482d110e1.png',
            };
        },
        onLoad(options) {
            
        },
        methods: {
            //点击搜索
            inputFcuntion(){
                this.$emit('searchs',this.keyword)
                
            },
        }
    }
</script>

<style lang="scss">
    page {
        background-color: #F2F8FC;
    }

    .seach-list {
        .welcome{
            display:flex;
            background: #ffffff;
            border: 1.3px solid #277eeb;
            border-radius: 44rpx;
            .imgss{
                margin: auto;
                width: 25px;
                height: 25px;
            }
            .welcome-input{
                width: 400rpx;
                height: 41.3rpx;
                margin: auto;
                margin-right: 80rpx;
            }
            .confirm-btn{
                background: #277eeb;
                border-radius: 8.67px;
                margin: 5px;
            }
                .btn {
                    width: 116rpx;
                
                    background: #1590ff;
                    border-radius: 40rpx;
                    font-size: 18rpx;
                    font-family: PingFang SC, PingFang SC-Heavy;
                    font-weight: 800;
                    text-align: center;
                    color: #ffffff;
                    line-height: 59rpx;
                        margin: 2px;
                }

        }
    
    }
</style>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值