From 45edd52e8da38fdda7f668b8112829323d94f7e1 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Fri, 24 Jul 2020 11:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A6=96=E9=A1=B5=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/index.go | 2 +- main.go | 1 + static/html/{intro.html => index.html} | 53 ++++++++++++++++++++++---- tmpl/common.go | 4 ++ 4 files changed, 52 insertions(+), 8 deletions(-) rename static/html/{intro.html => index.html} (67%) diff --git a/controller/index.go b/controller/index.go index 406314b..5733603 100644 --- a/controller/index.go +++ b/controller/index.go @@ -6,7 +6,7 @@ import ( "net/http" ) func Index(c *gin.Context) { - c.Redirect(302,"/main") + c.Redirect(302,"/index") } //首页跳转 func ActionIndex(w http.ResponseWriter, r *http.Request) { diff --git a/main.go b/main.go index b88e970..ba8f55a 100644 --- a/main.go +++ b/main.go @@ -30,6 +30,7 @@ func main() { engine.Static("/static", "./static") //首页 engine.GET("/", controller.Index) + engine.GET("/index", tmpl.PageIndex) //登陆界面 engine.GET("/login", tmpl.PageLogin) //咨询界面 diff --git a/static/html/intro.html b/static/html/index.html similarity index 67% rename from static/html/intro.html rename to static/html/index.html index ffa0658..e77ac26 100644 --- a/static/html/intro.html +++ b/static/html/index.html @@ -6,9 +6,6 @@ GO-FLY - 极简强大的Golang在线客服系统 - - - @@ -92,9 +109,31 @@
-
-
-