-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (43 loc) · 1.86 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="114x114" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- 光达跨境医用CRM综合系统 -->
<meta name="description" content="光达在线产品营销CRM-I系统" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>光达在线产品营销CRM-I系统</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<script type="text/javascript" src="https://apis.map.qq.com/tools/geolocation/min?key=FM3BZ-YOOWI-ESYG5-5CUVG-MZR3S-S4FV4&referer=myapp"></script>
<script>
let LR_username = window.localStorage.getItem('phone')
// 禁止双击放大屏幕
let lastTouchEnd = 0 //更新手指弹起的时间
document.documentElement.addEventListener("touchstart", function (event) {
//多根手指同时按下屏幕,禁止默认行为
if (event.touches.length > 1) {
event.preventDefault();
}
});
document.documentElement.addEventListener("touchend", function (event) {
let now = (new Date()).getTime();
if (now - lastTouchEnd <= 300) {
//当两次手指弹起的时间小于300毫秒,认为双击屏幕行为
event.preventDefault();
}else{ // 否则重新手指弹起的时间
lastTouchEnd = now;
}
}, false);
//阻止双指放大页面
document.documentElement.addEventListener("gesturestart", function (event) {
event.preventDefault();
});
</script>
</body>
</html>