header-search.vue
1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<template>
<u-sticky>
<view class="device-top">
<view class="search">
<view>
<view class="search-left">
<slot></slot>
</view>
</view>
<view @click="$emit('openSearchDialog')" class="search-right">
<text>筛选</text>
<image src="../../static/shaixuan.png" />
</view>
</view>
<u-line />
<view class="org">
<u-cell @click="$emit('openOrg')" isLink title="组织关系" :border="false">
<view slot="label" class="label" style="display: flex; align-items: center;margin-top: 20rpx;">
<image src="../../static/org.png" style="width: 24rpx;height: 28rpx;"></image>
<view style="margin-left: 10rpx; color: #666;">
{{totalText}}
<text style="margin-left: 20rpx;">{{ total }}</text>
</view>
</view>
</u-cell>
</view>
</view>
</u-sticky>
</template>
<script>
export default {
props: {
total: Number,
totalText: [Number, String]
}
}
</script>
<style lang="scss" scoped>
/deep/ .u-button--primary {
background-color: #377dff !important;
border-color: #377dff !important;
}
/deep/ .u-button--info {
background-color: #e3e3e5 !important;
border-color: #e3e3e5 !important;
}
/deep/ .u-cell__right-icon-wrap {
margin-top: -55rpx !important;
}
/deep/ .uni-calendar--fixed {
bottom: 172rpx !important;
}
.pop-no-scroll {
overflow: hidden;
position: fixed;
height: 100%;
width: 100%;
}
.device-top {
padding: 10rpx 30rpx;
background-color: #fff;
.search {
display: flex;
justify-content: space-between;
padding-bottom: 10rpx;
.search-left {
width: 580rpx;
background-color: #f8f9fa;
border-radius: 200rpx;
}
.search-right {
display: flex;
align-items: center;
text {
color: #333;
font-size: 14px;
}
image {
width: 40rpx;
height: 40rpx;
}
}
}
}
</style>