quanyawei
2023-12-15 f74222e571d9164a59e01194f35ff1e34f10a423
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
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
    />
    <link rel="icon" href="<%= BASE_URL %>LOGO.ico" />
    <!-- <script src="https://webapi.amap.com/maps?v=1.4.15&key=be57d4add7dc10fb7f7924763a2179ae&plugin=AMap.MarkerClusterer"></script> -->
    <!-- <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" /> -->
    <script>
      window._AMapSecurityConfig = {
        securityJsCode: '20fcbbc1782d2853f433831e61fab769'
      }
    </script>
    <script src="https://webapi.amap.com/maps?v=1.4.15&key=c4e73f2c6972766d6a54dffd2f501cac&plugin=AMap.MarkerClusterer"></script>
    <script src="https://webapi.amap.com/loca?v=1.3.2&key=c4e73f2c6972766d6a54dffd2f501cac&plugin=AMap.MarkerClusterer"></script>
    <!--    <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />-->
    <!--    <script src="https://cdn.bootcss.com/jquery/3.5.0/jquery.js"></script>-->
    <script
      type="text/javascript"
      src="https://api.map.baidu.com/api?type=webgl&v=2.0&ak=U2SoSp52BoVW6bAEMsxQ7Zfe0tuB6VDp"
    ></script>
    <script src="https://api.map.baidu.com/api?v=3.0&ak=U2SoSp52BoVW6bAEMsxQ7Zfe0tuB6VDp"></script>
    <script src="https://mapv.baidu.com/build/mapv.min.js"></script>
    <script
      type="text/javascript"
      src="https://mapv.baidu.com/gl/examples/static/common.js"
    ></script>
    <!-- <script src="https://cdn.jsdelivr.net/npm/echarts/map/js/china.js?v=1598903772045"></script> -->
    <script src="https://code.bdstatic.com/npm/mapvgl@1.0.0-beta.97/dist/mapvgl.min.js"></script>
    <!-- <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script> -->
    <!-- <script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/require.js/2.3.6/require.min.js"></script> -->
 
    <title><%= webpackConfig.name %></title>
    <style>
      body {
        margin: 0px;
        padding: 0px;
        height: 100%;
      }
 
      html {
        overflow-y: hidden;
      }
    </style>
  </head>
 
  <body>
    <noscript>
      <strong> <%= webpackConfig.name %> 不支持无javaScript环境 </strong>
    </noscript>
    <div id="app"></div>
  </body>
  <script>
    var docEl = document.documentElement,
      //当设备的方向变化(设备横向持或纵向持)此事件被触发。绑定此事件时,
      //注意现在当浏览器不支持orientationChange事件的时候我们绑定了resize 事件。
      //总来的来就是监听当前窗口的变化,一旦有变化就需要重新设置根字体的值
      resizeEvt =
        'orientationchange' in window ? 'orientationchange' : 'resize',
      recalc = function () {
        //设置根字体大小1:50适用于375的设计稿,需要变更,就更改基础字体的数值
        docEl.style.fontSize = docEl.clientWidth / 100 + 'px'
      }
    window.addEventListener(resizeEvt, recalc, false)
    document.addEventListener('DOMContentLoaded', recalc, false)
  </script>
</html>