<template> <view class="app-content"> <!-- <view class="header"><liu-search :hotList="hotList" @input="input" @change="change"></liu-search><view class="up"></view></view> --> <liu-search :hotList="hotList" :historyList="historyList" @input="input" @change="change" @changes = 'changes'></liu-search> </view> </template> <script> import Nav from '../../components/header/nav.vue' export default { data() { return { navname: '我的记录', hotList: ['HU7410', 'HU7410', 'HU7410', 'HU7410', 'HU7410', 'HU7410', 'HU7410'],//热门搜索 historyList: ['HU7410','HU7410','HU7410','HU7410'] } }, created(option) { }, onLoad(){ }, onUnload() { }, onShow() { }, mounted() { }, components: { Nav }, methods: { changes () { uni.redirectTo({ url: "/pages/myrecords/index" }) }, //搜索内容 change(e) { console.log('搜索内容:' + e) }, //input事件 input(e){ console.log('搜索框输入的内容:' + e) }, }, } </script> <style lang="scss" scoped> .app-content{ >.header{ width: 100%; height: 4.375rem; display: flex; justify-content: center; align-items: center; // background: rgba(49,85,99,1); color: rgb(16, 17, 22); font-family: Noto Sans SC; font-size: 1rem; position: relative; >.log{ width: .375rem; height: .75rem; font-size: .75rem; position: absolute; left: 1.5rem; background: url('../../static/ico@1x.png') no-repeat; background-size: 100% 100%; } >.up{ width: .8456rem; height: .8456rem; position: absolute; right: 1.5rem; background: url('../../static/search.png') no-repeat; background-size: 100% 100%; // color: rgb(37, 121, 160); // font-family: Noto Sans SC; // font-size: .875rem; // font-weight: 500; } } >.nav{ height: 2rem; display: flex; align-items: center; padding: 0 .75rem 0 .75rem; >.nav_list{ margin: 0 .75rem 0 .75rem; color: rgb(16, 17, 22); font-family: Noto Sans SC; font-size: 14px; height: 100%; } >.nav_lists{ margin: 0 .75rem 0 .75rem; color: rgb(37, 121, 160); font-family: Noto Sans SC; font-size: 14px; font-size: 14px; height: 100%; border-bottom: 2px solid rgb(37, 121, 160); } } >.content{ margin-left: 1.5rem; >.list{ height: 3.375rem; display: flex; align-items: center; border-bottom: 1px solid rgb(238, 238, 238); position: relative; color: rgb(0, 0, 0); font-family: Noto Sans SC; font-size: 13px; font-weight: 400; >p{ color: rgb(0, 0, 0); font-family: Noto Sans SC; font-size: 13px; font-weight: 400; margin-right: 2.1875rem; } >.listup{ width: .25rem; height: .5rem; background: url('../../static/icos.png') no-repeat; background-size: 100% 100%; position: absolute; right: 1.5rem; } } >.picturearea{ margin-top: 1.875rem; >.name{ color: rgb(0, 0, 0); font-family: Noto Sans SC; font-size: .8125rem; font-weight: 500; } >.content_list{ width: 100%; display: flex; margin-top: 1.25rem; >.mg{ width: 5.5rem; height: 5.5rem; background: rgb(197, 207, 211); display: flex; align-items: center; justify-content: center; margin-right: .625rem; >.mg_lg{ width: 1.75rem; height: 1.75rem; background: url('../../static/shi.png') no-repeat; background-size: 100% 100%; } } } } } } </style>