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
Email Patches
Plain Diff
Browse Files
Authored by
lore-w
9 years ago
Commit
2f520cd5420063b254882300e031de2f6a3f00e1
1 parent
896d31f0
点赞bug修复、收藏品牌样式问题、收藏商品icon更换
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
19 deletions
static/js/me/fav.js
static/js/me/suggest.js
static/sass/me/_fav.scss
static/sass/me/_suggest.scss
template/m.yohobuy.com/actions/index/home/favorite.phtml
template/m.yohobuy.com/partials/home/favorite_brand_list.phtml
template/m.yohobuy.com/partials/home/favorite_product_list.phtml
static/js/me/fav.js
View file @
2f520cd
...
...
@@ -21,7 +21,7 @@ var $navLi = $('#fav-tab > li'),
$brandLoadMore
=
$
(
'.fav-brand-load-more'
),
winH
=
$
(
window
).
height
(),
$favProductList
=
$
(
'.fav-product-list'
),
$favBrandList
=
$
(
'.fav-brand-swiper'
),
$favBrandList
=
$
(
'.fav-brand-swiper
-wrapper
'
),
pageId
=
1
,
brandPageId
=
1
,
//收藏品牌的当前页数
lockId
=
true
,
...
...
static/js/me/suggest.js
View file @
2f520cd
...
...
@@ -121,7 +121,7 @@ $likeBtn.bind('click', function() {
}).
then
(
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$that
.
closest
(
'.suggest-type'
).
removeClass
(
'show'
);
$
(
'.suggest-good'
).
addClass
(
'show'
);
$
that
.
closest
(
'.suggest-item'
).
find
(
'.suggest-good'
).
addClass
(
'show'
);
}
}).
fail
(
function
(
data
)
{
...
...
@@ -148,7 +148,7 @@ $disLikeBtn.bind('click', function() {
}).
then
(
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$that
.
closest
(
'.suggest-type'
).
removeClass
(
'show'
);
$
(
'.suggest-bad'
).
addClass
(
'show'
);
$
that
.
closest
(
'.suggest-item'
).
find
(
'.suggest-bad'
).
addClass
(
'show'
);
}
}).
fail
(
function
(
data
)
{
...
...
static/sass/me/_fav.scss
View file @
2f520cd
...
...
@@ -171,17 +171,14 @@
}
&
.del-fav
{
$width
:
pxToRem
(
image_width
(
sprite-file
(
$fav
,
fav-del
)));
$height
:
pxToRem
(
image_height
(
sprite-file
(
$fav
,
fav-del
)));
@include
rem-sprite
(
$fav
,
fav-del
);
width
:
$width
;
height
:
$height
;
width
:
2rem
;
height
:
1
.5rem
;
line-height
:
1
.5rem
;
position
:
absolute
;
top
:
50%
;
right
:
pxToRem
(
30px
);
margin-top
:
-
$height
/
2
;
margin-top
:
-0
.75rem
;
right
:
0
;
color
:
#666
;
}
}
}
...
...
static/sass/me/_suggest.scss
View file @
2f520cd
...
...
@@ -38,14 +38,15 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px);
color
:
#444
;
border-top
:
1px
solid
#e0e0e0
;
border-bottom
:
pxToRem
(
30px
)
solid
#f0f0f0
;
overflow
:
hidden
;
.suggest-item-img
{
width
:
100%
;
overflow
:
hidden
;
>
img
{
margin
:
0
auto
;
display
:
block
;
overflow
:
hidden
;
width
:
100%
;
max-width
:
100%
;
}
}
...
...
@@ -180,7 +181,8 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px);
.img-form
{
padding
:
0
pxToRem
(
30px
);
float
:
left
;
padding-top
:
pxToRem
(
40px
);
overflow
:
hidden
;
.upload-img-list
{
float
:
left
;
...
...
template/m.yohobuy.com/actions/index/home/favorite.phtml
View file @
2f520cd
...
...
@@ -17,7 +17,7 @@
<div
class=
"fav-load-more fav-load-background hide"
></div>
</div>
<div
class=
"fav-type"
>
<div
class=
"fav-brand-swiper"
></div>
<div
class=
"fav-brand-swiper
-wrapper
"
></div>
<div
class=
"fav-content-loading"
></div>
<div
class=
"fav-null-box hide"
>
...
...
template/m.yohobuy.com/partials/home/favorite_brand_list.phtml
View file @
2f520cd
...
...
@@ -24,10 +24,10 @@
<li
class=
"swiper-slide"
>
<img
class=
"swiper-lazy"
data-src=
"{{imgUrl}}"
alt=
""
/>
<div
class=
"brand-product"
>
<
p
class=
"{{# discount}}price-discount{{/ discount}}"
>
<
div
class=
"{{# discount}}price-discount{{/ discount}}"
>
{
{#
discount
}
}<span>
{
{.
}
}<span>
{
{/
discount
}
}
<b>
{
{price
}
}</b>
</
p
>
</
div
>
</div>
<div
class=
"swiper-lazy-preloader"
></div>
</li>
...
...
template/m.yohobuy.com/partials/home/favorite_product_list.phtml
View file @
2f520cd
...
...
@@ -24,7 +24,7 @@
{
{#
sellOut
}
}
<span
class=
"sell-out"
>已售罄</span>
{
{/
sellOut
}
}
<span
class=
"del-fav
"
>
</span>
<span
class=
"del-fav
iconfont"
>
621
;
</span>
</div>
{
{/
savePrice
}
}
...
...
Please
register
or
login
to post a comment