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