header/footer data structure rebuild
Showing
1 changed file
with
25 additions
and
13 deletions
@@ -68,31 +68,43 @@ | @@ -68,31 +68,43 @@ | ||
68 | 68 | ||
69 | ### 站点头部和尾部 | 69 | ### 站点头部和尾部 |
70 | 70 | ||
71 | + //header | ||
72 | + { | ||
73 | + header: { | ||
74 | + back: true/false, | ||
75 | + title: '', | ||
76 | + home: '' //对应页面有就传,没有就不传 | ||
77 | + } | ||
78 | + } | ||
79 | + | ||
80 | + //footer已登录 | ||
71 | { | 81 | { |
72 | - headerDownload: { | ||
73 | - img: '', | ||
74 | - url: '' | ||
75 | - }, | ||
76 | - homeHeader: { | ||
77 | - bgColor: '', | ||
78 | - searchUrl: '' | ||
79 | - }, | ||
80 | footer: { | 82 | footer: { |
81 | - //--已登录-- | ||
82 | - user: { | ||
83 | name: '', | 83 | name: '', |
84 | url: '', | 84 | url: '', |
85 | signoutUrl: '' | 85 | signoutUrl: '' |
86 | } | 86 | } |
87 | - //--未登录-- | ||
88 | - // loginUrl: '', | ||
89 | - // signupUrl: '' | 87 | + } |
88 | + | ||
89 | + //footer未登录 | ||
90 | + { | ||
91 | + footer: { | ||
92 | + loginUrl: '', | ||
93 | + signupUrl: '' | ||
90 | } | 94 | } |
91 | } | 95 | } |
92 | 96 | ||
93 | ## 首页 | 97 | ## 首页 |
94 | 98 | ||
95 | { | 99 | { |
100 | + headerDownload: { | ||
101 | + img: '', | ||
102 | + url: '' | ||
103 | + }, | ||
104 | + homeHeader: { | ||
105 | + bgColor: '', | ||
106 | + searchUrl: '' | ||
107 | + }, | ||
96 | content: [ | 108 | content: [ |
97 | //banner | 109 | //banner |
98 | { | 110 | { |
-
Please register or login to post a comment