-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (36 loc) · 1.11 KB
/
Copy pathindex.html
File metadata and controls
41 lines (36 loc) · 1.11 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>云天科技工作室</title>
</head>
<body>
</body>
<script type='text/javascript'>
const IDPhotoURLSchema = "weixin://dl/business/?appid=wxb112a62be491bc02&env_version=release&path=pages/home/index&query=";
window.onload = function() {
var url = IDPhotoURLSchema;
var params = getQueryParams();
if (params.enterFrom) {
var query = "enterFrom=" + params.enterFrom;
url += encodeURIComponent(query);
}
window.location.href = url;
}
function getQueryParams() {
const query = window.location.search;
if (query.length == 0) {
return {};
}
let queryString = query.substring(1);
let queryArray = queryString.split("&");
let params = {};
for (let i = 0; i < queryArray.length; i++) {
let pair = queryArray[i].split("=");
params[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
}
return params;
}
</script>
</html>