Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
373a425dc43d09c5d5ce7f793898350139da2912
1 parent
b83d7ebc
passport layout
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
4 deletions
template/www.yohobuy.com/actions/passport/login/index.phtml
template/www.yohobuy.com/partials/layout/use.phtml
template/www.yohobuy.com/partials/passport/cover.phtml
web-static/sass/index.scss
web-static/sass/passport/_index.scss
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Login.php
template/www.yohobuy.com/actions/passport/login/index.phtml
View file @
373a425
I am login
\ No newline at end of file
{
{>
layout/header
}
}
<div
class=
"login-page passport-page yoho-page clearfix"
>
{
{#
passport
}
}
{
{>
passport/cover
}
}
<div
class=
"content"
>
</div>
{
{/
passport
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/partials/layout/use.phtml
View file @
373a425
...
...
@@ -10,5 +10,14 @@
{{!-- 搜索 --}}
{{#if searchListPage}}
<script>seajs.use('js/product/list');</script>
<script>
seajs.use('js/product/list');
</script>
{{/if}}
{{!-- 登录注册找回密码--}}
{{#if loginPage}}
<script>
seajs.use('js/passport/login');
</script>
{{/if}}
\ No newline at end of file
...
...
template/www.yohobuy.com/partials/passport/cover.phtml
0 → 100644
View file @
373a425
<div class="passport-cover">
<div class="cover-content">
{{#if coverHref}}
<a href="{{coverHref}}" target="_bank">
<img class="cover-img" src="{{coverImg}}">
</a>
{{^}}
<img class="cover-img" src="{{coverImg}}">
{{/if}}
</div>
</div>
\ No newline at end of file
...
...
web-static/sass/index.scss
View file @
373a425
...
...
@@ -71,4 +71,4 @@ a:focus {
width
:
990px
;
}
}
@import
"home/index"
,
"product/index"
;
\ No newline at end of file
@import
"home/index"
,
"product/index"
,
"passport/index"
;
\ No newline at end of file
...
...
web-static/sass/passport/_index.scss
0 → 100644
View file @
373a425
@import
"login"
;
.passport-page
{
width
:
1150px
;
margin-left
:
auto
;
margin-right
:
auto
;
}
.passport-cover
{
float
:
left
;
margin
:
107px
0
;
width
:
575px
;
.cover-content
{
width
:
100%
;
height
:
318px
;
padding
:
50px
0
;
border-right
:
1px
solid
#dfdfdf
;
}
.cover-img
{
display
:
block
;
width
:
252px
;
height
:
190px
;
margin
:
0
auto
;
margin-top
:
50px
;
}
}
\ No newline at end of file
...
...
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Login.php
View file @
373a425
...
...
@@ -9,6 +9,14 @@ class LoginController extends AbstractAction
*/
public
function
indexAction
()
{
$this
->
_view
->
display
(
'index'
);
$data
=
array
(
'loginPage'
=>
true
,
'passport'
=>
array
(
'coverHref'
=>
'/passport'
,
'coverImg'
=>
'http://img12.static.yhbimg.com/yhb-img01/2015/12/01/07/020a0b6e7ff908d0c2bc4045b4fef42b9f.png?imageView/2/w/252/h/190'
,
'countrys'
=>
array
()
)
);
$this
->
_view
->
display
(
'index'
,
$data
);
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment