diff --git a/server.go b/server.go index b107822..c4d0294 100644 --- a/server.go +++ b/server.go @@ -80,7 +80,7 @@ func view(w http.ResponseWriter, r *http.Request) { // //mailServer:=tools.GetMailServerFromCookie(r) //var wg sync.WaitGroup - var render = new(tools.ViewData) + var render = new(tmpl.ViewHtml) render.Fid = fid render.Id = uint32(id) //wg.Add(1) @@ -110,7 +110,7 @@ func login(w http.ResponseWriter, r *http.Request) { } //写信界面 func write(w http.ResponseWriter, r *http.Request) { - render:=new(tools.ViewHtml) + render:=new(tmpl.CommonHtml) tmpl.RenderWrite(w, render) } //验证接口 diff --git a/static/html/nav.html b/static/html/nav.html new file mode 100644 index 0000000..8d37479 --- /dev/null +++ b/static/html/nav.html @@ -0,0 +1,9 @@ + + + 收信 + + 写信 + 退出 + \ No newline at end of file diff --git a/static/html/view.html b/static/html/view.html index 8585e46..62fb161 100644 --- a/static/html/view.html +++ b/static/html/view.html @@ -1,71 +1,8 @@ - - - - - - - GO-IMAP网页版邮箱imap工具 - - - - - - - - +{{.Header}}