修改客服
This commit is contained in:
parent
637599fea2
commit
51aa9c31c8
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
|
|
@ -29,15 +28,30 @@
|
|||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p id="connectionStatus">正在连接客服,右下角出现按钮后即可聊天...</p>
|
||||
<p id="connectionStatus2">如果未出现按钮,请等待一分钟或者重新进入.</p>
|
||||
<div class="loading" id="loadingIcon"></div>
|
||||
|
||||
<script>
|
||||
function updateStatus() {
|
||||
(function(d,t) {
|
||||
var BASE_URL="https://test.yingmaox.cc:8041";
|
||||
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src=BASE_URL+"/packs/js/sdk.js";
|
||||
g.defer = true;
|
||||
g.async = true;
|
||||
s.parentNode.insertBefore(g,s);
|
||||
g.onload=function(){
|
||||
window.chatwootSDK.run({
|
||||
websiteToken: 'hrRz6CyYCqM8KZEQ1W88bS6b',
|
||||
baseUrl: BASE_URL
|
||||
})
|
||||
}
|
||||
})(document,"script");
|
||||
</script>
|
||||
<script>
|
||||
function updateStatus() {
|
||||
var statusElement = document.getElementById("connectionStatus");
|
||||
|
||||
var loadingIcon = document.getElementById("loadingIcon");
|
||||
|
|
@ -46,15 +60,12 @@
|
|||
|
||||
loadingIcon.style.display = "none";
|
||||
clearInterval(loadingAnimation);
|
||||
}
|
||||
}
|
||||
|
||||
// 模拟连接的过程,在此之后调用 updateStatus 方法
|
||||
// var loadingAnimation = setInterval(updateStatus, 3000); // 假设连接耗时为3秒
|
||||
|
||||
</script>
|
||||
// 模拟连接的过程,在此之后调用 updateStatus 方法
|
||||
// var loadingAnimation = setInterval(updateStatus, 3000); // 假设连接耗时为3秒
|
||||
</script>
|
||||
</body>
|
||||
|
||||
<script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="c1e87f10-9628-488b-9fe2-61160c301f6e";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
|
||||
|
||||
</html>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue