yangfeng
2023-12-21 90020572d7922536f94df74bcee1ccc3393dd097
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<template>
  <div class="chongqing-layout">
    <div class="top">
      <div class="top-left">
        <slot name="topBlock1"></slot>
      </div>
      <div class="top-middle">
        <div class="chongqing-title">全景数据展示</div>
      </div>
      <div class="top-right">
        <slot name="topBlock2"></slot>
      </div>
    </div>
    <div class="bottom">
      <div class="bottom-left">
        <div class="left-top-Block">
          <slot name="leftBlock1"></slot>
        </div>
        <div class="left-bottom-Block">
          <slot name="leftBlock2"></slot>
        </div>
      </div>
      <div class="bottom-middle">
        <slot name="middleBlock1"></slot>
      </div>
      <div class="bottom-right">
        <div class="right-top-Block">
          <slot name="rightBlock1"></slot>
        </div>
        <div class="right-bottom-Block">
          <slot name="rightBlock2"></slot>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script></script>
 
<style scoped lang="scss">
/** 上 */
// 上边固定高
$topBlockHeight: 60px;
// 上左区域宽
$topLeftWidth: 24%;
// 上中区域宽
$topMiddleWidth: 29%;
// 上右区域宽
$topRightWidth: 47%;
// 上 左右上边距
$topLeftMarginTop: 15px;
// 上 左右高度
$topLeftHeight: calc(100% - $topLeftMarginTop);
// 左右边距
$leftRightMargin: 40px;
// 左右内边距
$leftRightPadding: 30px;
// 下边距
$bottomMargin: 40px;
// 上下内边距
$topBottomPadding: 40px;
 
/** 下 */
// 下边固定高度
$bottomBlockHeight: calc(100vh - $topBlockHeight - $bottomMargin);
// 下左侧区域宽
$bottomLeftWidth: 29%;
// 中间区域宽
$bottomMiddleWidth: 42%;
// 右侧区域宽
$bottomRightWidth: 29%;
// 公共边距
$commonMargin: 40px;
// 下 左上高度
$leftTopBlockHeight: 30%;
// 下 左下高度
$leftBottomBlockHeight: calc(70% - $commonMargin);
// 下 中高度
$leftMiddleBlockHeight: calc(100% - $commonMargin);
// 下 右上高度
$rightTopBlockHeight: 48%;
// 下 右下高度
$rightBottomBlockHeight: calc(52% - $commonMargin);
 
$borderColor: #194871;
$borderWidth: 2px;
 
.chongqing-layout {
  background-image: url("/chongqingPublicSecurity/chongqing_bg.png");
  background-position-x: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  width: 100vw;
  &.debug {
    & > div {
      border: 1px solid red;
      & > div {
        border: 1px solid red;
      }
    }
  }
}
 
.top {
  height: $topBlockHeight;
  margin: 0 $leftRightMargin;
  display: flex;
  align-items: center;
  background: rgba(3, 10, 14, 0.7);
  .top-left {
    width: $topLeftWidth;
    height: $topLeftHeight;
    margin-top: $topLeftMarginTop;
    padding-left: $leftRightPadding;
    border-top: $borderWidth solid $borderColor;
    border-right: $borderWidth solid $borderColor;
  }
  .top-middle {
    width: $topMiddleWidth;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: $borderWidth solid $borderColor;
    .chongqing-title {
      text-align: center;
      font-size: 36px;
      color: #e49d19;
      font-weight: bold;
      font-family: "Arial Negreta", "Arial Normal", "Arial";
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      background-image: linear-gradient(to top, #4ca0ee, #b5e7f3 70%);
    }
  }
 
  .top-right {
    width: $topRightWidth;
    height: $topLeftHeight;
    margin-top: $topLeftMarginTop;
    border-top: $borderWidth solid $borderColor;
    border-left: $borderWidth solid $borderColor;
    padding-right: $leftRightPadding;
  }
}
.bottom {
  height: $bottomBlockHeight;
  margin: 0 $leftRightMargin;
  padding: $topBottomPadding $leftRightPadding;
  display: flex;
  .bottom-left {
    width: $bottomLeftWidth;
  }
  .bottom-middle {
    width: $bottomMiddleWidth;
    height: $leftMiddleBlockHeight;
    margin-right: $commonMargin;
  }
  .bottom-right {
    width: $bottomRightWidth;
  }
}
 
.left-top-Block {
  height: $leftTopBlockHeight;
}
.left-bottom-Block {
  height: $leftBottomBlockHeight;
}
 
.right-top-Block {
  height: $rightTopBlockHeight;
}
.right-bottom-Block {
  height: $rightBottomBlockHeight;
}
</style>