Browse Source

同步代码

wyx
mk 3 months ago
parent
commit
6655e01fac
  1. 65
      public/index.html

65
public/index.html

@ -1,18 +1,17 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<meta charset="utf-8"> <head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta charset="utf-8">
<meta name="renderer" content="webkit"> <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"> <meta name="renderer" content="webkit">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><%= webpackConfig.name %></title> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]--> <title>
<script> <%= webpackConfig.name %>
window.SITE_CONFIG = {} </title>
window.SITE_CONFIG['apiURL'] = '/mz-api'; // api请求地址 <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
</script> <style>
<style>
html, html,
body, body,
#app { #app {
@ -20,6 +19,7 @@
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
.chromeframe { .chromeframe {
margin: 0.2em 0; margin: 0.2em 0;
background: #ccc; background: #ccc;
@ -96,6 +96,7 @@
-ms-transform: rotate(0deg); -ms-transform: rotate(0deg);
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
-webkit-transform: rotate(360deg); -webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg); -ms-transform: rotate(360deg);
@ -109,6 +110,7 @@
-ms-transform: rotate(0deg); -ms-transform: rotate(0deg);
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
-webkit-transform: rotate(360deg); -webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg); -ms-transform: rotate(360deg);
@ -198,15 +200,28 @@
opacity: 0.5; opacity: 0.5;
} }
</style> </style>
</head> </head>
<body> <script>
<div id="app"> window.SITE_CONFIG = {}
<div id="loader-wrapper"> window.SITE_CONFIG['apiURL'] = '/mz-api'; // api请求地址
<div id="loader"></div> function toLoadJs(src) {
<div class="loader-section section-left"></div> var js = document.createElement('script');
<div class="loader-section section-right"></div> js.src = src;
<div class="load_title">正在加载系统资源,请耐心等待</div> js.type = 'text/javascript'
</div> document.getElementsByTagName('head')[0].appendChild(js);
</div> }
</body> toLoadJs('https://webapi.amap.com/maps?v=2.0&key=${process.env.VUE_APP_AMAP_KEY}&plugin=AMap.Geocoder,AMap.PlaceSearch&callback=initAMap')
</html> </script>
<body>
<div id="app">
<div id="loader-wrapper">
<div id="loader"></div>
<div class="loader-section section-left"></div>
<div class="loader-section section-right"></div>
<div class="load_title">正在加载系统资源,请耐心等待</div>
</div>
</div>
</body>
</html>
Loading…
Cancel
Save