Authored by xuqi

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

@@ -345,7 +345,6 @@ class AbstractAction extends Controller_Abstract @@ -345,7 +345,6 @@ class AbstractAction extends Controller_Abstract
345 } 345 }
346 // 未登录 346 // 未登录
347 else { 347 else {
348 - $footer = array();  
349 $footer['loginUrl'] = '/signin.html'; // 登录链接 348 $footer['loginUrl'] = '/signin.html'; // 登录链接
350 $footer['signupUrl'] = '/reg.html'; // 注册链接 349 $footer['signupUrl'] = '/reg.html'; // 注册链接
351 } 350 }
@@ -365,18 +364,6 @@ class AbstractAction extends Controller_Abstract @@ -365,18 +364,6 @@ class AbstractAction extends Controller_Abstract
365 } 364 }
366 365
367 /** 366 /**
368 - * 返回顶部软件下载有关数据  
369 - * @return array 下载有关数据  
370 - */  
371 - protected function getHeaderDownload()  
372 - {  
373 - return array(  
374 - 'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',  
375 - 'url' => 'http://www.baidu.com'  
376 - );  
377 - }  
378 -  
379 - /**  
380 * 设置首页以及频道页顶部信息 367 * 设置首页以及频道页顶部信息
381 * 368 *
382 * @return void 369 * @return void
@@ -388,18 +375,4 @@ class AbstractAction extends Controller_Abstract @@ -388,18 +375,4 @@ class AbstractAction extends Controller_Abstract
388 $this->_view->assign('homeHeader', $header); 375 $this->_view->assign('homeHeader', $header);
389 } 376 }
390 377
391 - /**  
392 - * 返回顶部软件下载有关数据  
393 - * @return array 下载有关数据  
394 - */  
395 - protected function setHeaderDownload()  
396 - {  
397 - $download = array(  
398 - 'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',  
399 - 'url' => 'http://www.baidu.com'  
400 - );  
401 -  
402 - $this->_view->assign('headerDownload', $download);  
403 - }  
404 -  
405 } 378 }
@@ -14,7 +14,7 @@ swiper = new Swiper('.swiper-container', { @@ -14,7 +14,7 @@ swiper = new Swiper('.swiper-container', {
14 lazyLoading: true, 14 lazyLoading: true,
15 loop: true, 15 loop: true,
16 autoplay: 3000, 16 autoplay: 3000,
17 - pagination: '.swiper-pagination' 17 + pagination: '.swiper-pagination .pagination-inner'
18 }); 18 });
19 19
20 lazyLoad($('img.lazy')); 20 lazyLoad($('img.lazy'));
@@ -61,7 +61,7 @@ @@ -61,7 +61,7 @@
61 background: #eeeeee; 61 background: #eeeeee;
62 62
63 color: #999999; 63 color: #999999;
64 - font-weight: bold; 64 + // font-weight: bold;
65 position: relative; 65 position: relative;
66 h2 { 66 h2 {
67 // width: 100%; 67 // width: 100%;
@@ -87,10 +87,22 @@ @@ -87,10 +87,22 @@
87 border-bottom: 1px solid #f3f3f3; 87 border-bottom: 1px solid #f3f3f3;
88 border-top: 1px solid #f9f9f9; 88 border-top: 1px solid #f9f9f9;
89 i { 89 i {
90 - position: relative;  
91 - top: 1px;  
92 - color: #ff0000;  
93 - padding-left: 32rem / $pxConvertRem; 90 + display: inline-block;
  91 + margin-left: 24rem / $pxConvertRem;
  92 + width: 40rem / $pxConvertRem;
  93 + height: 40rem / $pxConvertRem;
  94 + text-align: center;
  95 + vertical-align: middle;
  96 + font-size: 28rem / $pxConvertRem;
  97 + line-height: 40rem / $pxConvertRem;
  98 + color: #fff;
  99 + border-radius: 50%;
  100 + }
  101 + .icon-hot {
  102 + background: #ff0000;
  103 + }
  104 + .icon-new {
  105 + background: #86c048;
94 } 106 }
95 } 107 }
96 } 108 }
@@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
6 right: 0; 6 right: 0;
7 bottom: 20rem / $pxConvertRem; 7 bottom: 20rem / $pxConvertRem;
8 text-align: center; 8 text-align: center;
  9 + z-index: 1;
