Browse Source

wip:工作桌面外访问路由提交

wangkaiyue 1 year ago
parent
commit
05f74419a4
1 changed files with 15 additions and 0 deletions
  1. 15 0
      src/jfw/front/frontRouter.go

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

@@ -52,6 +52,10 @@ type CommonRouter struct {
 	bigpcIndex xweb.Mapper `xweb:"/swordfish/page_big_pc/"`
 	bigpcPage  xweb.Mapper `xweb:"/swordfish/page_big_pc/(.*)"`
 
+	//工作桌面外访问
+	bigpcIndexM xweb.Mapper `xweb:"/swordfish/page_big_pc_m/"`
+	bigpcPageM  xweb.Mapper `xweb:"/swordfish/page_big_pc_m/(.*)"`
+
 	//双十一活动留资
 	activityLeads xweb.Mapper `xweb:"/weixin/leads/(.*)"`
 
@@ -216,6 +220,17 @@ func (this *CommonRouter) BigpcPage(htmlPage string) error {
 	return this.doPcBigPage(htmlPage, types)
 }
 
+func (this *CommonRouter) BigpcIndexM() error {
+	return this.doPcBigPageM()
+}
+func (this *CommonRouter) BigpcPageM(htmlPage string) error {
+	return this.doPcBigPageM()
+}
+
+func (this *CommonRouter) doPcBigPageM() error {
+	return this.Render(fmt.Sprintf("/frontRouter/pc/page_big_pc/sess/index_m.html"))
+}
+
 var bigVipFreePageReg = regexp.MustCompile(`set_.*|free|unit_portrayal|analysis_(search|result)|pro_follow_detail|client_portrayal`)
 
 // 工作桌面需求 不需要判断用户权限