ZhangXianQiang
2024-03-08 dfa2e66389df106ef38a4fd621f2e3e0cf91ace8
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<template>
  <!-- 信息弹窗四  警力-->
  <div class="dialog-container" ref="dialog">
    <div class="dialog-content">
      <el-scrollbar max-height="277px">
        <div class="scroll-content">
          <div class="dialog-title">成都百货大楼交叉路口</div>
          <div class="info-container">
            <div class="info-item">
              <span class="lable">在岗警力</span>
              <span class="num">5</span>
            </div>
            <div class="info-item">
              <span class="lable">在岗警车</span>
              <span class="num">2</span>
            </div>
            <div class="info-item">
              <span class="lable">备勤警力</span>
              <span class="num">3</span>
            </div>
          </div>
        </div>
      </el-scrollbar>
    </div>
  </div>
</template>
 
<script setup>
 
</script>
 
<style lang="scss" scoped>
$bg-color: #182A54;
$border-color: #5695F5;
$title-color: #005DBA;
$text-color: #94E8BE;
 
.dialog-container {
  position: relative;
  background-color: $bg-color;
  border: 1px solid $border-color;
  border-radius: 5px;
  max-width: 210px;
 
  .dialog-content {
    width: 100%;
  }
 
  .scroll-content {
    width: 100%;
    padding: 14px 18px;
  }
 
  &:before {
    width: 0px;
    height: 0px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    border: 8px solid transparent;
    border-color: $bg-color transparent transparent transparent;
    content: '';
    z-index: 12;
    border-left-width: 6px;
    border-right-width: 6px;
  }
 
  &:after {
    width: 0px;
    height: 0px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    border: 10px solid transparent;
    border-color: $border-color transparent transparent transparent;
    content: '';
    z-index: 10;
    border-left-width: 8px;
    border-right-width: 8px;
  }
}
 
.dialog-title {
  font-family: PingFang SC;
  font-weight: 500;
  font-size: 14px;
  color: $title-color;
  line-height: 20px;
  margin-bottom: 13px;
}
 
.dialog-text {
  font-family: PingFang SC;
  font-weight: 400;
  font-size: 14px;
  color: $text-color;
  line-height: 20px;
  margin-bottom: 13px;
}
 
.dialog-img {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
 
  .img-item {
    width: 247px;
    height: 125px;
    margin-bottom: 13px;
 
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}
 
.info-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
 
  .info-item {
    color: #9DB8DF;
 
    .num {
      color: #E5BF33;
    }
  }
}
</style>