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
郭成尧
2016-06-29 11:28:23 +0800
Commit
db0cb7afdd19d569abb0f775fc880f2b50d08e49
1 parent
c95fc831
'页面调整'
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
70 deletions
template/www.yohobuy.com/actions/home/index/index.phtml
web-static/img/home/recommend.png
web-static/sass/home/_default.css
web-static/sass/home/_index.css
yohobuy/www.yohobuy.com/application/modules/Home/controllers/Index.php
template/www.yohobuy.com/actions/home/index/index.phtml
View file @
db0cb7a
{
{>
layout/header
}
}
<div
class=
"default-me-page me-page yoho-page clearfix"
>
{
{#
me
}
}
{
{>
home/path
}
}
{
{>
home/path
}
}
{
{>
home/navigation
}
}
{
{>
home/navigation
}
}
<div
class=
"me-main"
>
{
{#
content
}
}
{
{#if
messages
}
}
<p
class=
"message-tip"
>
消息提示:
{
{#
messages
}
}
<a
href=
"{{href}}"
>
{
{name
}
}</a>
<b>(
{
{count
}
})</b>
{
{/
messages
}
}
<div
class=
"me-main"
>
{
{#
content
}
}
{
{#if
messages
}
}
<p
class=
"message-tip"
>
消息提示:
{
{#
messages
}
}
<a
href=
"{{href}}"
>
{
{name
}
}</a>
<b>(
{
{count
}
})</b>
{
{/
messages
}
}
<span
id=
"close-message"
class=
"close iconfont"
>
602
;</span>
</p>
{
{/if
}
}
<span
id=
"close-message"
class=
"close iconfont"
>
602
;</span>
</p>
{
{/if
}
}
{
{#
latestOrders
}
}
<div
class=
"latest-orders block"
>
<h
2
class=
"title"
>
<a
class=
"more-orders more"
href=
"{{more}}"
>
更多订单
</a>
</h
2
>
{
{>
home/order-block
}
}
</div>
{
{/
latestOrders
}
}
{
{#
latestOrders
}
}
<div
class=
"latest-orders block"
>
<h
2
class=
"title"
>
<a
class=
"more-orders more"
href=
"{{more}}"
>
更多订单
</a>
</h
2
>
{
{>
home/order-block
}
}
</div>
{
{/
latestOrders
}
}
{
{#
favBrand
}
}
<div
class=
"brands block"
>
<h
2
class=
"title"
>
<a
class=
"more-orders more"
href=
"{{more}}"
>
更多品牌
</a>
</h
2
>
<ul
class=
"clearfix"
>
{
{#
brands
}
}
<li>
<a
href=
"{{href}}"
>
<img
class=
"brand-logo"
src=
"{{logo}}"
>
<span
class=
"brand-name"
>
{
{name
}
}</span>
</a>
</li>
{
{/
brands
}
}
</ul>
</div>
{
{/
favBrand
}
}
{
{#
favBrand
}
}
<div
class=
"brands block"
>
<h
2
class=
"title"
>
<a
class=
"more-orders more"
href=
"{{more}}"
>
更多品牌
</a>
</h
2
>
<ul
class=
"clearfix"
>
{
{#
brands
}
}
<li>
<a
href=
"{{href}}"
>
<img
class=
"brand-logo"
src=
"{{logo}}"
>
<span
class=
"brand-name"
>
{
{name
}
}</span>
</a>
</li>
{
{/
brands
}
}
</ul>
</div>
{
{/
favBrand
}
}
{
{#if
newArrival
}
}
<div
class=
"new-arrival block"
>
<h
2
class=
"title"
>
<p
class=
"na-pager-wrap"
>
{
{#if
newArrival
}
}
<div
class=
"new-arrival block"
>
<h
2
class=
"title"
>
<p
class=
"na-pager-wrap"
>
<span
class=
"na-pager pre no-visible"
>
<i
class=
"iconfont"
>
622
;</i>
</span>
<span
class=
"na-pager next"
>
<i
class=
"iconfont"
>
621
;</i>
</span>
</p>
</h
2
>
<ul
class=
"clearfix"
>
{
{#
newArrival
}
}
<li>
<a
href=
"{{href}}"
>
<img
class=
"thumb"
src=
"{{thumb}}"
>
<p
class=
"name"
>
{
{name
}
}</p>
<span
class=
"price"
>¥
{
{price
}
}</span>
</a>
</li>
{
{/
newArrival
}
}
</ul>
</div>
{
{/if
}
}
</p>
</h
2
>
<ul
class=
"clearfix"
>
{
{#
newArrival
}
}
<li>
<a
href=
"{{href}}"
>
<img
class=
"thumb"
src=
"{{thumb}}"
>
<p
class=
"name"
>
{
{name
}
}</p>
<span
class=
"price"
>¥
{
{price
}
}</span>
</a>
</li>
{
{/
newArrival
}
}
</ul>
</div>
{
{/if
}
}
{
{{banner
}
}}
{
{/
content
}
}
{
{>
home/help-us
}
}
</div>
{
{/
content
}
}
</div>
<!--recommend-for-you-->
{
{#if
recommend
}
}
<div
class=
"recommend block"
>
<h
2
class=
"title"
>
<p
class=
"na-pager-wrap"
>
<span
class=
"rc-pager pre no-visible"
>
<i
class=
"iconfont"
>
622
;</i>
</span>
<span
class=
"rc-pager next"
>
<i
class=
"iconfont"
>
621
;</i>
</span>
</p>
</h
2
>
<ul
class=
"clearfix"
>
{
{#
recommend
}
}
<li>
<a
href=
"{{href}}"
>
<img
class=
"thumb"
src=
"{{thumb}}"
>
<p
class=
"name"
>
{
{name
}
}</p>
<span
class=
"price"
>¥
{
{price
}
}</span>
</a>
</li>
{
{/
recommend
}
}
</ul>
</div>
{
{/if
}
}
<!--recommend-for-you-->
<div
class=
"ho-btm"
>
{
{{banner
}
}}
{
{>
home/help-us
}
}
</div>
{
{/
me
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
web-static/img/home/recommend.png
0 → 100644
View file @
db0cb7a
3.15 KB
web-static/sass/home/_default.css
View file @
db0cb7a
...
...
@@ -81,7 +81,7 @@
}
}
.new-arrival
{
.new-arrival
,
.recommend
{
overflow
:
hidden
;
.na-pager-wrap
{
...
...
@@ -144,6 +144,15 @@
}
}
.recommend
{
margin-bottom
:
10px
;
}
.ho-btm
{
float
:
right
;
width
:
800px
;
}
.banner
{
display
:
block
;
width
:
800px
;
...
...
@@ -161,4 +170,8 @@
.new-arrival
.title
{
background-image
:
resolve
(/
home
/
new-arrival
.
png
);
}
.recommend
.title
{
background-image
:
resolve
(/
home
/
recommend
.
png
);
}
}
\ No newline at end of file
...
...
web-static/sass/home/_index.css
View file @
db0cb7a
...
...
@@ -139,6 +139,7 @@
.me-main
{
float
:
left
;
width
:
800px
;
min-height
:
945px
;
}
.me-pager
{
...
...
yohobuy/www.yohobuy.com/application/modules/Home/controllers/Index.php
View file @
db0cb7a
...
...
@@ -31,7 +31,7 @@ class IndexController extends WebAction
'name'
=>
'个人中心'
),
);
$leftNav
=
UserModel
::
getCenterLeftNav
(
''
,
$uid
);
$leftNav
=
UserModel
::
getCenterLeftNav
(
''
,
$uid
);
$data
=
IndexModel
::
homeData
();
$udid
=
$uid
.
$this
->
getUdid
();
//取消订单原因列表
...
...
@@ -54,10 +54,11 @@ class IndexController extends WebAction
'more'
=>
'/brands'
,
'brands'
=>
$data
[
'brand'
]
),
'newArrival'
=>
$data
[
'new'
],
'banner'
=>
IndexModel
::
getFooterBanner
()
'newArrival'
=>
$data
[
'new'
]
)
),
'recommend'
=>
$data
[
'new'
],
//待处理
'banner'
=>
IndexModel
::
getFooterBanner
(),
'helpUsUrl'
=>
''
);
$this
->
_view
->
display
(
'index'
,
array
(
'meIndexPage'
=>
true
,
'me'
=>
$data
));
...
...
Please
register
or
login
to post a comment