-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview-order.html
More file actions
30 lines (30 loc) · 1007 Bytes
/
view-order.html
File metadata and controls
30 lines (30 loc) · 1007 Bytes
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 lang="zh-Hant">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>穩植牙體技術所</title>
<link rel="stylesheet" href="./style.css">
<script charset="utf-8" src="https://static.line-scdn.net/liff/edge/2/sdk.js"></script>
</head>
<body>
<span class="loader"></span>
</body>
<script>
let userId;
liff.init({
liffId: '2004505537-Gq659eMR',
withLoginOnExternalBrowser: true,
}).then(() => {
const urlParams = new URLSearchParams(window.location.search);
const fieldID = urlParams.get('fieldID');
const recordId = urlParams.get('recordId');
liff.getProfile().then(profile => {
window.location.href =
'https://web.miniextensions.com/xpNiD6sDd6lg96oHNq4N' +
'?login_LINE%20User%20ID=' + profile.userId +
'&fieldId='+fieldID+'&recordId='+recordId;
});
});
</script>
</html>