From 3d84c239d8a04580217b7facffbac006ea643fc5 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Fri, 19 Mar 2021 13:35:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/html/chat_web.css | 5 ---- static/html/chat_web.js | 54 ---------------------------------------- static/html/index.html | 20 --------------- tmpl/setting.go | 9 ------- 4 files changed, 88 deletions(-) delete mode 100644 static/html/chat_web.css delete mode 100644 static/html/chat_web.js diff --git a/static/html/chat_web.css b/static/html/chat_web.css deleted file mode 100644 index 901f6d5..0000000 --- a/static/html/chat_web.css +++ /dev/null @@ -1,5 +0,0 @@ -.chatBtn{ - position: fixed; - right: 10px; - bottom: 10px; -} diff --git a/static/html/chat_web.js b/static/html/chat_web.js deleted file mode 100644 index 96f30fa..0000000 --- a/static/html/chat_web.js +++ /dev/null @@ -1,54 +0,0 @@ -var loadJs=function(url,callback){ - var script = document.createElement('script'), fn = callback || function(){}; - script.type = 'text/javascript'; - if(script.readyState){ - script.onreadystatechange = function(){ - if( script.readyState == 'loaded' || script.readyState == 'complete' ){ - script.onreadystatechange = null; - fn(); - } - }; - }else{ - script.onload = function(){ - fn(); - }; - } - script.src = url; - document.getElementsByTagName('head')[0].appendChild(script); -}; -loadJs("https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js",function(){ - loadJs("https://cdn.bootcdn.net/ajax/libs/layer/3.1.1/layer.min.js" ,function () { - $(function () { - var goflyKefuId=""; - if(typeof GOFLY_KEFU_ID!="undefined"){ - var goflyKefuId=GOFLY_KEFU_ID; - } - - var div =document.createElement('div'); - div.id ='goflyKefu'; - div.className +='goflyKefu'; - document.body.appendChild(div); - var w =document.getElementById('goflyKefu'); - w.innerHTML='
在线咨询
'; - - $("#goflyKefu").click(function () { - $("#goflyKefu").hide(); - layer.open({ - type: 2, - title: '在线咨询', - shadeClose: true, - shade: false, - maxmin: true, - area: ['660px', '600px'], - content: ['http://gofly.sopans.com/chat_page?kefu_id='+goflyKefuId,'no'], - end: function(){ - $("#goflyKefu").show(); - } - }); - }); - //END - }) - }); -}); - - diff --git a/static/html/index.html b/static/html/index.html index 2d677f1..e299dd4 100644 --- a/static/html/index.html +++ b/static/html/index.html @@ -1,4 +1,3 @@ - @@ -8,28 +7,9 @@ {{.Title}} - {{.CssJs}} - - {{.Content}} - - - - - - - - \ No newline at end of file diff --git a/tmpl/setting.go b/tmpl/setting.go index 0585e56..bd7fddd 100644 --- a/tmpl/setting.go +++ b/tmpl/setting.go @@ -45,15 +45,6 @@ func PageSettingDeploy(c *gin.Context) { }) } -//前台js部署 -func PageWebJs(c *gin.Context) { - c.HTML(http.StatusOK, "chat_web.js", nil) -} - -//前台css部署 -func PageWebCss(c *gin.Context) { - c.HTML(http.StatusOK, "chat_web.css", nil) -} func PageKefuList(c *gin.Context) { c.HTML(http.StatusOK, "setting_kefu_list.html", gin.H{ "tab_index": "3-2",