34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<link rel="shortcut icon" type="image/x-icon" href="static/favicon.ico">
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<title>
|
|
<%= htmlWebpackPlugin.options.title %>
|
|
</title>
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
|
|
})
|
|
</script>
|
|
<link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
|
|
</head>
|
|
<body>
|
|
<noscript>
|
|
<strong>本站点必须要开启JavaScript才能运行</strong>
|
|
</noscript>
|
|
<div id="app"></div>
|
|
</body>
|
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
|
|
<!-- uni 的 SDK -->
|
|
<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
|
|
<script>
|
|
document.addEventListener('UniAppJSBridgeReady', function() {
|
|
uni.webView.getEnv(function(res) {
|
|
console.log('当前环境:' + JSON.stringify(res));
|
|
});
|
|
});
|
|
</script>
|
|
</html> |