Authored by xuqi

passport layout

1 -I am login  
  1 +{{> layout/header}}
  2 +<div class="login-page passport-page yoho-page clearfix">
  3 + {{# passport}}
  4 + {{> passport/cover}}
  5 + <div class="content">
  6 +
  7 + </div>
  8 + {{/ passport}}
  9 +</div>
  10 +{{> layout/footer}}
@@ -10,5 +10,14 @@ @@ -10,5 +10,14 @@
10 10
11 {{!-- 搜索 --}} 11 {{!-- 搜索 --}}
12 {{#if searchListPage}} 12 {{#if searchListPage}}
13 -<script>seajs.use('js/product/list');</script> 13 + <script>
  14 + seajs.use('js/product/list');
  15 + </script>
  16 +{{/if}}
  17 +
  18 +{{!-- 登录注册找回密码--}}
  19 +{{#if loginPage}}
  20 + <script>
  21 + seajs.use('js/passport/login');
  22 + </script>
14 {{/if}} 23 {{/if}}
  1 +<div class="passport-cover">
  2 + <div class="cover-content">
  3 + {{#if coverHref}}
  4 + <a href="{{coverHref}}" target="_bank">
  5 + <img class="cover-img" src="{{coverImg}}">
  6 + </a>
  7 + {{^}}
  8 + <img class="cover-img" src="{{coverImg}}">
  9 + {{/if}}
  10 + </div>
  11 +</div>
@@ -71,4 +71,4 @@ a:focus { @@ -71,4 +71,4 @@ a:focus {
71 width: 990px; 71 width: 990px;
72 } 72 }
73 } 73 }
74 -@import "home/index", "product/index";  
  74 +@import "home/index", "product/index", "passport/index";
  1 +@import "login";
  2 +
  3 +.passport-page {
  4 + width: 1150px;
  5 + margin-left: auto;
  6 + margin-right: auto;
  7 +}
  8 +
  9 +.passport-cover {
  10 + float: left;
  11 + margin: 107px 0;
  12 + width: 575px;
  13 +
  14 + .cover-content {
  15 + width: 100%;
  16 + height: 318px;
  17 + padding: 50px 0;
  18 + border-right: 1px solid #dfdfdf;
  19 + }
  20 +
  21 + .cover-img {
  22 + display: block;
  23 + width: 252px;
  24 + height: 190px;
  25 + margin: 0 auto;
  26 + margin-top: 50px;
  27 + }
  28 +}
@@ -9,6 +9,14 @@ class LoginController extends AbstractAction @@ -9,6 +9,14 @@ class LoginController extends AbstractAction
9 */ 9 */
10 public function indexAction() 10 public function indexAction()
11 { 11 {
12 - $this->_view->display('index'); 12 + $data = array(
  13 + 'loginPage' => true,
  14 + 'passport' => array(
  15 + 'coverHref' => '/passport',
  16 + 'coverImg' => 'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190',
  17 + 'countrys' => array()
  18 + )
  19 + );
  20 + $this->_view->display('index', $data);
13 } 21 }
14 } 22 }