69 lines
2.8 KiB
HTML
69 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0">-->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover,user-scalable=no">
|
|
<meta name="format-detection" content="telephone=yes"/>
|
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
<style>
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<noscript>
|
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
</noscript>
|
|
<!-- 开启顶部安全区适配 -->
|
|
<van-nav-bar safe-area-inset-top />
|
|
<div id="app"></div>
|
|
<!-- built files will be auto injected -->
|
|
<!-- 开启底部安全区适配 -->
|
|
<van-number-keyboard safe-area-inset-bottom />
|
|
<script type="text/javascript">
|
|
window._AMapSecurityConfig = {
|
|
serviceHost: 'https://api.sinoassist.com/_AMapService',
|
|
}
|
|
</script>
|
|
<script src="https://webapi.amap.com/maps?v=1.4.15&key=2560bbf04daef66c810c5e6a97e8c508&plugin=AMap.Polyline"></script>
|
|
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>-->
|
|
<script>
|
|
// VConsole 默认会挂载到 `window.VConsole` 上
|
|
// let vConsole = new window.VConsole();
|
|
(function (doc, win) {
|
|
// console.log("==window.location.pathname===",window.location.pathname)
|
|
let docEl = doc.documentElement
|
|
let resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
|
|
recalc = function () {
|
|
var clientWidth = docEl.clientWidth;
|
|
if (!clientWidth) return;
|
|
if (clientWidth < 400) {
|
|
clientWidth = 400;
|
|
}
|
|
docEl.style.fontSize = 18 * (clientWidth / 650) + 'px';
|
|
};
|
|
if (!doc.addEventListener) return;
|
|
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
if (isMobile) {// 是移动端不变
|
|
// console.log("是移动端不变")
|
|
}else{
|
|
if(window.location.pathname=='/h5/supplier/dispatch/kpiIndex'){
|
|
// console.log("执行了执行了")
|
|
win.addEventListener(resizeEvt, recalc, false);
|
|
doc.addEventListener('DOMContentLoaded', recalc, false);
|
|
}
|
|
/*else{
|
|
console.log("走着了这种饿 ")
|
|
}*/
|
|
}
|
|
})(document, window);
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|