Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
2448c5373b2a5a01ae113aba9a363c264c4c900b
2 parents
8b22116d
4f921562
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
static/sass/product/_recommend-for-you.scss
template/m.yohobuy.com/partials/product/recommend-for-you.phtml
static/sass/product/_recommend-for-you.scss
View file @
2448c53
...
...
@@ -36,13 +36,15 @@
}
.price
{
position
:
relative
;
margin-top
:
pxToRem
(
20px
);
font-size
:
pxToRem
(
20px
);
line-height
:
1
;
span
{
// chrome 最小支持12px
transform
:
scale
(
0
.875
);
// chrome 最小支持12px, 设计图是 10px ,用CSS3变换
font-size
:
pxToRem
(
20px
);
@include
transform
(
scale
(
0
.5
));
}
.sale-price
{
...
...
@@ -50,7 +52,9 @@
}
.old-price
{
float
:
right
;
position
:
absolute
;
top
:
0
;
right
:
0
;
color
:
#ededed
;
}
...
...
template/m.yohobuy.com/partials/product/recommend-for-you.phtml
View file @
2448c53
...
...
@@ -7,8 +7,8 @@
<li
class=
"swiper-slider"
>
<img
class=
"img-box"
src=
"{{thumb}}"
>
<div
class=
"price"
>
<span
class=
"sale-price"
>¥
{
{salePrice
}
}</span>
<span
class=
"old-price"
>¥
{
{price
}
}</span>
<span
class=
"sale-price {{^price}}no-price{{/price}}"
>¥
{
{salePrice
}
}</span>
{
{#price
}
}<span
class=
"old-price"
>¥
{
{.
}
}</span>
{
{/price
}
}
</div>
</li>
{
{/recommendList
}
}
...
...
Please
register
or
login
to post a comment