|
|
@ -2,8 +2,6 @@ package tmpl
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"github.com/taoshihan1991/imaptool/tools"
|
|
|
|
|
|
|
|
"html/template"
|
|
|
|
|
|
|
|
"net/http"
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -14,10 +12,9 @@ func PageLogin(c *gin.Context) {
|
|
|
|
|
|
|
|
|
|
|
|
//咨询界面
|
|
|
|
//咨询界面
|
|
|
|
func PageChat(c *gin.Context) {
|
|
|
|
func PageChat(c *gin.Context) {
|
|
|
|
c.HTML(http.StatusOK, "chat_page.html", nil)
|
|
|
|
kefuId := c.Query("kefu_id")
|
|
|
|
}
|
|
|
|
c.HTML(http.StatusOK, "chat_page.html", gin.H{
|
|
|
|
func RenderLogin(w http.ResponseWriter, render interface{}) {
|
|
|
|
"KEFU_ID":kefuId,
|
|
|
|
html := tools.FileGetContent("html/login.html")
|
|
|
|
})
|
|
|
|
t, _ := template.New("login").Parse(html)
|
|
|
|
|
|
|
|
t.Execute(w, render)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|