Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
0c16296b9707e4d89055939981a73a70c5078529
1 parent
15781e3e
增加goodsDiscount按钮效果
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
static/js/product/detail/detail.js
template/m.yohobuy.com/actions/product/detail/index.phtml
static/js/product/detail/detail.js
View file @
0c16296
...
...
@@ -75,8 +75,14 @@ $('#nav-tab li').on('click', function() {
$
(
'.goodsDiscount .dropdown'
).
on
(
'click'
,
function
()
{
if
(
$
(
'.goodsDiscount .discount-folder'
).
is
(
':hidden'
))
{
$
(
'.goodsDiscount .first-item span'
).
removeClass
(
'icon-down'
);
$
(
'.goodsDiscount .first-item span'
).
addClass
(
'icon-up'
);
$
(
'.goodsDiscount .first-item span'
).
html
(
''
);
$
(
'.goodsDiscount .discount-folder'
).
slideDown
();
}
else
{
$
(
'.goodsDiscount .first-item span'
).
removeClass
(
'icon-up'
);
$
(
'.goodsDiscount .first-item span'
).
addClass
(
'icon-down'
);
$
(
'.goodsDiscount .first-item span'
).
html
(
''
);
$
(
'.goodsDiscount .discount-folder'
).
slideUp
();
}
});
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
0c16296
...
...
@@ -45,7 +45,7 @@
<div
class=
"goodsDiscount"
>
{
{#each
list
}
}
{
{#if
@first
}
}
<h
1
>
{
{this
}
}<span
class=
"
iconfont dropdown"
>
609
;</span></h
1
>
<h
1
class=
"first-item"
>
{
{this
}
}<span
class=
"icon-down
iconfont dropdown"
>
609
;</span></h
1
>
<div
class=
"discount-folder"
>
{
{else
}
}
<h
1
class=
"folder-item"
>
{
{this
}
}</h
1
>
...
...
Please
register
or
login
to post a comment