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
Email Patches
Plain Diff
Browse Files
Authored by
Lynnic
9 years ago
Commit
42d1c57baa9f49761b06fc27a6723e363322e916
1 parent
2d9ebc05
修复了促销信息只有一条时的js bug --code reviewed by zhaobiao
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
static/js/product/detail/detail.js
static/js/product/detail/detail.js
View file @
42d1c57
...
...
@@ -52,13 +52,13 @@ goodsSwiper = new Swiper('.banner-swiper', {
//初始化goods-discount
if
(
0
===
$
(
'.goodsDiscount .discount-folder'
)
.
children
().
length
)
{
if
(
0
===
$
discountFolder
.
children
().
length
)
{
$discountFolder
.
css
(
'display'
,
'none'
);
$discountArrow
.
html
(
''
);
}
//goods-discount下拉按钮点击事件
if
(
goodsDiscountHammer
)
{
if
(
goodsDiscountHammer
&&
$discountFolder
.
children
().
length
>
0
)
{
goodsDiscountHammer
.
on
(
'tap'
,
function
(
e
)
{
if
(
$discountFolder
.
is
(
':hidden'
))
{
$discountArrow
.
removeClass
(
'icon-down'
).
addClass
(
'icon-up'
).
html
(
''
);
...
...
@@ -67,7 +67,6 @@ if (goodsDiscountHammer) {
$discountArrow
.
removeClass
(
'icon-up'
).
addClass
(
'icon-down'
).
html
(
''
);
$discountFolder
.
slideUp
();
}
return
false
;
});
}
...
...
Please
register
or
login
to post a comment