|
@@ -0,0 +1,21 @@
|
|
|
+package front
|
|
|
+
|
|
|
+import "app.yhyue.com/moapp/jybase/go-xweb/xweb"
|
|
|
+
|
|
|
+type CommonPage struct {
|
|
|
+ *xweb.Action
|
|
|
+ jyCommonHead xweb.Mapper `xweb:"/front/commonHeader"` //剑鱼公共头部
|
|
|
+ jyCommonFooter xweb.Mapper `xweb:"/front/commonFooter"` //剑鱼公共底部
|
|
|
+}
|
|
|
+
|
|
|
+func init() {
|
|
|
+ xweb.AddAction(&CommonPage{})
|
|
|
+}
|
|
|
+
|
|
|
+func (p *CommonPage) JyCommonHead() error {
|
|
|
+ return p.Render("/common/pchead.html")
|
|
|
+}
|
|
|
+
|
|
|
+func (p *CommonPage) JyCommonFooter() error {
|
|
|
+ return p.Render("/common/pcbottom.html")
|
|
|
+}
|