Showing
5 changed files
with
42 additions
and
2 deletions
@@ -399,10 +399,8 @@ class AbstractAction extends Controller_Abstract | @@ -399,10 +399,8 @@ class AbstractAction extends Controller_Abstract | ||
399 | $header['lifeStyle'] = true; | 399 | $header['lifeStyle'] = true; |
400 | break; | 400 | break; |
401 | } | 401 | } |
402 | - | ||
403 | $this->_view->assign('pageHeader', $header); | 402 | $this->_view->assign('pageHeader', $header); |
404 | } | 403 | } |
405 | - | ||
406 | /** | 404 | /** |
407 | * 设置网站导航底部信息 | 405 | * 设置网站导航底部信息 |
408 | * | 406 | * |
@@ -78,4 +78,31 @@ | @@ -78,4 +78,31 @@ | ||
78 | color: #b0b0b0; | 78 | color: #b0b0b0; |
79 | padding-right: pxToRem(32px); | 79 | padding-right: pxToRem(32px); |
80 | } | 80 | } |
81 | +} | ||
82 | +.systemUpdate{ | ||
83 | + width: 100%; | ||
84 | + height: 90rem / $pxConvertRem; | ||
85 | + overflow: hidden; | ||
86 | + line-height: 90rem / $pxConvertRem; | ||
87 | + display: none; | ||
88 | + @include background-image(linear-gradient(#323232, #414141)); | ||
89 | + .systemHeader{ | ||
90 | + width: 85%; | ||
91 | + height: 100%; | ||
92 | + overflow: hidden; | ||
93 | + font-size: 60em / $pxConvertRem; | ||
94 | + color:#fff; | ||
95 | + float: left; | ||
96 | + text-align: center; | ||
97 | + } | ||
98 | + span{ | ||
99 | + width: 14%; | ||
100 | + height: 100%; | ||
101 | + overflow: hidden; | ||
102 | + float: left; | ||
103 | + text-align: center; | ||
104 | + font-size: 80em / $pxConvertRem; | ||
105 | + font-weight: bold; | ||
106 | + color: #fff; | ||
107 | + } | ||
81 | } | 108 | } |
@@ -43,4 +43,10 @@ | @@ -43,4 +43,10 @@ | ||
43 | <link rel="apple-touch-startup-image" sizes="320x460" href="http://static.yohobuy.com/m/v1/img/startup/startup.png" media="screen and (max-device-width: 320)"> | 43 | <link rel="apple-touch-startup-image" sizes="320x460" href="http://static.yohobuy.com/m/v1/img/startup/startup.png" media="screen and (max-device-width: 320)"> |
44 | </head> | 44 | </head> |
45 | <body {{#if isPassportPage}}class=passport-body{{/if}}> | 45 | <body {{#if isPassportPage}}class=passport-body{{/if}}> |
46 | +{{#if systemUpdate}} | ||
47 | + <div class="systemUpdate"> | ||
48 | + <a href="systemUpdate" class="systemHeader">YOHO!BUY关于系统升级的公告</a> | ||
49 | + <span>X</span> | ||
50 | + </div> | ||
51 | +{{/if}} | ||
46 | {{> layout/page_header}} | 52 | {{> layout/page_header}} |
@@ -33,5 +33,14 @@ class IndexController extends AbstractAction | @@ -33,5 +33,14 @@ class IndexController extends AbstractAction | ||
33 | 'pageFooter' => true, | 33 | 'pageFooter' => true, |
34 | )); | 34 | )); |
35 | } | 35 | } |
36 | + /** | ||
37 | + * 设置升级公告路由 | ||
38 | + * | ||
39 | + */ | ||
40 | + | ||
41 | + public function systemUpdate() | ||
42 | + { | ||
43 | + $this->_view->display('systemUpdate',''); | ||
44 | + } | ||
36 | 45 | ||
37 | } | 46 | } |
-
Please register or login to post a comment