From 7aafc0b41f4b1629781c9dcb83977d7a512a31a0 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Mon, 29 Mar 2021 15:06:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=98=E7=BD=91=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/style.css | 7 +++++++ static/html/index_new.html | 40 +++++++++++++++++++++++++++++++++++--- 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 6e70582..bd1b087 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -8,6 +8,13 @@ a { a:hover { text-decoration: underline; } +pre{ + background:#f9f9f9; + color: #d73a49; + line-height: 21px; + border: 1px solid #e8e8e8; + padding: 5px; +} .header{ background-color: #fff; color: #fff; diff --git a/static/html/index_new.html b/static/html/index_new.html index 081fba3..725dc2f 100644 --- a/static/html/index_new.html +++ b/static/html/index_new.html @@ -10,11 +10,12 @@ - + @@ -57,6 +58,39 @@

3. 使用编译版的用户,在安装和使用时可以随时咨询开发者

+
+

安装使用

+

访客端js引入使用

+
+

1.引入js并且修改为自己的域名

+
+<!--对接客服代码,安装完成后更改成自己的域名或IP,下面js文件路径以及GOFLY_URL都要改-->
+<script src="https://gofly.sopans.com/static/js/gofly-front.js?v=1"></script>
+<script>
+    GOFLY.init({
+        GOFLY_URL:"https://gofly.sopans.com",
+        GOFLY_KEFU_ID: "kefu2",//对接的客服name
+    })
+</script>
+<!--//对接客服代码-->
+                
+

2.隐藏默认按钮使用自己的按钮

+
+<script>
+    GOFLY.init({
+        GOFLY_URL:"https://gofly.sopans.com",
+        GOFLY_KEFU_ID: "kefu2",//对接的客服name
+        GOFLY_WITHOUT_BTN:true,
+    })
+</script>
+<a  href="javascript:GOFLY.showPanel();">联系客服</a>
+                
+
+

服务端安装

+
+

参考readme.md

+
+

版本更新

v0.3.7 2021-03-25