Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
郭成尧
2016-09-13 16:49:39 +0800
Commit
58462a0d204bae3f065293633ff6a04bba33795b
1 parent
1d7c6ad4
'compare-with-phpwap'
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
15 deletions
apps/product/views/action/shop/index.hbs
apps/product/views/partial/search/list.hbs
apps/product/views/action/shop/index.hbs
View file @
58462a0
{{#
shopIndex
}}
<div
class=
"shop-index yoho-page"
id=
"wrapper"
>
<div
class=
"shop-index yoho-page scroll-wrapper"
id=
"wrapper"
>
<div
id=
"scroller"
>
<div
id=
"nav-top"
>
{{>
header
}}
{{#if
appVersion
}}
<!-- tar modifield 160826 -->
<input
type=
"hidden"
name=
"app_version"
value=
"
{{
appVersion
}}
"
>
<input
type=
"hidden"
name=
"shop_id"
value=
"
{{
shopId
}}
"
>
<input
type=
"hidden"
name=
"brand"
value=
"
{{
brand
}}
"
>
<input
type=
"hidden"
name=
"favId"
value=
"
{{
favId
}}
"
>
{{else}}
<input
type=
"hidden"
name=
"coverChannel"
value=
"
{{
coverChannel
}}
"
>
{{#
unless
appVersion
}}
<div
class=
"search-area"
>
<div
id=
"search-input"
class=
"search-input"
>
<form
id=
"search-form"
action=
{{
url
}}
method="get"
>
<i
class=
"search-icon iconfont"
>

</i>
<input
type=
"text"
placeholder=
"搜索店铺内潮品"
name=
"query"
class=
"buriedpoint"
>
<input
type=
"hidden"
name=
"shop_id"
value=
"
{{
shopId
}}
"
>
<input
type=
"hidden"
name=
"app_version"
value=
"
{{
appVersion
}}
"
>
<input
type=
"hidden"
name=
"brand"
value=
"
{{
brand
}}
"
>
<input
type=
"hidden"
name=
"favId"
value=
"
{{
favId
}}
"
>
<input
type=
"hidden"
name=
"coverChannel"
value=
"
{{
coverChannel
}}
"
>
<i
class=
"clear-input iconfont hide"
>

</i>
<button
id=
"search"
class=
"search buriedpoint"
type=
"submit"
data-bp-id=
"shop_search_btn_0"
>
搜索
</button>
</form>
</div>
</div>
{{/if}}
{{/
unless
}}
<!-- /tar modifield 160826 -->
<div
class=
"branner-top"
>
<img
class=
"shop-back-img"
src=
"
{{
image
branerImg
640
200
1
}}
"
>
<img
class=
"logo"
src=
"
{{
image
logoImg
500
500
}}
"
>
...
...
@@ -48,9 +51,10 @@
</ul>
<div
id=
"home-page"
class=
"main"
>
<div
id=
"nav-main"
>
<div
id=
"nav-main"
class=
"nav-main"
>
<!-- 大导航 -->
{{#if
brandList
}}
<div
class=
"multi-brands
"
>
<div
class=
"multi-brands first
"
>
<p>
品牌一览
</p>
<div
class=
"multi-browse"
>
<ul
class=
"swiper-wrapper"
>
...
...
@@ -67,7 +71,7 @@
</div>
{{/if}}
<div
class=
"banner-area"
>
<div
class=
"banner-area
first
"
>
{{#
bannerTop
}}
{{>
resources
/
banner-top
}}
{{/
bannerTop
}}
...
...
@@ -84,16 +88,18 @@
</ul>
{{! 热门品类}}
<div
class=
"first"
>
{{#
hotCategory
}}
{{>
resources
/
hot-category
}}
{{/
hotCategory
}}
</div>
<div
class=
"popularity-title"
>
人气单品
<a
class=
"more buriedpoint"
href=
"
{{
more_url
}}
"
data-bp-id=
"shop_popularity_
{{
more_url
}}
"
>

</a>
</div>
<ul
class=
"product-list"
>
<div
class=
"product-warp"
>
<ul
class=
"product-list first"
>
{{#
each
hotList
}}
<li
class=
"buriedpoint"
data-bp-id=
"shop_hotList_
{{
url
}}
"
>
<a
href=
"
{{
url
}}
"
>
...
...
@@ -109,9 +115,55 @@
{{/
each
}}
</ul>
</div>
</div>
<div
class=
"discount-area first"
id=
"navlist2"
>
<ul
id=
"list-nav"
class=
"home-sub-nav list-nav clearfix"
>
<li
data-bp-id=
"shop_listnav_new_1"
class=
"new active buriedpoint"
>
<a
href=
"javascript:void(0);"
>
<span
class=
"spanTest"
>
最新
</span>
<span
class=
"iconfont cur"
>

</span>
</a>
</li>
<li
class=
"price buriedpoint"
data-bp-id=
"shop_listnav_price_1"
>
<a
href=
"javascript:void(0);"
>
<span
class=
"spanTest"
>
价格
</span>
<span
class=
"icon"
>
<i
class=
"iconfont up cur"
>

</i>
<i
class=
"iconfont down"
>

</i>
</span>
</a>
</li>
<li
class=
"discount buriedpoint"
data-bp-id=
"shop_listnav_discount_1"
>
<a
href=
"javascript:void(0);"
>
<span
class=
"spanTest"
>
折扣
</span>
<span
class=
"icon"
>
<i
class=
"iconfont up cur"
>

</i>
<i
class=
"iconfont down"
>

</i>
</span>
</a>
</li>
<li
class=
"filter buriedpoint"
data-bp-id=
"shop_listnav_filter_1"
>
<a
href=
"javascript:void(0);"
>
<span
class=
"spanTest"
>
筛选
</span>
<span
class=
"iconfont cur"
>

</span>
</a>
</li>
</ul>
</div>
<div
class=
"discount-area first"
>
<div
id=
"goods-container"
class=
"goods-container"
>
<div
class=
"new-goods container clearfix"
>
{{#
goods
}}
{{>
good
}}
{{/
goods
}}
</div>
<div
class=
"price-goods container hide clearfix"
></div>
<div
class=
"discount-goods container hide clearfix"
></div>
<div
class=
"discount-area"
>
{{>
shop
/
goods-nav-top
}}
</div>
</div>
</div>
<div
id=
"new-arrival"
class=
"new-arrival main hide"
></div>
...
...
@@ -165,5 +217,6 @@
</li>
</ul>
</div>
{{>
common
/
filter
}}
{{/
shopIndex
}}
{{>
common
/
query-param
}}
...
...
apps/product/views/partial/search/list.hbs
View file @
58462a0
...
...
@@ -30,7 +30,7 @@
<img
class=
"lazy"
data-original=
{{
banner
}}
>
</div
>
{{/
shopBanner
}}
<!-- 品牌页面 -->
{{#
brandHome
}}
<div
id=
"brand-header"
class=
"brand-header"
data-id=
{{
id
}}
>
<img
class=
"lazy"
data-original=
{{
banner
}}
>
...
...
@@ -56,6 +56,7 @@
</div>
</div>
{{/
brandHome
}}
<!-- /品牌页面 -->
<!-- 基础店铺页面 -->
{{#
baseShopHome
}}
...
...
Please
register
or
login
to post a comment