Showing
3 changed files
with
22 additions
and
1 deletions
@@ -63,6 +63,11 @@ | @@ -63,6 +63,11 @@ | ||
63 | //header | 63 | //header |
64 | { | 64 | { |
65 | pageHeader: { | 65 | pageHeader: { |
66 | + //页面主题标识 | ||
67 | + boys: true, | ||
68 | + girls: true, | ||
69 | + kids: true, | ||
70 | + lifeStyle: true, | ||
66 | //对应页面有就传,没有就不传 | 71 | //对应页面有就传,没有就不传 |
67 | navBack: true, | 72 | navBack: true, |
68 | navTitle: '', | 73 | navTitle: '', |
@@ -7,6 +7,22 @@ | @@ -7,6 +7,22 @@ | ||
7 | height: 88rem / $pxConvertRem; | 7 | height: 88rem / $pxConvertRem; |
8 | line-height: 88rem / $pxConvertRem; | 8 | line-height: 88rem / $pxConvertRem; |
9 | 9 | ||
10 | + &.boys { | ||
11 | + @include background-image(linear-gradient(#323232, #414141)); | ||
12 | + } | ||
13 | + | ||
14 | + &.girls { | ||
15 | + background: #ff88ae; | ||
16 | + } | ||
17 | + | ||
18 | + &.kids { | ||
19 | + background: #7ad9f9; | ||
20 | + } | ||
21 | + | ||
22 | + &.life-style { | ||
23 | + background: #4f4138; | ||
24 | + } | ||
25 | + | ||
10 | .nav-back { | 26 | .nav-back { |
11 | position: absolute; | 27 | position: absolute; |
12 | left: 34rem / $pxConvertRem; | 28 | left: 34rem / $pxConvertRem; |
1 | {{#pageHeader}} | 1 | {{#pageHeader}} |
2 | -<header class="yoho-header"> | 2 | +<header class="yoho-header{{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}"> |
3 | {{#if navBack}} | 3 | {{#if navBack}} |
4 | <a href="javascript:history.go(-1);" class="nav-back"></a> | 4 | <a href="javascript:history.go(-1);" class="nav-back"></a> |
5 | {{/if}} | 5 | {{/if}} |
-
Please register or login to post a comment