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
c33fd1f2ae90e55326a05f542a875799ec50b03a
1 parent
8e6d7dca
fix bug 794
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
apps/me/models/setting.js
apps/me/models/setting.js
View file @
c33fd1f
...
...
@@ -148,14 +148,24 @@ const _editInfo = (uid, nickName, username, gender, birthday)=> {
* @private
*/
const
_editUserContactInfo
=
(
uid
,
areaCode
,
mobile
,
fullAddress
,
zipCode
)
=>
{
return
api
.
get
(
''
,
{
let
param
=
{
method
:
'web.passport.modifyUserContacts'
,
uid
:
uid
,
area_code
:
areaCode
,
mobile
:
mobile
,
full_address
:
fullAddress
,
zip_code
:
zipCode
}).
then
(
result
=>
result
);
uid
:
uid
};
if
(
mobile
)
{
param
.
mobile
=
mobile
;
}
if
(
zipCode
)
{
param
.
zip_code
=
zipCode
;
}
if
(
areaCode
)
{
param
.
area_code
=
areaCode
;
}
if
(
fullAddress
)
{
param
.
full_address
=
fullAddress
;
}
return
api
.
get
(
''
,
param
).
then
(
result
=>
result
);
};
/**
...
...
@@ -170,7 +180,9 @@ const editUserInfo = (uid, info) => {
_editUserContactInfo
(
uid
,
info
.
area_code
,
info
.
mobile
,
info
.
full_address
,
info
.
zip_code
)
];
return
Promise
.
all
(
getData
).
then
(
result
=>
result
);
return
Promise
.
all
(
getData
).
then
(
result
=>
{
return
result
;
});
};
/**
...
...
Please
register
or
login
to post a comment