9 .pagination-inner { 10 .pagination-inner {
10 display: inline-block; 11 display: inline-block;
11 span { 12 span {
@@ -4,15 +4,15 @@ @@ -4,15 +4,15 @@
4 color: #fff; 4 color: #fff;
5 width: 100%; 5 width: 100%;
6 overflow: hidden; 6 overflow: hidden;
7 - height: 44px;  
8 - line-height: 44px; 7 + height: 88rem / $pxConvertRem;
  8 + line-height: 88rem / $pxConvertRem;
9 9
10 .nav-back { 10 .nav-back {
11 position: absolute; 11 position: absolute;
12 - left: 17px;  
13 - top: 14px;  
14 - width: 9px;  
15 - height: 16px; 12 + left: 34rem / $pxConvertRem;
  13 + top: 28rem / $pxConvertRem;
  14 + width: 18rem / $pxConvertRem;
  15 + height: 32rem / $pxConvertRem;
16 background: image-url('layout/back.png') no-repeat; 16 background: image-url('layout/back.png') no-repeat;
17 background-size: 100% 100%; 17 background-size: 100% 100%;
18 outline: none; 18 outline: none;
@@ -20,8 +20,8 @@ @@ -20,8 +20,8 @@
20 20
21 .nav-home { 21 .nav-home {
22 position: absolute; 22 position: absolute;
23 - top: 14px;  
24 - right: 17px; 23 + top: 28rem / $pxConvertRem;
  24 + right: 34rem / $pxConvertRem;
25 width: 20px; 25 width: 20px;
26 height: 20px; 26 height: 20px;
27 background: image-url('layout/home.png') no-repeat; 27 background: image-url('layout/home.png') no-repeat;
@@ -31,10 +31,10 @@ @@ -31,10 +31,10 @@
31 31
32 .nav-title { 32 .nav-title {
33 position: absolute; 33 position: absolute;
34 - margin-left: 26px;  
35 - margin-right: 32px; 34 + margin-left: 52rem / $pxConvertRem;
  35 + margin-right: 64rem / $pxConvertRem;
36 height: 100%; 36 height: 100%;
37 - font-size: 18px; 37 + font-size: 36rem / $pxConvertRem;
38 color: #fff; 38 color: #fff;
39 font-weight: bold; 39 font-weight: bold;
40 top: 0; 40 top: 0;
@@ -39,13 +39,11 @@ @@ -39,13 +39,11 @@
39 {{# list}} 39 {{# list}}
40 <p> 40 <p>
41 <a href="{{url}}">{{name}} 41 <a href="{{url}}">{{name}}
42 - <i class="icon-hot">  
43 - </i>  
44 {{# isHot}} 42 {{# isHot}}
45 - <i class="icon-hot"></i> 43 + <i class="icon-hot">H</i>
46 {{/ isHot}} 44 {{/ isHot}}
47 {{# isNew}} 45 {{# isNew}}
48 - <i class="icon-new"></i> 46 + <i class="icon-new">N</i>
49 {{/ isNew}} 47 {{/ isNew}}
50 </a> 48 </a>
51 </p> 49 </p>
@@ -26,6 +26,7 @@ class BoysController extends AbstractAction @@ -26,6 +26,7 @@ class BoysController extends AbstractAction
26 // 渲染模板并输出 26 // 渲染模板并输出
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'boysHomePage' => true, 28 'boysHomePage' => true,
  29 + 'showDownloadApp'=>true,
29 'maybeLike' => true, 30 'maybeLike' => true,
30 'content' => Index\HomeModel::getBoysFloor() 31 'content' => Index\HomeModel::getBoysFloor()
31 )); 32 ));
@@ -26,6 +26,7 @@ class GirlsController extends AbstractAction @@ -26,6 +26,7 @@ class GirlsController extends AbstractAction
26 // 渲染模板并输出 26 // 渲染模板并输出
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'grilsHomePage' => true, 28 'grilsHomePage' => true,
  29 + 'showDownloadApp'=>true,
29 'maybeLike' => true, 30 'maybeLike' => true,
30 'content' => Index\HomeModel::getGirlsFloor() 31 'content' => Index\HomeModel::getGirlsFloor()
31 )); 32 ));
@@ -18,7 +18,9 @@ class IndexController extends AbstractAction @@ -18,7 +18,9 @@ class IndexController extends AbstractAction
18 18
19 // 渲染模板 19 // 渲染模板
20 $this->_view->display('index', array( 20 $this->_view->display('index', array(
21 - 'background' => Index\HomeModel::getBgImage() 21 + 'background' => Index\HomeModel::getBgImage(),
  22 + 'channelPage' => true,
  23 + 'showDownloadApp'=>true
22 )); 24 ));
23 } 25 }
24 26
@@ -26,6 +26,7 @@ class KidsController extends AbstractAction @@ -26,6 +26,7 @@ class KidsController extends AbstractAction
26 // 渲染模板并输出 26 // 渲染模板并输出
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'kidsHomePage' => true, 28 'kidsHomePage' => true,
  29 + 'showDownloadApp'=>true,
29 'maybeLike' => true, 30 'maybeLike' => true,
30 'content' => Index\HomeModel::getKidsFloor() 31 'content' => Index\HomeModel::getKidsFloor()
31 )); 32 ));
@@ -26,6 +26,7 @@ class LifestyleController extends AbstractAction @@ -26,6 +26,7 @@ class LifestyleController extends AbstractAction
26 // 渲染模板并输出 26 // 渲染模板并输出
27 $this->_view->display('index', array( 27 $this->_view->display('index', array(
28 'lifestyleHomePage' => true, 28 'lifestyleHomePage' => true,
  29 + 'showDownloadApp'=>true,
29 'maybeLike' => true, 30 'maybeLike' => true,
30 'content' => Index\HomeModel::getLifestyleFloor() 31 'content' => Index\HomeModel::getLifestyleFloor()
31 )); 32 ));