|
@@ -23,6 +23,10 @@ type CommonRouter struct {
|
|
|
//线上课程
|
|
|
xspcIndex xweb.Mapper `xweb:"/jyxspc/"`
|
|
|
xspcPage xweb.Mapper `xweb:"/jyxspc/(.*)"`
|
|
|
+
|
|
|
+ //商机管理
|
|
|
+ entpcIndex xweb.Mapper `xweb:"/entpc/"`
|
|
|
+ entpcPage xweb.Mapper `xweb:"/entpc/(.*)"`
|
|
|
}
|
|
|
|
|
|
func init() {
|
|
@@ -94,3 +98,19 @@ func (this *CommonRouter) XspcPage(htmlPage string) error {
|
|
|
}
|
|
|
return this.Render(fmt.Sprintf("/frontRouter/pc/xspc/sess/index.html"))
|
|
|
}
|
|
|
+
|
|
|
+//商机管理
|
|
|
+func (this *CommonRouter) EntpcIndex() error {
|
|
|
+ userid, _ := this.GetSession("userId").(string)
|
|
|
+ if userid == "" {
|
|
|
+ return this.Redirect("/notin/page")
|
|
|
+ }
|
|
|
+ return this.Render(fmt.Sprintf("/frontRouter/pc/entpc/sess/index.html"))
|
|
|
+}
|
|
|
+func (this *CommonRouter) EntpcPage(htmlPage string) error {
|
|
|
+ userid, _ := this.GetSession("userId").(string)
|
|
|
+ if userid == "" {
|
|
|
+ return this.Redirect("/notin/page")
|
|
|
+ }
|
|
|
+ return this.Render(fmt.Sprintf("/frontRouter/pc/entpc/sess/index.html"))
|
|
|
+}
|