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
Lynnic
9 years ago
Commit
fb9f012d6a72b239fab4acbf67c4d7838562fa53
2 parents
5fa380f4
b65ea22d
为您优选数据不加载时隐藏外层容器 --code reviewed by bikai
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
13 deletions
static/js/product/detail/detail.js
static/js/product/recommend-for-you-product-desc.js
static/sass/product/_detail.scss
static/js/product/detail/detail.js
View file @
fb9f012
...
...
@@ -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 @
fb9f012
...
...
@@ -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 @
fb9f012
...
...
@@ -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