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 18:31:44 +0800
Commit
34f2dc892ba11f9bed49866baee391b10ce504ed
1 parent
927cd33a
bug fix for 1330/1328/1326/1323/1295
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
1 deletions
static/js/me/fav.js
static/js/me/suggest.js
static/sass/me/_fav.scss
template/m.yohobuy.com/partials/home/favorite_brand_list.phtml
static/js/me/fav.js
View file @
34f2dc8
...
...
@@ -137,6 +137,7 @@ favTabHammer.on('tap', function(e) {
index
=
$cur
.
index
();
if
(
index
===
0
)
{
brandTab
=
false
;
if
(
$favProductList
.
find
(
'li'
).
length
===
0
&&
$favProductList
.
closest
(
'.fav-type'
).
find
(
'.fav-null-box'
).
hasClass
(
'hide'
))
{
loadData
(
$favProductList
,
'favProduct'
,
1
);
...
...
@@ -202,6 +203,11 @@ favContentHammer.on('tap', function(e) {
}).
fail
(
function
()
{
//TODO
diaLog
.
showDialog
({
autoHide
:
true
,
dialogText
:
'网络错误~'
});
});
});
});
...
...
static/js/me/suggest.js
View file @
34f2dc8
...
...
@@ -126,6 +126,11 @@ $likeBtn.bind('click', function() {
}).
fail
(
function
(
data
)
{
//TODO
diaLog
.
showDialog
({
autoHide
:
true
,
dialogText
:
'网络错误~'
});
});
});
...
...
@@ -148,5 +153,10 @@ $disLikeBtn.bind('click', function() {
}).
fail
(
function
(
data
)
{
//TODO
diaLog
.
showDialog
({
autoHide
:
true
,
dialogText
:
'网络错误~'
});
});
});
\ No newline at end of file
...
...
static/sass/me/_fav.scss
View file @
34f2dc8
...
...
@@ -126,6 +126,7 @@
.price-underline
{
text-decoration
:
line-through
;
margin-left
:
pxToRem
(
15px
);
}
}
...
...
@@ -188,6 +189,11 @@
}
//品牌收藏
.fav-brand-swiper
{
border-bottom
:
1px
solid
#ccc
;
&
.none-border-bottom
{
border-bottom
:
none
;
}
.swiper-header
{
height
:
pxToRem
(
100px
);
...
...
@@ -239,6 +245,13 @@
}
}
.fav-more
{
width
:
2
.5rem
;
height
:
2
.5rem
;
position
:
absolute
;
top
:
0
;
right
:
0
;
&
:after
{
$width
:
pxToRem
(
image_width
(
sprite-file
(
$fav
,
fav-more
)));
$height
:
pxToRem
(
image_height
(
sprite-file
(
$fav
,
fav-more
)));
...
...
@@ -250,6 +263,8 @@
top
:
50%
;
right
:
pxToRem
(
30px
);
margin-top
:
-
$height
/
2
;
content
:
''
;
}
}
}
.swiper-container
{
...
...
template/m.yohobuy.com/partials/home/favorite_brand_list.phtml
View file @
34f2dc8
{
{#
hasFavBrand
}
}
<div
class=
"fav-brand-swiper"
>
<div
class=
"fav-brand-swiper
{{#if productList}}none-border-bottom{{/if}}
"
>
<div
class=
"swiper-header"
>
<div
class=
"swiper-logo"
>
<img
src=
"{{brandImg}}"
alt=
""
/>
...
...
@@ -17,6 +17,7 @@
</div>
<a
class=
"fav-more"
href=
"{{link}}"
></a>
</div>
{
{#if
productList
}
}
<div
id=
"swiper-container-{{id}}"
class=
"swiper-container"
data-id=
"{{id}}"
>
<ul
class=
"swiper-wrapper swiper-wrapper-{{id}}"
>
{
{#
productList
}
}
...
...
@@ -33,5 +34,6 @@
{
{/
productList
}
}
</ul>
</div>
{
{/if
}
}
</div>
{
{/
hasFavBrand
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment