-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
30 lines (30 loc) · 1.34 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0"/>
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>企业微信</title>
<script type="text/javascript" src="./static/env.js"></script>
<script id="insertScript" type="text/javascript" src="./static/jquery.js"></script>
<script type="text/javascript">
const userAgentInfo = navigator.userAgent.toLowerCase()
if (/wxwork/i.test(userAgentInfo)) {
console.log('进入到了企业微信')
$('<script type="text\/javascript" src=".\/static\/jweixin-1.0.0.js"><\/script>').insertAfter($("#insertScript"))
} else {
console.log('进入到了普通微信')
$('<script type="text\/javascript" src=".\/static\/jweixin.js"><\/script>').insertAfter($("#insertScript"))
}
</script>
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
</head>
<body>
<div id="app-box"></div>
<!-- built files will be auto injected -->
</body>
</html>