From 450955d4cf8fc5fdd5b660a763e6249b71c3d0dc Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Tue, 29 Sep 2020 14:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E8=8F=9C=E5=8D=95iframe=E7=82=B9=E5=87=BB=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/view.go | 1 + static/html/header.html | 4 ++-- static/html/setting.html | 31 ++------------------------ static/html/setting_bottom.html | 6 +++-- static/html/setting_config.html | 1 - static/html/setting_deploy.html | 1 - static/html/setting_ipblack.html | 1 - static/html/setting_kefu_list.html | 1 - static/html/setting_left.html | 2 +- static/html/setting_mysql.html | 1 - static/html/setting_role_list.html | 1 - static/html/setting_statistics.html | 34 +++++++++++++++++++++++++++++ static/html/setting_welcome.html | 1 - tmpl/setting.go | 8 +++++++ 14 files changed, 52 insertions(+), 41 deletions(-) create mode 100644 static/html/setting_statistics.html diff --git a/router/view.go b/router/view.go index 76fe65b..0cc2773 100644 --- a/router/view.go +++ b/router/view.go @@ -15,6 +15,7 @@ func InitViewRouter(engine *gin.Engine) { engine.GET("/main", middleware.JwtPageMiddleware, tmpl.PageMain) engine.GET("/chat_main", middleware.JwtPageMiddleware, tmpl.PageChatMain) engine.GET("/setting", tmpl.PageSetting) + engine.GET("/setting_statistics", tmpl.PageSettingStatis) engine.GET("/setting_mysql", tmpl.PageSettingMysql) engine.GET("/setting_welcome", tmpl.PageSettingWelcome) engine.GET("/setting_deploy", tmpl.PageSettingDeploy) diff --git a/static/html/header.html b/static/html/header.html index aaa14fd..aff7bef 100644 --- a/static/html/header.html +++ b/static/html/header.html @@ -5,7 +5,7 @@ - GO-IMAP网页版邮箱imap工具 + GO-FLY客服管理系统 @@ -27,7 +27,7 @@ } .mainMain{ background: #fff; - margin-left: 10px; + /*margin-left: 10px;*/ margin-bottom: 60px; } .mainIframe{ diff --git a/static/html/setting.html b/static/html/setting.html index a750961..b3b73c1 100644 --- a/static/html/setting.html +++ b/static/html/setting.html @@ -4,38 +4,11 @@ {{template "setting_left" .}} - - -

数据总览

- - -
-

-

总访客数

-
-
- -
-

-

总消息数

-
-
- -
-

-

当前会话数

-
-
-
-
- +
- + {{template "setting_bottom" .}} diff --git a/static/html/setting_bottom.html b/static/html/setting_bottom.html index 08d8878..4e53195 100644 --- a/static/html/setting_bottom.html +++ b/static/html/setting_bottom.html @@ -7,6 +7,7 @@ el: '#app', delimiters:["<{","}>"], data: { + iframeUrl:"/setting_statistics", fullscreenLoading:false, openIndex:[1], account: { @@ -145,7 +146,8 @@ }, //跳转 openUrl(url){ - window.location.href=url; + //window.location.href=url; + this.iframeUrl=url; }, //展示提示 showNotice(){ @@ -186,7 +188,7 @@ _this.roleList=result; }); } - if(ACTION=="setting"){ + if(ACTION=="setting_statistics"){ this.sendAjax("/statistics","get",{},function(result) { _this.statistics = result; }); diff --git a/static/html/setting_config.html b/static/html/setting_config.html index 7ec523a..2377bd6 100644 --- a/static/html/setting_config.html +++ b/static/html/setting_config.html @@ -2,7 +2,6 @@