51 lines
1.8 KiB
HTML
51 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<script>
|
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
|
CSS.supports('top: constant(a)'))
|
|
document.write(
|
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
|
</script>
|
|
|
|
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" /> -->
|
|
<link rel="icon" href="/favicon.ico" />
|
|
<script src="https://ucmp-static.sf-express.com/assets/sdks/microservice-1.0.4.min.js"></script>
|
|
<script>
|
|
const sf = new SFUIP.SfMicroservice('prod')
|
|
window.sf = sf
|
|
</script>
|
|
<script>
|
|
// // 获取当前路径名
|
|
// const currentPath = window.location.pathname;
|
|
// var currentDomain = window.location.origin;
|
|
// // 定义跳转逻辑
|
|
// function checkAndRedirect() {
|
|
// const screenWidth =document.documentElement.clientWidth;
|
|
// if (screenWidth >= 900 && !(currentPath.indexOf('/h5/index.html') ==-1)) {
|
|
// window.location.href =currentDomain+ '/';
|
|
// } else if (screenWidth < 900 && (currentPath.indexOf('/h5/index.html') ==-1)) {
|
|
// window.location.href =currentDomain+ '/h5/index.html';
|
|
// }
|
|
// }
|
|
|
|
// // // 初始检查
|
|
// checkAndRedirect();
|
|
|
|
// // 监听屏幕宽度变化
|
|
// window.addEventListener('resize', () => {
|
|
// checkAndRedirect();
|
|
// });
|
|
</script>
|
|
<title>金刚迷你仓</title>
|
|
<!--preload-links-->
|
|
<!--app-context-->
|
|
</head>
|
|
<body>
|
|
<div id="app"><!--app-html--></div>
|
|
<script type="module" src="/main.js"></script>
|
|
</body>
|
|
</html>
|