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
周少峰
8 years ago
Commit
ebb8feebb3930a2acc46cd9bfda8584b2495d5bd
2 parents
40debf94
7758a557
Merge branch 'gray'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
package.json
public/js/cart/cart-color-panel.js
public/js/passport/reg/reg.js
package.json
View file @
ebb8fee
{
"name"
:
"yohobuy-node"
,
"version"
:
"5.4.1
6
"
,
"version"
:
"5.4.1
7
"
,
"private"
:
true
,
"description"
:
"A New Yohobuy Project With Express"
,
"repository"
:
{
...
...
public/js/cart/cart-color-panel.js
View file @
ebb8fee
...
...
@@ -103,7 +103,7 @@ ColorPanelAction = {
},
selectColor
:
function
()
{
var
$this
=
$
(
this
);
var
index
=
$this
.
index
(
$this
.
parent
().
find
(
'.dt'
)
);
var
index
=
$this
.
parent
().
find
(
'.dt'
).
index
(
$this
);
var
$srows
=
$this
.
closest
(
'.goods-info'
).
find
(
'.choose-size .size-row'
);
var
$bigImgs
=
$this
.
closest
(
'.goods-choose-box'
).
find
(
'.goods-info-bigImg .bigImg'
);
...
...
public/js/passport/reg/reg.js
View file @
ebb8fee
...
...
@@ -576,6 +576,8 @@ exports.init = function(page) {
};
}
var
isRegRequesting
=
false
;
// eslint-disable-line
// ajax表单提交
$registerBtn
.
click
(
function
()
{
var
url
;
...
...
@@ -590,6 +592,12 @@ exports.init = function(page) {
return
;
}
else
{
if
(
isRegRequesting
)
{
return
;
}
isRegRequesting
=
true
;
// ajax提交
$
.
ajax
({
type
:
'POST'
,
...
...
@@ -636,6 +644,8 @@ exports.init = function(page) {
alert
(
data
.
message
);
//eslint-disable-line
}
}).
always
(
function
()
{
isRegRequesting
=
false
;
});
}
});
...
...
Please
register
or
login
to post a comment