118 lines
2.4 KiB
Vue
118 lines
2.4 KiB
Vue
<template>
|
|
<view>
|
|
<view class="tag-box">
|
|
<view class="title">
|
|
<view class="icon">
|
|
<u-icon name="account-fill" size="20" color="#aaa"></u-icon>
|
|
</view>
|
|
<text class="text">更多达人</text>
|
|
</view>
|
|
<view class="sticky-box">
|
|
<view class="btn-tag" @click="tabClick('category')">
|
|
<text class="text">{{searchTabs.categoryLabel}}</text>
|
|
<u-icon name="arrow-down" size="20" color="#aaa"></u-icon>
|
|
</view>
|
|
<view class="btn-tag" @click="tabClick('sex')">
|
|
<text class="text">{{searchTabs.sexLabel}}</text>
|
|
<u-icon name="arrow-down" size="20" color="#aaa"></u-icon>
|
|
</view>
|
|
<!-- <view class="btn-tag" @click="tabClick('level')">
|
|
<text class="text">等级</text>
|
|
<u-icon name="arrow-down" size="20" color="#aaa"></u-icon>
|
|
</view> -->
|
|
<!-- <view class="btn-tag" @click="tabClick('city')">
|
|
<text class="text">城市</text>
|
|
<u-icon name="arrow-down" size="20" color="#aaa"></u-icon>
|
|
</view> -->
|
|
<!-- <view class="btn-tag" @click="tabClick('city')">
|
|
<text class="text">筛选</text>
|
|
<u-icon name="shaixuan" custom-prefix="iconfont" size="20" color="#aaa"></u-icon>
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import sheep from '@/sheep';
|
|
export default {
|
|
components: {
|
|
|
|
},
|
|
props: {
|
|
scrollTop: {
|
|
type: Number,
|
|
default: 0,
|
|
},
|
|
stickyTop: {
|
|
type: Number,
|
|
default: uni.upx2px(80),
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
computed: {
|
|
searchTabs() {
|
|
return sheep.$store('sys').searchTabs;
|
|
},
|
|
},
|
|
methods: {
|
|
tabClick(e) {
|
|
this.$emit('tabClick', e);
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.tag-box {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px;
|
|
background-color: #fafafa;
|
|
height: 100rpx;
|
|
|
|
.title {
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
display: flex;
|
|
|
|
.icon {
|
|
background-color: #ddd;
|
|
width: 36rpx;
|
|
height: 36rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 100%;
|
|
}
|
|
|
|
.text {
|
|
margin-left: 4px;
|
|
}
|
|
}
|
|
|
|
.sticky-box {
|
|
display: flex;
|
|
|
|
.btn-tag {
|
|
background-color: #fff;
|
|
border-radius: 40px;
|
|
margin-left: 5px;
|
|
padding: 0px 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 24rpx;
|
|
height: 48rpx;
|
|
|
|
.text {
|
|
margin-right: 3px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style> |