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
xuqi
2015-10-28 19:36:32 +0800
Commit
33d5cae9c23ad382229063305afc3ea3734fe177
1 parent
44a9e067
partials good list
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
129 additions
and
250 deletions
template/m.yohobuy.com/actions/index/search/list.phtml
template/m.yohobuy.com/actions/product/index/index.phtml
template/m.yohobuy.com/partials/product/list.phtml
template/m.yohobuy.com/actions/index/search/list.phtml
View file @
33d5cae
{
{>
layout/header
}
}
<div
class=
"good-list-page yoho-page"
>
{
{#
goodList
}
}
{
{#
search
}
}
<div
id=
"search-input"
class=
"search-input"
>
<form
action=
{
{url
}
}
method=
"get"
>
<i
class=
"search-icon iconfont"
>
60
f;</i>
<input
type=
"text"
value=
{
{default
}
}
name=
"query"
>
<i
class=
"clear-input iconfont hide"
>
61
a;</i>
<button
id=
"search"
class=
"search"
type=
"submit"
>搜索</button>
</form>
</div>
{
{/
search
}
}
{
{#
brandWay
}
}
<div
class=
"brand-way"
>
<a
href=
{
{url
}
}>
<img
class=
"brand-thumb"
src=
{
{thumb
}
}>
<span>
{
{name
}
}</span>
<span
class=
"entry"
>
进入品牌
<i
class=
"iconfont"
>
614
;</i>
</span>
</a>
</div>
{
{/
brandWay
}
}
{
{#
brandHome
}
}
<div
id=
"brand-header"
class=
"brand-header"
data-id=
{
{id
}
}>
<img
class=
"lazy"
data-original=
{
{banner
}
}>
<a
class=
"btn-intro"
href=
"javascript:void(0);"
>
品牌介绍
</a>
<a
class=
"btn-col"
href=
"javascript:void(0);"
>
<span
class=
"iconfont"
>
622
;</span>
收藏
</a>
</div>
<div
id=
"intro-box"
class=
"brand-intro-box hide"
>
<div
id=
"brand-intro"
class=
"brand-intro"
>
<h
2
>品牌介绍</h
2
>
<div
class=
"con"
>
{
{{intro
}
}}
</div>
<p
class=
"fo"
>
<span></span>
100
%品牌授权正品
</p>
<span
class=
"iconfont close-intro"
>
623
;</span>
</div>
</div>
{
{/
brandHome
}
}
<ul
id=
"list-nav"
class=
"list-nav clearfix"
>
<li
class=
"new active"
>
<a
href=
"javascript:void(0);"
>
最新
<span
class=
"iconfont cur"
>
616
;</span>
</a>
</li>
<li
class=
"price"
>
<a
href=
"javascript:void(0);"
>
价格
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
</span>
</a>
</li>
<li
class=
"discount"
>
<a
href=
"javascript:void(0);"
>
折扣
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
</span>
</a>
</li>
<li
class=
"filter"
>
<a
href=
"javascript:void(0);"
>
筛选
<span
class=
"iconfont"
>
613
;</span>
</a>
</li>
</ul>
<div
id=
"goods-container"
class=
"goods-container"
>
<div
class=
"new-goods container"
>
{
{#
new
}
}
{
{>
good
}
}
{
{/
new
}
}
</div>
<div
class=
"price-goods container hide"
></div>
<div
class=
"discount-goods container hide"
></div>
{
{>
filter
}
}
</div>
{
{#if
brand
}
}
<input
id=
"brand"
type=
"hidden"
value=
{
{brand
}
}>
{
{/if
}
}
{
{#if
gender
}
}
<input
id=
"gender"
type=
"hidden"
value=
{
{gender
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{/if
}
}
{
{#if
color
}
}
<input
id=
"color"
type=
"hidden"
value=
{
{color
}
}>
{
{/if
}
}
{
{#if
size
}
}
<input
id=
"size"
type=
"hidden"
value=
{
{size
}
}>
{
{/if
}
}
{
{#if
price
}
}
<input
id=
"price"
type=
"hidden"
value=
{
{price
}
}>
{
{/if
}
}
{
{#if
discount
}
}
<input
id=
"discount"
type=
"hidden"
value=
{
{discount
}
}>
{
{/if
}
}
{
{/
goodList
}
}
{
{>
product/list
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/product/index/index.phtml
View file @
33d5cae
{
{>
layout/header
}
}
<div
class=
"good-list-page yoho-page"
>
{
{#
goodList
}
}
{
{#
search
}
}
<div
id=
"search-input"
class=
"search-input"
>
<form
action=
{
{url
}
}
method=
"get"
>
<i
class=
"search-icon iconfont"
>
60
f;</i>
<input
type=
"text"
value=
{
{default
}
}
name=
"query"
>
<i
class=
"clear-input iconfont hide"
>
61
a;</i>
<button
id=
"search"
class=
"search"
type=
"submit"
>搜索</button>
</form>
</div>
{
{/
search
}
}
{
{#
brandWay
}
}
<div
class=
"brand-way"
>
<a
href=
{
{url
}
}>
<img
class=
"brand-thumb"
src=
{
{thumb
}
}>
<span>
{
{name
}
}</span>
<span
class=
"entry"
>
进入品牌
<i
class=
"iconfont"
>
614
;</i>
</span>
</a>
</div>
{
{/
brandWay
}
}
{
{#
brandHome
}
}
<div
id=
"brand-header"
class=
"brand-header"
data-id=
{
{id
}
}>
<img
class=
"lazy"
data-original=
{
{banner
}
}>
<a
class=
"btn-intro"
href=
"javascript:void(0);"
>
品牌介绍
</a>
<a
class=
"btn-col"
href=
"javascript:void(0);"
>
<span
class=
"iconfont"
>
622
;</span>
收藏
</a>
</div>
<div
id=
"intro-box"
class=
"brand-intro-box hide"
>
<div
id=
"brand-intro"
class=
"brand-intro"
>
<h
2
>品牌介绍</h
2
>
<div
class=
"con"
>
{
{{intro
}
}}
</div>
<p
class=
"fo"
>
<span></span>
100
%品牌授权正品
</p>
<span
class=
"iconfont close-intro"
>
623
;</span>
</div>
</div>
{
{/
brandHome
}
}
<ul
id=
"list-nav"
class=
"list-nav clearfix"
>
<li
class=
"new active"
>
<a
href=
"javascript:void(0);"
>
最新
<span
class=
"iconfont cur"
>
616
;</span>
</a>
</li>
<li
class=
"price"
>
<a
href=
"javascript:void(0);"
>
价格
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
</span>
</a>
</li>
<li
class=
"discount"
>
<a
href=
"javascript:void(0);"
>
折扣
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
</span>
</a>
</li>
<li
class=
"filter"
>
<a
href=
"javascript:void(0);"
>
筛选
<span
class=
"iconfont"
>
613
;</span>
</a>
</li>
</ul>
<div
id=
"goods-container"
class=
"goods-container"
>
<div
class=
"new-goods container clearfix"
>
{
{#
new
}
}
{
{>
good
}
}
{
{/
new
}
}
</div>
<div
class=
"price-goods container clearfix hide"
></div>
<div
class=
"discount-goods container clearfix hide"
></div>
{
{>
filter
}
}
</div>
{
{#if
brand
}
}
<input
id=
"brand"
type=
"hidden"
value=
{
{brand
}
}>
{
{/if
}
}
{
{#if
gender
}
}
<input
id=
"gender"
type=
"hidden"
value=
{
{gender
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{/if
}
}
{
{#if
color
}
}
<input
id=
"color"
type=
"hidden"
value=
{
{color
}
}>
{
{/if
}
}
{
{#if
size
}
}
<input
id=
"size"
type=
"hidden"
value=
{
{size
}
}>
{
{/if
}
}
{
{#if
price
}
}
<input
id=
"price"
type=
"hidden"
value=
{
{price
}
}>
{
{/if
}
}
{
{#if
discount
}
}
<input
id=
"discount"
type=
"hidden"
value=
{
{discount
}
}>
{
{/if
}
}
{
{#if
query
}
}
<input
id=
"query"
type=
"hidden"
value=
{
{query
}
}>
{
{/if
}
}
{
{/
goodList
}
}
{
{>
product/list
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/product/list.phtml
0 → 100644
View file @
33d5cae
{
{#
goodList
}
}
{
{#
search
}
}
<div
id=
"search-input"
class=
"search-input"
>
<form
action=
{
{url
}
}
method=
"get"
>
<i
class=
"search-icon iconfont"
>
60
f;</i>
<input
type=
"text"
value=
{
{default
}
}
name=
"query"
>
<i
class=
"clear-input iconfont hide"
>
61
a;</i>
<button
id=
"search"
class=
"search"
type=
"submit"
>搜索</button>
</form>
</div>
{
{/
search
}
}
{
{#
brandWay
}
}
<div
class=
"brand-way"
>
<a
href=
{
{url
}
}>
<img
class=
"brand-thumb"
src=
{
{thumb
}
}>
<span>
{
{name
}
}</span>
<span
class=
"entry"
>
进入品牌
<i
class=
"iconfont"
>
614
;</i>
</span>
</a>
</div>
{
{/
brandWay
}
}
{
{#
brandHome
}
}
<div
id=
"brand-header"
class=
"brand-header"
data-id=
{
{id
}
}>
<img
class=
"lazy"
data-original=
{
{banner
}
}>
<a
class=
"btn-intro"
href=
"javascript:void(0);"
>
品牌介绍
</a>
<a
class=
"btn-col"
href=
"javascript:void(0);"
>
<span
class=
"iconfont"
>
622
;</span>
收藏
</a>
</div>
<div
id=
"intro-box"
class=
"brand-intro-box hide"
>
<div
id=
"brand-intro"
class=
"brand-intro"
>
<h
2
>品牌介绍</h
2
>
<div
class=
"con"
>
{
{{intro
}
}}
</div>
<p
class=
"fo"
>
<span></span>
100
%品牌授权正品
</p>
<span
class=
"iconfont close-intro"
>
623
;</span>
</div>
</div>
{
{/
brandHome
}
}
<ul
id=
"list-nav"
class=
"list-nav clearfix"
>
<li
class=
"new active"
>
<a
href=
"javascript:void(0);"
>
最新
<span
class=
"iconfont cur"
>
616
;</span>
</a>
</li>
<li
class=
"price"
>
<a
href=
"javascript:void(0);"
>
价格
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
</span>
</a>
</li>
<li
class=
"discount"
>
<a
href=
"javascript:void(0);"
>
折扣
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
</span>
</a>
</li>
<li
class=
"filter"
>
<a
href=
"javascript:void(0);"
>
筛选
<span
class=
"iconfont"
>
613
;</span>
</a>
</li>
</ul>
<div
id=
"goods-container"
class=
"goods-container"
>
<div
class=
"new-goods container clearfix"
>
{
{#
new
}
}
{
{>
good
}
}
{
{/
new
}
}
</div>
<div
class=
"price-goods container clearfix hide"
></div>
<div
class=
"discount-goods container clearfix hide"
></div>
{
{>
filter
}
}
</div>
{
{#if
brand
}
}
<input
id=
"brand"
type=
"hidden"
value=
{
{brand
}
}>
{
{/if
}
}
{
{#if
gender
}
}
<input
id=
"gender"
type=
"hidden"
value=
{
{gender
}
}>
{
{/if
}
}
{
{#if
msort
}
}
<input
id=
"msort"
type=
"hidden"
value=
{
{msort
}
}>
{
{/if
}
}
{
{#if
color
}
}
<input
id=
"color"
type=
"hidden"
value=
{
{color
}
}>
{
{/if
}
}
{
{#if
size
}
}
<input
id=
"size"
type=
"hidden"
value=
{
{size
}
}>
{
{/if
}
}
{
{#if
price
}
}
<input
id=
"price"
type=
"hidden"
value=
{
{price
}
}>
{
{/if
}
}
{
{#if
discount
}
}
<input
id=
"discount"
type=
"hidden"
value=
{
{discount
}
}>
{
{/if
}
}
{
{#if
query
}
}
<input
id=
"query"
type=
"hidden"
value=
{
{query
}
}>
{
{/if
}
}
{
{/
goodList
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment