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
lore-w
2015-12-01 19:19:31 +0800
Commit
22d6611def0ade74e3f3244296133c006fec9ed4
1 parent
f1a9a9c0
fix bug for 1328
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
8 deletions
static/sass/me/_fav.scss
template/m.yohobuy.com/partials/home/favorite_brand_list.phtml
static/sass/me/_fav.scss
View file @
22d6611
...
...
@@ -189,10 +189,23 @@
}
//品牌收藏
.fav-brand-swiper
{
border-bottom
:
1px
solid
#ccc
;
border-top
:
1px
solid
#e0e0e0
;
border-bottom
:
pxToRem
(
28px
)
solid
#f0f0f0
;
position
:
relative
;
&
.none-border-bottom
{
border-bottom
:
none
;
&
:nth-of-type
(
1
)
{
border-top
:
0
;
}
&
:after
{
content
:
''
;
position
:
absolute
;
left
:
0
;
bottom
:
-2px
;
border-top
:
1px
solid
#e0e0e0
;
display
:
block
;
width
:
100%
;
height
:
1px
;
}
.swiper-header
{
...
...
@@ -268,7 +281,7 @@
}
}
.swiper-container
{
height
:
pxToRem
(
3
00
px
);
height
:
pxToRem
(
3
65
px
);
margin
:
0
pxToRem
(
30px
);
.swiper-slide
{
...
...
@@ -285,9 +298,28 @@
img
{
display
:
block
;
width
:
100%
;
height
:
100%
;
height
:
pxToRem
(
300px
)
;
overflow
:
hidden
;
}
.brand-product
{
height
:
pxToRem
(
65px
);
line-height
:
pxToRem
(
65px
);
text-align
:
center
;
font-size
:
pxToRem
(
22px
);
color
:
#fff
;
.price-discount
{
span
{
color
:
#d1021c
}
b
{
color
:
#b0b0b0
;
text-decoration
:
line-through
;
font-weight
:
normal
;
margin-left
:
pxToRem
(
13px
);
}
}
}
}
}
}
...
...
template/m.yohobuy.com/partials/home/favorite_brand_list.phtml
View file @
22d6611
{
{#
hasFavBrand
}
}
<div
class=
"fav-brand-swiper
{{#if productList}}none-border-bottom{{/if}}
"
>
<div
class=
"fav-brand-swiper"
>
<div
class=
"swiper-header"
>
<div
class=
"swiper-logo"
>
<img
src=
"{{brandImg}}"
alt=
""
/>
...
...
@@ -25,8 +25,8 @@
<img
class=
"swiper-lazy"
data-src=
"{{imgUrl}}"
alt=
""
/>
<div
class=
"brand-product"
>
<p
class=
"{{# discount}}price-discount{{/ discount}}"
>
{
{price
}
}
{
{#
discount
}
}<span>
{
{.
}
}
{
{/
discount
}
}<span>
{
{#
discount
}
}<span>
{
{.
}
}<span>
{
{/
discount
}
}
<b>
{
{price
}
}</b>
</p>
</div>
<div
class=
"swiper-lazy-preloader"
></div>
...
...
Please
register
or
login
to post a comment