29 lines
750 B
HTML
29 lines
750 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>在线客服系统</title>
|
|
</head>
|
|
<body>
|
|
<h2>正在登录...</h2>
|
|
|
|
<script>
|
|
var TOKEN='{{.TOKEN}}';
|
|
|
|
if(navigator.cookieEnabled&&typeof window.localStorage !== 'undefined'){
|
|
var h5Token=JSON.stringify({type: "object",data:{
|
|
token:TOKEN
|
|
}})
|
|
localStorage.setItem("app", h5Token);
|
|
|
|
var h5Domain=JSON.stringify({type: "object",data:{
|
|
domain:document.location.protocol+"//"+document.location.host
|
|
}})
|
|
localStorage.setItem("domain", h5Domain);
|
|
window.location.href="/h5/index.html";
|
|
}else{
|
|
alert("不支持cookie和localStorge");
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |