
<template>
<view>
<view class="zhuangbox u-flex">
<u--input
placeholder="请输入关键字搜索"
border="surround"
shape='circle'
prefixIcon="search"
prefixIconStyle="font-size: 22px;color: #909399"
v-model="inputVal"
@confirm='searchFun'
></u--input>
<text class="u-m-l-30 u-color-8D4 u-f-s-26" @click="cancelFun">取消</text>
</view>
<view class="search-keyword">
<scroll-view class="keyword-box" scroll-y>
<view class="keyword-block">
<view class="u-flex u-row-between u-p-t-30 u-p-b-30 u-tips-color">
<view class="title">历史搜索</view>
<view @tap="oldDelete">
<image src="@/static/img/shanchu.png" mode="" class="u-w-40 u-h-40"></image>
</view>
</view>
<view class="u-flex u-flex-wrap">
<view class="u-m-r-15 u-m-b-15" v-for="(keyword, index) in list" @tap="doSearch(keyword)" :key="index">