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
Plain Diff
Browse Files
Authored by
yyq
8 years ago
Commit
c767586b5f6e192e5abe787ecc9f1b88994eda79
2 parents
76a60a03
efc0bf1f
Merge branch 'feature/giftCart' into release/6.1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
public/js/cart/ensure.page.js
public/js/cart/ticket.page.js
public/js/cart/ensure.page.js
View file @
c767586
...
...
@@ -1036,11 +1036,11 @@ $('#order-submit').click(function() {
this
.
timer
&&
clearInterval
(
this
.
timer
);
this
.
$sendBtn
.
text
(
'重新获取('
+
(
this
.
seconds
--
)
+
'
秒
)'
).
addClass
(
'timer'
);
this
.
$sendBtn
.
text
(
'重新获取('
+
(
this
.
seconds
--
)
+
')'
).
addClass
(
'timer'
);
this
.
timer
=
setInterval
(
function
()
{
if
(
that
.
seconds
>
0
)
{
that
.
$sendBtn
.
text
(
'重新获取('
+
(
that
.
seconds
--
)
+
'
秒
)'
).
addClass
(
'timer'
);
that
.
$sendBtn
.
text
(
'重新获取('
+
(
that
.
seconds
--
)
+
')'
).
addClass
(
'timer'
);
}
else
{
that
.
$sendBtn
.
text
(
'重新获取'
).
removeClass
(
'timer'
);
clearInterval
(
that
.
timer
);
...
...
public/js/cart/ticket.page.js
View file @
c767586
...
...
@@ -320,11 +320,11 @@ $('#order-submit').on('click', function() {
this
.
timer
&&
clearInterval
(
this
.
timer
);
this
.
$sendBtn
.
text
(
'重新获取('
+
(
this
.
seconds
--
)
+
'
秒
)'
).
addClass
(
'timer'
);
this
.
$sendBtn
.
text
(
'重新获取('
+
(
this
.
seconds
--
)
+
')'
).
addClass
(
'timer'
);
this
.
timer
=
setInterval
(
function
()
{
if
(
that
.
seconds
>
0
)
{
that
.
$sendBtn
.
text
(
'重新获取('
+
(
that
.
seconds
--
)
+
'
秒
)'
).
addClass
(
'timer'
);
that
.
$sendBtn
.
text
(
'重新获取('
+
(
that
.
seconds
--
)
+
')'
).
addClass
(
'timer'
);
}
else
{
that
.
$sendBtn
.
text
(
'重新获取'
).
removeClass
(
'timer'
);
clearInterval
(
that
.
timer
);
...
...
Please
register
or
login
to post a comment