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
Email Patches
Plain Diff
Browse Files
Authored by
Lynnic
9 years ago
Commit
06cb9b44ed957a3a4cc55e293d04288729837115
1 parent
129f97a9
增加 即将售罄 tag
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
docs/data-structure.md
static/sass/product/_detail.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
docs/data-structure.md
View file @
06cb9b4
...
...
@@ -1085,6 +1085,9 @@
},
{
is_advance: true //再到着
},
{
is_soon_sold_out: true //即将售罄
}
],
...
...
static/sass/product/_detail.scss
View file @
06cb9b4
...
...
@@ -69,6 +69,10 @@ $basicBtnC:#eb0313;
border
:
1px
solid
#000
;
color
:
#000
;
}
.soonSoldOut-tag
{
background-color
:
#ffac5b
;
color
:
#fff
;
}
}
.good-detail-page
{
overflow
:
hidden
;
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
06cb9b4
...
...
@@ -2,6 +2,7 @@
<div
class=
"good-detail-page yoho-page"
>
<div
class=
"banner-container"
>
<div
class=
"tag-container"
>
<p
class=
"good-tag soonSoldOut-tag"
>即将售罄</p>
{
{#
tags
}
}
{
{#
is_new
}
}
<p
class=
"good-tag new-tag"
>NEW</p>
...
...
@@ -18,6 +19,9 @@
{
{#
is_limited
}
}
<p
class=
"good-tag limit-tag"
>限量商品</p>
{
{/
is_limited
}
}
{
{#
is_soon_sold_out
}
}
<p
class=
"good-tag soonSoldOut-tag"
>即将售罄</p>
{
{/
is_soon_sold_out
}
}
{
{/
tags
}
}
</div>
{
{#
bannerTop
}
}
...
...
@@ -102,7 +106,7 @@
<div
id=
"productDesc"
></div>
{
{>
product/recommend-for-you
}
}
{
{#cartInfo
}
}
<div
class=
"cart-bar"
>
{
{#if
numInCart
}
}
...
...
Please
register
or
login
to post a comment