Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
0b52cb9537f02be739b9457e17455d5c84c06545
2 parents
a60fe3eb
5bc169d6
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
45 deletions
static/js/product/list.js
template/m.yohobuy.com/partials/good.phtml
template/m.yohobuy.com/partials/product/list.phtml
static/js/product/list.js
View file @
0b52cb9
...
...
@@ -40,8 +40,8 @@ var $listNav = $('#list-nav'),
navInfo
=
{
newest
:
{
order
:
1
,
reload
:
false
,
page
:
1
,
reload
:
true
,
page
:
0
,
end
:
false
},
price
:
{
...
...
@@ -355,4 +355,7 @@ $brandHeader.children('.btn-col').bind('tap', function() {
tip
.
show
(
'网络断开连接了~'
);
}
});
});
\ No newline at end of file
});
//初始请求最新第一页数据
search
();
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/good.phtml
View file @
0b52cb9
<div class="good-info" data-id="{{id}}">
<div class="tag-container clearfix">
{{# tags}}
{{# is_new}}
<p class="good-tag new-tag">NEW</p>
{{/ is_new}}
{{# is_advance}}
<p class="good-tag renew-tag">再到着</p>
{{/ is_advance}}
{{# is_discount}}
<p class="good-tag sale-tag">SALE</p>
{{/ is_discount}}
{{# is_yohoood}}
<div class="good-tag yohood-tag"></div>
{{/ is_yohoood}}
{{# is_limited}}
<p class="good-tag limit-tag">限量商品</p>
{{/ is_limited}}
{{/ tags}}
</div>
<div class="good-detail-img">
<a class="good-thumb" href="{{url}}">
<img class="lazy" data-original="{{thumb}}">
</a>
{{# is_soon_sold_out}}
<p class="few-tag">即将售罄</p>
{{/ is_soon_sold_out}}
</div>
<div class="good-detail-text">
<div class="name">
<a href="{{url}}">{{name}}</a>
{
{#if
.
}
}
{
{!--
剔除值为false的项
--
}
}
<div
class=
"good-info"
data-id=
"{{id}}"
>
<div
class=
"tag-container clearfix"
>
{
{#
tags
}
}
{
{#
is_new
}
}
<p
class=
"good-tag new-tag"
>NEW</p>
{
{/
is_new
}
}
{
{#
is_advance
}
}
<p
class=
"good-tag renew-tag"
>再到着</p>
{
{/
is_advance
}
}
{
{#
is_discount
}
}
<p
class=
"good-tag sale-tag"
>SALE</p>
{
{/
is_discount
}
}
{
{#
is_yohoood
}
}
<div
class=
"good-tag yohood-tag"
></div>
{
{/
is_yohoood
}
}
{
{#
is_limited
}
}
<p
class=
"good-tag limit-tag"
>限量商品</p>
{
{/
is_limited
}
}
{
{/
tags
}
}
</div>
<div
class=
"good-detail-img"
>
<a
class=
"good-thumb"
href=
"{{url}}"
>
<img
class=
"lazy"
data-original=
"{{thumb}}"
>
</a>
{
{#
is_soon_sold_out
}
}
<p
class=
"few-tag"
>即将售罄</p>
{
{/
is_soon_sold_out
}
}
</div>
<div class="price">
<span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span>
{{#price}}
<span class="market-price">¥{{.}}</span>
{{/price}}
<div
class=
"good-detail-text"
>
<div
class=
"name"
>
<a
href=
"{{url}}"
>
{
{name
}
}</a>
</div>
<div
class=
"price"
>
<span
class=
"sale-price {{^price}}no-price{{/price}}"
>¥
{
{salePrice
}
}</span>
{
{#price
}
}
<span
class=
"market-price"
>¥
{
{.
}
}</span>
{
{/price
}
}
</div>
</div>
</div>
</div>
{
{/if
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
0b52cb9
...
...
@@ -82,11 +82,7 @@
</li>
</ul>
<div
id=
"goods-container"
class=
"goods-container"
>
<div
class=
"new-goods container clearfix"
>
{
{#
new
}
}
{
{>
good
}
}
{
{/
new
}
}
</div>
<div
class=
"new-goods container clearfix"
></div>
<div
class=
"price-goods container clearfix hide"
></div>
<div
class=
"discount-goods container clearfix hide"
></div>
...
...
Please
register
or
login
to post a comment