Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
刘传洋
8 years ago
Commit
5a34c2ab9b47dad7d5d6d35cefdc43018854001a
1 parent
9dba8d54
m
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
public/js/cart/cart-action.js
public/js/cart/cart-action.js
View file @
5a34c2a
...
...
@@ -361,11 +361,11 @@ Cart = {
var
$firstGift
=
$
(
'[data-role="gift-sel-btn"]'
);
var
$sitem
=
$firstGift
;
if
(
!
$sitem
.
is
(
':visible'
))
{
if
(
!
$sitem
.
is
(
':visible'
))
{
$sitem
=
$sitem
.
closest
(
'.sale-info'
);
}
$
(
'html,body'
).
animate
({
scrollTop
:
$sitem
.
offset
().
top
-
50
+
'px'
},
500
,
'swing'
,
function
(){
$
(
'html,body'
).
animate
({
scrollTop
:
$sitem
.
offset
().
top
-
50
+
'px'
},
500
,
'swing'
,
function
()
{
$firstGift
.
click
();
});
},
function
()
{
...
...
Please
register
or
login
to post a comment