Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
c5820e282e24b026f54c4370c40eecf264b7b1c3
2 parents
f099ecdb
32a2ed98
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
15 deletions
static/js/index/search.js
static/js/product/detail/detail.js
static/js/product/recommend-for-you-product-desc.js
static/sass/product/_detail.scss
static/js/index/search.js
View file @
c5820e2
...
...
@@ -71,8 +71,8 @@ $('#search').on('touchend', function() {
if
(
historys
&&
historys
.
length
>
0
)
{
historys
=
historys
.
split
(
ranToken
);
for
(
i
=
0
;
i
<
historys
.
length
;
i
++
)
{
history
=
historys
[
i
];
for
(
i
=
historys
.
length
;
i
>
0
;
i
--
)
{
history
=
historys
[
i
-
1
];
if
(
history
===
''
)
{
continue
;
...
...
static/js/product/detail/detail.js
View file @
c5820e2
...
...
@@ -82,6 +82,8 @@ $.ajax({
}
});
if
(
$
(
'.good-detail-page'
).
length
>
0
)
{
$
(
'#yoho-footer'
).
css
(
'border-top'
,
'1px solid #e0e0e0'
);
}
require
(
'./like'
);
...
...
static/js/product/recommend-for-you-product-desc.js
View file @
c5820e2
...
...
@@ -14,15 +14,19 @@ var recommendSwiper,
if
(
preferenceUrl
)
{
$
.
get
(
preferenceUrl
).
then
(
function
(
html
)
{
$recommendForYou
.
html
(
html
).
show
();
if
(
$
(
'#swiper-recommend'
).
length
)
{
recommendSwiper
=
new
Swiper
(
'#swiper-recommend'
,
{
slidesPerView
:
'auto'
,
grabCursor
:
true
,
slideElement
:
'a'
,
lazyLoading
:
true
,
watchSlidesVisibility
:
true
});
if
(
html
.
length
<
5
)
{
$recommendForYou
.
css
(
'display'
,
'none'
);
}
else
{
$recommendForYou
.
html
(
html
).
show
();
if
(
$
(
'#swiper-recommend'
).
length
)
{
recommendSwiper
=
new
Swiper
(
'#swiper-recommend'
,
{
slidesPerView
:
'auto'
,
grabCursor
:
true
,
slideElement
:
'a'
,
lazyLoading
:
true
,
watchSlidesVisibility
:
true
});
}
}
window
.
rePosFooter
();
...
...
static/sass/product/_detail.scss
View file @
c5820e2
...
...
@@ -402,6 +402,7 @@ $basicBtnC:#eb0313;
z-index
:
2
;
padding
:
pxToRem
(
20px
)
pxToRem
(
28px
);
text-align
:
center
;
border-top
:
1px
solid
$borderC
;
a
{
display
:
inline-block
;
&
.num-incart
{
...
...
@@ -447,9 +448,9 @@ $basicBtnC:#eb0313;
}
}
}
// .recommend-for-you {
// margin-bottom: pxToRem(30px);
// }
.recommend-for-you
{
border-bottom
:
none
;
}
.yoho-tip
{
top
:
40%
;
}
...
...
Please
register
or
login
to post a comment