|
5 | 5 | <html>
|
6 | 6 | <head>
|
7 | 7 | <meta charset="UTF-8" />
|
| 8 | + <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport" /> |
8 | 9 | <title></title>
|
9 | 10 | </head>
|
10 | 11 |
|
11 | 12 | <body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
|
12 | 13 | <div id="main">
|
13 | 14 | <sm-web-map :map-options="mapOptions" @load="mapLoaded" @click="mapClicked"></sm-web-map>
|
14 |
| - <a-radio-group class="radio-group" v-model="type" default-value="china-riskLevel" size="large"> |
15 |
| - <a-radio-button value="china-riskLevel" data-i18n="resources.text_ncp_riskLevel"></a-radio-button> |
16 |
| - <a-radio-button |
17 |
| - value="china-incrementConfirmed" |
18 |
| - data-i18n="resources.text_ncp_incrementConfirmed" |
19 |
| - ></a-radio-button> |
20 |
| - <a-radio-button value="china-nowConfirmed" data-i18n="resources.text_ncp_nowConfirmed"></a-radio-button> |
21 |
| - <a-radio-button value="china-incidence" data-i18n="resources.text_ncp_incidence"></a-radio-button> |
22 |
| - </a-radio-group> |
23 |
| - <sm-indicator |
24 |
| - :title="title" |
25 |
| - unit="" |
26 |
| - mode="horizontal" |
27 |
| - :num="num" |
28 |
| - font-size="44px" |
29 |
| - font-weight="400" |
30 |
| - style="position: absolute; left: 10px;top: 60px;text-align: center;z-index: 1000;" |
31 |
| - > |
32 |
| - </sm-indicator> |
33 |
| - <sm-text |
34 |
| - :title="time" |
35 |
| - text-color="rgba(255, 255, 255, 0.6)" |
36 |
| - :font-style='{ fontSize: "18px", fontWeight: "400" ,display: "block"}' |
37 |
| - style="position: absolute; left: 10px;top: 110px;text-align: center;z-index: 1000;padding-left: 15px" |
38 |
| - > |
39 |
| - </sm-text> |
| 15 | + <div id="group"> |
| 16 | + <a-radio-group class="radio-group" v-model="type" default-value="china-riskLevel" size="large"> |
| 17 | + <a-radio-button value="china-riskLevel" data-i18n="resources.text_ncp_riskLevel"></a-radio-button> |
| 18 | + <a-radio-button |
| 19 | + value="china-incrementConfirmed" |
| 20 | + data-i18n="resources.text_ncp_incrementConfirmed" |
| 21 | + ></a-radio-button> |
| 22 | + <a-radio-button |
| 23 | + value="china-nowConfirmed" |
| 24 | + data-i18n="resources.text_ncp_nowConfirmed" |
| 25 | + ></a-radio-button> |
| 26 | + <a-radio-button value="china-incidence" data-i18n="resources.text_ncp_incidence"></a-radio-button> |
| 27 | + </a-radio-group> |
| 28 | + <br /> |
| 29 | + <sm-indicator :title="title" unit="" mode="horizontal" :num="num" font-size="44px" font-weight="400"> |
| 30 | + </sm-indicator> |
| 31 | + <sm-text |
| 32 | + :title="time" |
| 33 | + text-color="rgba(255, 255, 255, 0.6)" |
| 34 | + :font-style='{ fontSize: "18px", fontWeight: "400" ,display: "block"}' |
| 35 | + > |
| 36 | + </sm-text> |
| 37 | + </div> |
40 | 38 | <sm-image
|
41 | 39 | repeat="noRepeat"
|
42 | 40 | src="../img/online-qr.png"
|
|
56 | 54 | width: 100%;
|
57 | 55 | height: 100%;
|
58 | 56 | }
|
59 |
| - .radio-group { |
| 57 | + #group { |
60 | 58 | position: absolute;
|
61 | 59 | left: 10px;
|
62 | 60 | top: 10px;
|
63 |
| - text-align: center; |
64 | 61 | z-index: 1000;
|
65 | 62 | }
|
66 | 63 | .ant-radio-button-wrapper {
|
67 | 64 | color: #fff;
|
68 | 65 | background: #333333;
|
| 66 | + padding: 0px 10px; |
69 | 67 | }
|
70 | 68 | .mapboxgl-popup-content {
|
71 | 69 | border: solid 1px #464646;
|
|
84 | 82 | .ant-radio-button-wrapper-checked:first-child {
|
85 | 83 | color: #1890ff;
|
86 | 84 | }
|
| 85 | + .sm-component-indicator { |
| 86 | + padding-left: 0px; |
| 87 | + } |
| 88 | + .sm-component-text { |
| 89 | + margin-top: -16px; |
| 90 | + } |
87 | 91 | .sm-component-count-to__numItem {
|
88 | 92 | letter-spacing: 0 !important;
|
89 | 93 | text-indent: 1px !important;
|
90 | 94 | }
|
| 95 | + @media screen and (max-width: 768px) { |
| 96 | + .sm-component-count-to__numItem { |
| 97 | + font-size: 32px !important; |
| 98 | + } |
| 99 | + .sm-component-indicator__title { |
| 100 | + font-size: 20px !important; |
| 101 | + } |
| 102 | + .sm-component-indicator__num { |
| 103 | + font-size: 32px !important; |
| 104 | + } |
| 105 | + .sm-component-text { |
| 106 | + font-size: 16px !important; |
| 107 | + } |
| 108 | + .sm-component-text { |
| 109 | + margin-top: -10px; |
| 110 | + } |
| 111 | + #group { |
| 112 | + margin-top: 28px; |
| 113 | + } |
| 114 | + .ant-radio-group-large .ant-radio-button-wrapper { |
| 115 | + height: 32px; |
| 116 | + line-height: 30px; |
| 117 | + font-size: 14px; |
| 118 | + padding: 0 10px; |
| 119 | + } |
| 120 | + } |
91 | 121 | </style>
|
92 | 122 | <script>
|
93 | 123 | var styles = {
|
|
249 | 279 | tiles: [
|
250 | 280 | 'https://maptiles.supermapol.com/iserver/services/map-China/rest/maps/China_Dark_Nolable'
|
251 | 281 | ],
|
| 282 | + transparent: false, |
252 | 283 | rasterSource: 'iserver',
|
253 | 284 | tileSize: 256
|
254 | 285 | }
|
|
268 | 299 | [137.0563536922412, 54.36513803178008]
|
269 | 300 | ],
|
270 | 301 | center: [105.9002304535943, 31.9592716277851],
|
271 |
| - minZoom: 2.5, |
| 302 | + minZoom: 1.5, |
272 | 303 | maxZoom: 6,
|
273 | 304 | zoom: 3.55
|
274 | 305 | }
|
|
298 | 329 | background: 'rgba(0, 0, 0,0)',
|
299 | 330 | colorGroup: ['rgb(225, 2, 0)']
|
300 | 331 | });
|
301 |
| - $.get('https://ncpviz.oss-cn-beijing.aliyuncs.com/ncpviz/ui.json?time=' + new Date().getTime(), function(response) { |
302 |
| - document.title = response[utils.getLanguage()].title; |
303 |
| - }); |
| 332 | + $.get( |
| 333 | + 'https://ncpviz.oss-cn-beijing.aliyuncs.com/ncpviz/ui.json?time=' + new Date().getTime(), |
| 334 | + function(response) { |
| 335 | + document.title = response[utils.getLanguage()].title; |
| 336 | + } |
| 337 | + ); |
304 | 338 | },
|
305 | 339 | methods: {
|
306 | 340 | mapLoaded(e) {
|
307 | 341 | this.map = e.map;
|
308 |
| - window.map1 = e.map; |
309 | 342 | $.get(
|
310 | 343 | 'https://ncpviz.oss-cn-beijing.aliyuncs.com/ncpviz/ncp.json?time=' + new Date().getTime(),
|
311 | 344 | function(response) {
|
|
0 commit comments