Browse Source

提交pc大会员路由

wangkaiyue 4 years ago
parent
commit
8db7607c2e
1 changed files with 20 additions and 0 deletions
  1. 20 0
      src/jfw/front/frontRouter.go

+ 20 - 0
src/jfw/front/frontRouter.go

@@ -33,6 +33,10 @@ type CommonRouter struct {
 	//商机管理
 	entpcIndex xweb.Mapper `xweb:"/entpc/"`
 	entpcPage  xweb.Mapper `xweb:"/entpc/(.*)"`
+
+	//pc大会员
+	bigpcIndex xweb.Mapper `xweb:"/swordfish/page_big_pc/"`
+	bigpcPage  xweb.Mapper `xweb:"/swordfish/page_big_pc/(.*)"`
 }
 
 func init() {
@@ -135,6 +139,22 @@ func (this *CommonRouter) EntpcPage(htmlPage string) error {
 	return this.Render(fmt.Sprintf("/frontRouter/pc/entpc/sess/index.html"))
 }
 
+//大会员
+func (this *CommonRouter) BigpcIndex() error {
+	userid, _ := this.GetSession("userId").(string)
+	if userid == "" {
+		return this.Redirect("/notin/page")
+	}
+	return this.Render(fmt.Sprintf("/frontRouter/pc/page_big_pc/sess/index.html"))
+}
+func (this *CommonRouter) BigpcPage(htmlPage string) error {
+	userid, _ := this.GetSession("userId").(string)
+	if userid == "" {
+		return this.Redirect("/notin/page")
+	}
+	return this.Render(fmt.Sprintf("/frontRouter/pc/page_big_pc/sess/index.html"))
+}
+
 //卡卷
 func (this *CommonRouter) CouponIndex() error {
 	userid, _ := this.GetSession("userId").(string)