You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.0 KiB

<template>
<view class="index">
<view class="searchbar">
<text>常安门户</text>
<u-search placeholder="请输入搜索内容"
placeholder-color="#B8B8B8"
:show-action="false"
bg-color="#fff"
v-model="keyword"
@search="confirmSearch"
:clearabled="true"></u-search>
</view>
<slot name="content">
</slot>
</view>
</template>
<script>
export default {
data() {
return {
keyword: ""
};
},
methods:{
confirmSearch(val){
console.log(val)
}
}
}
</script>
<style scoped>
.index {
background: url(@/static/images/homebg.png) no-repeat;
background-color: #fff;
background-size: 100%;
width: 100%;
min-height: 435rpx;
padding-top: 90rpx;
}
.index .searchbar{
padding:30rpx;
}
.index text{
width:30%;
font-size: 36rpx;
color:#fff;
display: inline-block;
font-family: IdeaFonts-YiYuan, IdeaFonts;
font-weight: normal;
}
.index .u-search{
width:70%;
display: inline-block;
}
/deep/ .u-action{
display: none;
}
</style>