Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
xuqi
2016-01-08 16:25:45 +0800
Commit
75401405085aaa00f613efa6909e5242a93f85de
1 parent
70445de1
shop entry.Review by:@xuqi
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
101 additions
and
101 deletions
docs/web-data-structure.md
template/www.yohobuy.com/actions/product/list/list.phtml
template/www.yohobuy.com/actions/product/list/search.phtml
template/www.yohobuy.com/partials/product/left-content.phtml
docs/web-data-structure.md
View file @
7540140
...
...
@@ -621,6 +621,20 @@
//路径导航
pathNav: [...],
//品牌入口
shopEntry: {
home: '',
logo: '',
shopName: '',
sort: [
{
href: '',
name: '上衣'
},
...
]
},
..//标准页面内容,见上
}
}
...
...
@@ -641,20 +655,6 @@
brandAbout: '', //品牌介绍页传HTML文本,非品牌介绍页则不传
leftContent: [], //...
//品牌入口
shopEntry: {
home: '',
logo: '',
shopName: '',
sort: [
{
href: '',
name: '上衣'
},
...
]
},
//分类介绍
sortIntro: {
name: '',
...
...
template/www.yohobuy.com/actions/product/list/list.phtml
View file @
7540140
{
{>
layout/header
}
}
<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>
<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"
>
{
{>
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>
<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
}
}
{
{#
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>
<a
class=
"entry-btn pull-right"
href=
"{{home}}"
>
进入品牌店铺
<span
class=
"iconfont"
>
601
;</span>
</a>
</div>
{
{/
shopEntry
}
}
{
{/
brandBanner
}
}
<div
class=
"center-content clearfix"
>
{
{>
layout/path-nav
}
}
{
{>
product/standard-content
}
}
{
{#
brandAbout
}
}
<div
class=
"brand-about"
>
{
{{brandIntro
}
}}
</div>
{
{^
}
}
<div
class=
"list-left pull-left"
>
{
{>
product/left-content
}
}
</div>
<div
class=
"list-right pull-right"
>
{
{>
product/standard-content
}
}
{
{>
product/latest-walk
}
}
{
{>
product/latest-walk
}
}
</div>
{
{/
brandAbout
}
}
</div>
{
{/
brandAbout
}
}
</div>
{
{/
list
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/actions/product/list/search.phtml
View file @
7540140
{
{>
layout/header
}
}
<div
class=
"product-search-page product-page yoho-page center-content"
>
{
{#
search
}
}
{
{>
layout/path-nav
}
}
{
{>
layout/path-nav
}
}
{
{>
product/standard-content
}
}
{
{#
shopEntry
}
}
<div
class=
"shop-entry clearfix"
>
<a
class=
"pull-left"
href=
"{{home}}"
>
<img
class=
"logo"
src=
"{{logo}}"
>
</a>
{
{>
product/latest-walk
}
}
<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
}
}
{
{>
product/standard-content
}
}
{
{>
product/latest-walk
}
}
{
{/
search
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/www.yohobuy.com/partials/product/left-content.phtml
View file @
7540140
...
...
@@ -38,31 +38,31 @@
{
{!--
全部品类--
}
}
{
{#
allSort
}
}
<div
class=
"sort-container"
>
<h
2
>
全部品类
<span>
{
{updateNum
}
}</span>
</h
2
>
<ul>
{
{#each
list
}
}
<li
class=
"product-list-nav {{#if active}}active{{/if}}"
>
<h
3
>
<span
class=
"icon-triangle"
></span>
{
{name
}
}
<span>
{
{num
}
}</span>
</h
3
>
<ul
class=
"sort-child-list"
>
{
{#each
childList
}
}
<li
class=
"{{#if childActive}}active{{/if}}"
>
<a
href=
"{{href}}"
>
{
{name
}
}</a>
<span>
{
{num
}
}</span>
</li>
{
{/each
}
}
</ul>
</li>
{
{/each
}
}
</ul>
</div>
<div
class=
"sort-container"
>
<h
2
>
全部品类
<span>
{
{updateNum
}
}</span>
</h
2
>
<ul>
{
{#each
list
}
}
<li
class=
"product-list-nav {{#if active}}active{{/if}}"
>
<h
3
>
<span
class=
"icon-triangle"
></span>
{
{name
}
}
<span>
{
{num
}
}</span>
</h
3
>
<ul
class=
"sort-child-list"
>
{
{#each
childList
}
}
<li
class=
"{{#if childActive}}active{{/if}}"
>
<a
href=
"{{href}}"
>
{
{name
}
}</a>
<span>
{
{num
}
}</span>
</li>
{
{/each
}
}
</ul>
</li>
{
{/each
}
}
</ul>
</div>
{
{/
allSort
}
}
{
{!--
图片链接
--
}
}
...
...
Please
register
or
login
to post a comment