直播系统代码,常用搜索中搜索历史,搜索推荐功能
直播系统代码,常用搜索中搜索历史,搜索推荐功能
HTML:
<template>
<view>
<view>
<view>
<input v-model="inpuValue" type="text" @confirm="search" />
<image src="https://shanxi-petrochina.oss-cn-hangzhou.aliyuncs.com/home/ico_sousuo%402x.png"></image>
</view>
<text @click="search">搜索</text>
</view>
<view v-show="historyShow">
<view>
<text>历史搜索</text>
<image src="https://shanxi-petrochina.oss-cn-hangzhou.aliyuncs.com/home/ico_shanchu.png" @click="Delete"></image>
</view>
<view>
<text v-for="(item,index) in tagValueList" :key="index" @click="tagClick(item)">{{item}}</text>
</view>
</view>
<view>
<view>
<text>猜你可能在找</text>
</view>
<view>
<text v-for="(item,index) in historyItemList" :key="index" @click="tagClick(item.name)">{{item.name}}</text>
</view>
</view>
</view>
</template>
CSS:
<style scoped>
.page{
min-height: 100vh;
background: #F5F5F5;
padding: 20rpx 24rpx;
}
.header{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
.inputBox{
width: 606rpx;
height: 60rpx;
background: #ECECEC;
border-radius: 30rpx;
position: relative;
input{
height: 60rpx;
background: #ECECEC;
border-radius: 30rpx;
padding-left: 72rpx;
padding-right: 20rpx;
font-size: 28rpx;
color: #000000;
}
image{
width: 32rpx;
height: 32rpx;
position: absolute;
left: 20rpx;
top: 0;
bottom: 0;
margin: auto;
}
}
.headerText{
font-size: 32rpx;
color: #606060;
line-height: 44rpx;
}
}
以上就是直播系统代码,常用搜索中搜索历史,搜索推荐功能, 更多内容欢迎关注之后的文章