header-org.vue
1.43 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
<template>
<view class="header-org">
<view @click="$emit('openOrg')" class="org-item">
<view class="u-flex org-contact"><text class="text">组织关系</text></view>
<view class="u-flex org-device">
<image class="device-image" :src="imageSrc"></image>
<text class="device-text">摄像头数:{{ total }}</text>
</view>
</view>
<view class="org-item">
<image class="image" src="/static/arrow-right.png"></image>
</view>
</view>
</template>
<script>
export default {
props: {
total: Number,
imageSrc: String
}
}
</script>
<style lang="scss" scoped>
.header-org {
width: 750rpx;
height: 150rpx;
margin-top: 1rpx;
background-color: #fff;
display: flex;
flex-direction: row;
justify-content: space-between;
position: fixed;
z-index: 999999;
top: -1rpx;
.org-item {
width: 350rpx;
height: 200rpx;
.org-contact {
flex-direction: row;
margin-top: 26rpx;
margin-left: 15rpx;
.text {
color: #333333;
font-size: 15px;
margin-left: 14rpx;
}
}
.org-device {
margin-top: 23rpx;
margin-left: 15rpx;
flex-direction: row;
.device-image {
margin-left: 14rpx;
width: 30rpx;
height: 30rpx;
}
.device-text {
margin-left: 10rpx;
color: #666666;
font-size: 12px;
}
}
.image {
width: 6px;
height: 10px;
float: right;
margin-right: 34rpx;
margin-top: 37rpx;
}
}
}
</style>