Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
lore-w
2015-12-30 18:59:08 +0800
Commit
36c0266cef6d3a9027a2fcabff5ce172f34345b1
1 parent
805dc656
商品列表页模板修改 code review by liuyue
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
111 additions
and
285 deletions
template/www.yohobuy.com/actions/product/index/list.phtml
template/www.yohobuy.com/actions/product/list/list.phtml
template/www.yohobuy.com/actions/product/list/search.phtml
template/www.yohobuy.com/actions/product/index/list.phtml
View file @
36c0266
{
{>
layout/header
}
}
<div
class=
"product-list-page yoho-page"
>
<div
class=
"product-list-page
product-page
yoho-page"
>
{
{#
list
}
}
{
{#
brandBanner
}
}
<div
class=
"brand-banner"
>
<div
class=
"banner-img"
style=
"height: {{bannerHeight}}px;background: url({{banner}})"
></div>
<div
class=
"opt-wrap"
>
<p
class=
"opt center-content"
>
<a
href=
"{{brandHome}}"
>
<i
class=
"iconfont"
>
617
;</i>
品牌首页
</a>
<a
href=
"{{brandIntro}}"
>
<i
class=
"iconfont"
>
618
;</i>
品牌介绍
</a>
{
{#
brandBanner
}
}
<div
class=
"brand-banner"
>
<div
class=
"banner-img"
style=
"height: {{bannerHeight}}px;background: url({{banner}})"
></div>
<div
class=
"opt-wrap"
>
<p
class=
"opt center-content"
>
<a
href=
"{{brandHome}}"
>
<i
class=
"iconfont"
>
617
;</i>
品牌首页
</a>
<a
href=
"{{brandIntro}}"
>
<i
class=
"iconfont"
>
618
;</i>
品牌介绍
</a>
<span
id=
"brand-favor"
class=
"brand-favor"
>
<i
class=
"iconfont{{#if coled}} coled{{/if}}"
>
616
;</i>
</span>
</p>
</div>
</div>
{
{/
brandBanner
}
}
<div
class=
"center-content clearfix"
>
{
{>
layout/path-nav
}
}
{
{#
brandAbout
}
}
<div
class=
"brand-about"
>
{
{{brandIntro
}
}}
</div>
{
{^
}
}
<div
class=
"list-left pull-left"
>
{
{#
allDiscount
}
}
<div
class=
"sort-container"
>
<ul
class=
"sort-child-list new-sale"
>
<li><a
href=
"{{href}}"
>全部折扣</a><span>
{
{updateNum
}
}</span></li>
{
{#each
list
}
}
<li><a
href=
"{{href}}"
>
{
{name
}
}</a><span>
{
{num
}
}</span></li>
{
{/each
}
}
</ul>
</div>
{
{/
allDiscount
}
}
</p>
</div>
</div>
{
{/
brandBanner
}
}
{
{#
newSales
}
}
<div
class=
"sort-container"
>
<h
2
>一周新品上架<span>
{
{updateNum
}
}</span></h
2
>
<ul
class=
"sort-child-list new-sale"
>
{
{#each
list
}
}
<li><a
href=
"{{href}}"
>
{
{name
}
}</a><span>
{
{num
}
}</span></li>
{
{/each
}
}
</ul>
</div>
{
{/
newSales
}
}
<div
class=
"center-content clearfix"
>
{
{>
layout/path-nav
}
}
{
{#
allSort
}
}
<div
class=
"sort-container"
>
<h
2
>全部品类<span>
{
{updateNum
}
}</span></h
2
>
<ul>
{
{#each
list
}
}
<li
class=
"product-list-nav"
>
<h
3
>
<span
class=
"icon-triangle"
></span>
{
{name
}
}<span>
{
{num
}
}</span>
</h
3
>
<ul
class=
"sort-child-list"
>
{
{#each
childList
}
}
<li>
<a
href=
"{{href}}"
>
{
{name
}
}</a>
<span>
{
{num
}
}</span>
</li>
{
{/each
}
}
</ul>
</li>
{
{/each
}
}
</ul>
</div>
{
{/
allSort
}
}
{
{#
brandAbout
}
}
<div
class=
"brand-about"
>
{
{{brandIntro
}
}}
</div>
{
{^
}
}
<div
class=
"list-left pull-left"
>
{
{>
product/left-content
}
}
</div>
<div
class=
"list-right pull-right"
>
{
{#
shopEntry
}
}
<div
class=
"shop-entry clearfix"
>
<a
class=
"pull-left"
href=
"{{home}}"
>
<img
class=
"logo"
src=
"{{logo}}"
>
</a>
{
{#
advNav
}
}
{
{#
advNavTitle
}
}
<h
2
class=
"nav-pic-title"
>
{
{.
}
}</h
2
>
{
{/advNavTitle
}
}
<ul
class=
"pic-nav"
>
{
{#each
list
}
}
<li><a
href=
"{{href}}"
><img
src=
"{{src}}"
alt=
""
/></a></li>
{
{/each
}
}
</ul>
{
{/advNav
}
}
<div
class=
"name pull-left"
>
<a
class=
"shop-name"
href=
"{{home}}"
>
{
{shopName
}
}</a>
<p
class=
"sorts"
>
{
{#each
sort
}
}
<a
href=
"{{href}}"
>
{
{name
}
}</a>
{
{#advPic
}
}
{
{#
advPicTitle
}
}
<h
2
class=
"nav-pic-title"
>
{
{.
}
}</h
2
>
{
{/
advPicTitle
}
}
<ul
class=
"pic-nav"
>
{
{#each
list
}
}
<li><a
href=
"{{href}}"
><img
src=
"{{src}}"
alt=
""
/></a></li>
{
{/each
}
}
</ul>
{
{/advPic
}
}
{
{#unless
@last
}
}
/
{
{/unless
}
}
{
{/each
}
}
</p>
</div>
<div
class=
"list-right pull-right"
>
{
{#
shopEntry
}
}
<div
class=
"shop-entry clearfix"
>
<a
class=
"pull-left"
href=
"{{home}}"
>
<img
class=
"logo"
src=
"{{logo}}"
>
</a>
<div
class=
"name pull-left"
>
<a
class=
"shop-name"
href=
"{{home}}"
>
{
{shopName
}
}</a>
<p
class=
"sorts"
>
{
{#each
sort
}
}
<a
href=
"{{href}}"
>
{
{name
}
}</a>
{
{#unless
@last
}
}
/
{
{/unless
}
}
{
{/each
}
}
</p>
</div>
<a
class=
"entry-btn pull-right"
href=
"{{home}}"
>
进入品牌店铺
<span
class=
"iconfont"
>
601
;</span>
</a>
</div>
{
{/
shopEntry
}
}
{
{#
filters
}
}
{
{>
product/filter-box
}
}
{
{/
filters
}
}
<a
class=
"entry-btn pull-right"
href=
"{{home}}"
>
进入品牌店铺
<span
class=
"iconfont"
>
601
;</span>
</a>
</div>
{
{/
shopEntry
}
}
{
{#
opts
}
}
{
{>
product/sort-pager
}
}
{
{/
opts
}
}
{
{>
product/standard-content
}
}
<div
class=
"goods-container clearfix"
>
{
{#each
goods
}
}
{
{>
product/good
}
}
{
{/each
}
}
<div
class=
"good-item-wrapper"
>
<div
class=
"good-info-main"
></div>
<div
class=
"good-select-color"
></div>
</div>
</div>
</div>
{
{/
brandAbout
}
}
{
{>
product/latest-walk
}
}
</div>
{
{/
brandAbout
}
}
</div>
{
{/
list
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/actions/product/list/list.phtml
View file @
36c0266
{
{>
layout/header
}
}
<div
class=
"product-list-page yoho-page"
>
<div
class=
"product-list-page
product-page
yoho-page"
>
{
{#
list
}
}
{
{#
brandBanner
}
}
<div
class=
"brand-banner"
>
<div
class=
"banner-img"
style=
"height: {{bannerHeight}}px;background: url({{banner}})"
></div>
<div
class=
"opt-wrap"
>
<p
class=
"opt center-content"
>
<a
href=
"{{brandHome}}"
>
<i
class=
"iconfont"
>
617
;</i>
品牌首页
</a>
<a
href=
"{{brandIntro}}"
>
<i
class=
"iconfont"
>
618
;</i>
品牌介绍
</a>
{
{#
brandBanner
}
}
<div
class=
"brand-banner"
>
<div
class=
"banner-img"
style=
"height: {{bannerHeight}}px;background: url({{banner}})"
></div>
<div
class=
"opt-wrap"
>
<p
class=
"opt center-content"
>
<a
href=
"{{brandHome}}"
>
<i
class=
"iconfont"
>
617
;</i>
品牌首页
</a>
<a
href=
"{{brandIntro}}"
>
<i
class=
"iconfont"
>
618
;</i>
品牌介绍
</a>
<span
id=
"brand-favor"
class=
"brand-favor"
>
<i
class=
"iconfont{{#if coled}} coled{{/if}}"
>
616
;</i>
</span>
</p>
</div>
</div>
{
{/
brandBanner
}
}
<div
class=
"center-content clearfix"
>
{
{>
layout/path-nav
}
}
{
{#
brandAbout
}
}
<div
class=
"brand-about"
>
{
{{brandIntro
}
}}
</div>
{
{^
}
}
<div
class=
"list-left pull-left"
>
{
{#
allDiscount
}
}
<div
class=
"sort-container"
>
<ul
class=
"sort-child-list new-sale"
>
<li><a
href=
"{{href}}"
>全部折扣</a><span>
{
{updateNum
}
}</span></li>
{
{#each
list
}
}
<li><a
href=
"{{href}}"
>
{
{name
}
}</a><span>
{
{num
}
}</span></li>
{
{/each
}
}
</ul>
</div>
{
{/
allDiscount
}
}
</p>
</div>
</div>
{
{/
brandBanner
}
}
{
{#
newSales
}
}
<div
class=
"sort-container"
>
<h
2
>一周新品上架<span>
{
{updateNum
}
}</span></h
2
>
<ul
class=
"sort-child-list new-sale"
>
{
{#each
list
}
}
<li><a
href=
"{{href}}"
>
{
{name
}
}</a><span>
{
{num
}
}</span></li>
{
{/each
}
}
</ul>
</div>
{
{/
newSales
}
}
<div
class=
"center-content clearfix"
>
{
{>
layout/path-nav
}
}
{
{#
allSort
}
}
<div
class=
"sort-container"
>
<h
2
>全部品类<span>
{
{updateNum
}
}</span></h
2
>
<ul>
{
{#each
list
}
}
<li
class=
"product-list-nav"
>
<h
3
>
<span
class=
"icon-triangle"
></span>
{
{name
}
}<span>
{
{num
}
}</span>
</h
3
>
<ul
class=
"sort-child-list"
>
{
{#each
childList
}
}
<li>
<a
href=
"{{href}}"
>
{
{name
}
}</a>
<span>
{
{num
}
}</span>
</li>
{
{/each
}
}
</ul>
</li>
{
{/each
}
}
</ul>
</div>
{
{/
allSort
}
}
{
{#
brandAbout
}
}
<div
class=
"brand-about"
>
{
{{brandIntro
}
}}
</div>
{
{^
}
}
<div
class=
"list-left pull-left"
>
{
{>
product/left-content
}
}
</div>
<div
class=
"list-right pull-right"
>
{
{#
shopEntry
}
}
<div
class=
"shop-entry clearfix"
>
<a
class=
"pull-left"
href=
"{{home}}"
>
<img
class=
"logo"
src=
"{{logo}}"
>
</a>
{
{#
advNav
}
}
{
{#
advNavTitle
}
}
<h
2
class=
"nav-pic-title"
>
{
{.
}
}</h
2
>
{
{/advNavTitle
}
}
<ul
class=
"pic-nav"
>
{
{#each
list
}
}
<li><a
href=
"{{href}}"
><img
src=
"{{src}}"
alt=
""
/></a></li>
{
{/each
}
}
</ul>
{
{/advNav
}
}
<div
class=
"name pull-left"
>
<a
class=
"shop-name"
href=
"{{home}}"
>
{
{shopName
}
}</a>
<p
class=
"sorts"
>
{
{#each
sort
}
}
<a
href=
"{{href}}"
>
{
{name
}
}</a>
{
{#advPic
}
}
{
{#
advPicTitle
}
}
<h
2
class=
"nav-pic-title"
>
{
{.
}
}</h
2
>
{
{/
advPicTitle
}
}
<ul
class=
"pic-nav"
>
{
{#each
list
}
}
<li><a
href=
"{{href}}"
><img
src=
"{{src}}"
alt=
""
/></a></li>
{
{/each
}
}
</ul>
{
{/advPic
}
}
{
{#unless
@last
}
}
/
{
{/unless
}
}
{
{/each
}
}
</p>
</div>
<div
class=
"list-right pull-right"
>
{
{#
shopEntry
}
}
<div
class=
"shop-entry clearfix"
>
<a
class=
"pull-left"
href=
"{{home}}"
>
<img
class=
"logo"
src=
"{{logo}}"
>
</a>
<div
class=
"name pull-left"
>
<a
class=
"shop-name"
href=
"{{home}}"
>
{
{shopName
}
}</a>
<p
class=
"sorts"
>
{
{#each
sort
}
}
<a
href=
"{{href}}"
>
{
{name
}
}</a>
{
{#unless
@last
}
}
/
{
{/unless
}
}
{
{/each
}
}
</p>
</div>
<a
class=
"entry-btn pull-right"
href=
"{{home}}"
>
进入品牌店铺
<span
class=
"iconfont"
>
601
;</span>
</a>
</div>
{
{/
shopEntry
}
}
{
{#
filters
}
}
{
{>
product/filter-box
}
}
{
{/
filters
}
}
<a
class=
"entry-btn pull-right"
href=
"{{home}}"
>
进入品牌店铺
<span
class=
"iconfont"
>
601
;</span>
</a>
</div>
{
{/
shopEntry
}
}
{
{#
opts
}
}
{
{>
product/sort-pager
}
}
{
{/
opts
}
}
{
{>
product/standard-content
}
}
<div
class=
"goods-container clearfix"
>
{
{#each
goods
}
}
{
{>
product/good
}
}
{
{/each
}
}
<div
class=
"good-item-wrapper"
>
<div
class=
"good-info-main"
></div>
<div
class=
"good-select-color"
></div>
</div>
</div>
</div>
{
{/
brandAbout
}
}
{
{>
product/latest-walk
}
}
</div>
{
{/
brandAbout
}
}
</div>
{
{/
list
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/actions/product/list/search.phtml
View file @
36c0266
{
{>
layout/header
}
}
<div
class=
"product-search-page yoho-page center-content"
>
<div
class=
"product-search-page
product-page
yoho-page center-content"
>
{
{#
search
}
}
{
{>
layout/path-nav
}
}
{
{#
filters
}
}
{
{>
product/filter-box
}
}
{
{/
filters
}
}
{
{>
product/standard-content
}
}
{
{#
opts
}
}
{
{>
product/sort-pager
}
}
{
{/
opts
}
}
<div
class=
"goods-container clearfix"
>
{
{#each
goods
}
}
{
{>
product/good
}
}
{
{/each
}
}
<div
class=
"good-item-wrapper"
>
<div
class=
"good-info-main"
></div>
<div
class=
"good-select-color"
></div>
</div>
</div>
{
{>
product/latest-walk
}
}
{
{/
search
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment