Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
郭成尧
9 years ago
Commit
d79dd24e2117a92ac672e7c66525a567a062951a
2 parents
1c3ba8c8
d0fa6ebe
Merge branch 'release/sale' of git.yoho.cn:fe/yohobuy-node into release/sale
the commit.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
5 deletions
apps/product/views/action/goods.hbs
public/scss/product/sale/_index.css
apps/product/views/action/goods.hbs
View file @
d79dd24
...
...
@@ -41,22 +41,22 @@
</div>
<div
class=
"good-detail-text"
>
<a
href=
"
{{
url
}}
"
target=
"_blank"
>
{{{
productName
}}}
</a>
{{!-- {{# brandName}} --}}
<p
class=
"brand"
>
<a
href=
"
{{
urlFormat
url
}}
"
>
{{
brandName
}}
</a>
</p>
{{!-- {{/ brandName}} --}}
<p
class=
"price"
>
{{#
marketPrice
}}
<span
class=
"market-price"
>
¥
{{
.
}}
</span>
{{/
marketPrice
}}
{{#
salesPrice
}}
<span
class=
"sale-price
{{#
unless
marketPrice
}}
prime-cost
{{/
unless
}}
"
>
¥
{{
salesPrice
}}
</span>
{{#
vip
}}
<span
class=
"vip-tag"
>
VIP
</span><strong>
{{
vipPrice
}}
</strong>
{{/
vip
}}
{{/
salesPrice
}}
{{#
vip
}}
<span
class=
"vip-tag"
>
VIP
</span><strong>
更优惠
</strong>
{{/
vip
}}
{{#
vip1
}}
<span
class=
"vip-1"
>
</span><strong>
{{
vipPrice
}}
</strong>
{{/
vip1
}}
{{#
vip2
}}
<span
class=
"vip-2"
>
</span><strong>
{{
vipPrice
}}
</strong>
{{/
vip2
}}
{{#
vip3
}}
<span
class=
"vip-3"
>
</span><strong>
{{
vipPrice
}}
</strong>
{{/
vip3
}}
{{#
vip3
}}
<span
class=
"vip-3"
>
</span><strong>
{{
vipPrice
}}
</strong>
{{/
vip3
}}
</p>
</div>
</div>
...
...
public/scss/product/sale/_index.css
View file @
d79dd24
...
...
@@ -402,12 +402,51 @@
background-image
:
resolve
(
"sale/vip.png"
);
background-repeat
:
no-repeat
;
background-size
:
100%
90%
;
width
:
40px
;
color
:
#fff
;
font-style
:
italic
;
margin-right
:
5px
;
margin-left
:
5px
;
width
:
30px
;
}
span
.vip-1
{
background-image
:
resolve
(
"product/silver-small.png"
);
background-repeat
:
no-repeat
;
width
:
30px
;
display
:
inline-block
;
height
:
12px
;
color
:
#fff
;
font-style
:
italic
;
margin-right
:
5px
;
margin-left
:
5px
;
position
:
absolute
;
}
span
.vip-2
{
background-image
:
resolve
(
"product/golden-small.png"
);
background-repeat
:
no-repeat
;
width
:
30px
;
display
:
inline-block
;
height
:
1
0
px
;
height
:
1
2
px
;
color
:
#fff
;
font-style
:
italic
;
margin-right
:
5px
;
margin-left
:
5px
;
position
:
absolute
;
}
span
.vip-3
{
background-image
:
resolve
(
"product/platinum-small.png"
);
background-repeat
:
no-repeat
;
width
:
30px
;
display
:
inline-block
;
height
:
12px
;
color
:
#fff
;
font-style
:
italic
;
margin-right
:
5px
;
margin-left
:
5px
;
position
:
absolute
;
}
.price-sale
{
...
...
Please
register
or
login
to post a comment