<template>
<view class="home">
<navbar :isSearch="true" v-model="value" @input="change"></navbar>
<view class="home-list">
<view v-if="is_history" class="label-box">
<view class="label-header">
<text class="label-title">搜索历史</text>
<text class="label-clear" @click="clear">清空</text>
</view>
<view v-if="historyLists.length>0" class="label-content">
<view class="label-content__item" v-for="(item,index) in historyLists" :key="index"
@click="openHistory(item)">
{
{item.name}}
</view>
</view>
<view v-else class="no-data">没有搜索历史</view>
</view>
<list-scroll v-else class="list-scroll">
<uni-load-more v-if="loading" status="loading" iconType="snow"></uni-load-more>
<view v-if="searchList.length > 0">
<list
Uniapp搜索功能程序
最新推荐文章于 2024-07-17 18:17:15 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)