Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
姜枫
9 years ago
Commit
94af2b248f7080152994b293dd4a9b835b91f776
1 parent
1312a078
fix bugs
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
apps/me/controllers/setting.js
public/js/me/setting.page.js
apps/me/controllers/setting.js
View file @
94af2b2
...
...
@@ -94,12 +94,12 @@ const index = (req, res, next) => {
}
});
_
.
forEach
(
result
.
date
.
selectMonth
,
function
(
x
)
{
if
(
x
.
value
===
a
[
1
]
)
{
if
(
parseInt
(
x
.
value
,
10
)
===
parseInt
(
a
[
1
],
10
)
)
{
x
.
isSelected
=
'selected'
;
}
});
_
.
forEach
(
result
.
date
.
selectDay
,
function
(
x
)
{
if
(
x
.
value
===
a
[
2
]
)
{
if
(
parseInt
(
x
.
value
,
10
)
===
parseInt
(
a
[
2
],
10
)
)
{
x
.
isSelected
=
'selected'
;
}
});
...
...
public/js/me/setting.page.js
View file @
94af2b2
...
...
@@ -39,17 +39,17 @@ var Bll = {
var
birthdayForm
=
$
(
'#birthday'
);
var
nickForm
=
$
(
'#nick_name'
);
var
realNameForm
=
$
(
'#username'
);
var
addressForm
=
$
(
'.form-group-address'
);
//
var addressForm = $('.form-group-address');
var
flag
=
true
;
!
regBirth
.
test
(
info
.
birthday
)
?
birthdayForm
.
next
().
show
()
:
birthdayForm
.
next
().
hide
();
!
regName
.
test
(
info
.
nick_name
)
?
nickForm
.
next
().
show
()
:
nickForm
.
next
().
hide
();
!
regRealName
.
test
(
info
.
username
)
?
realNameForm
.
next
().
show
()
:
realNameForm
.
next
().
hide
();
typeof
(
info
.
area_code
)
===
'undefined'
?
addressForm
.
css
(
'margin-bottom'
,
'20px'
).
find
(
'.error-tips'
).
show
()
:
addressForm
.
css
(
'margin-bottom'
,
'70px'
).
find
(
'.error-tips'
).
hide
();
if
(
!
regBirth
.
test
(
info
.
birthday
)
||
!
regName
.
test
(
info
.
nick_name
)
||
!
regRealName
.
test
(
info
.
username
)
||
typeof
(
info
.
area_code
)
===
'undefined'
)
{
// typeof (info.area_code) === 'undefined' ?
// addressForm.css('margin-bottom', '20px').find('.error-tips').show() :
// addressForm.css('margin-bottom', '70px').find('.error-tips').hide();
if
(
!
regBirth
.
test
(
info
.
birthday
)
||
!
regName
.
test
(
info
.
nick_name
)
||
!
regRealName
.
test
(
info
.
username
))
{
flag
=
false
;
}
return
flag
;
...
...
Please
register
or
login
to post a comment