Showing
6 changed files
with
69 additions
and
4 deletions
@@ -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}} |
web-static/sass/passport/_index.scss
0 → 100644
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 | } |
-
Please register or login to post a comment