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
10 years ago
Commit
6f0ebed8259da37a2ef69e4300e92d682cdddd76
1 parent
0e5ce804
good info filter false
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
37 deletions
template/m.yohobuy.com/partials/good.phtml
template/m.yohobuy.com/partials/good.phtml
View file @
6f0ebed
<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
...
...
Please
register
or
login
to post a comment