...
|
...
|
@@ -47,6 +47,9 @@ const getTipConfig = (uid) => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 修改用户联系信息
|
|
|
*/
|
|
|
const editUserInfo = (userInfo) => {
|
|
|
return api.get('', {
|
|
|
method: 'app.passport.modifyBase',
|
...
|
...
|
@@ -60,6 +63,9 @@ const editUserInfo = (userInfo) => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 修改用户联系信息
|
|
|
*/
|
|
|
const editUserContactInfo = (contactInfo) => {
|
|
|
return api.get('', {
|
|
|
method: 'web.passport.modifyUserContacts',
|
...
|
...
|
@@ -73,15 +79,30 @@ const editUserContactInfo = (contactInfo) => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 修改用户购物着装习惯信息
|
|
|
*/
|
|
|
const editUserHabitsInfo = (habitsInfo) => {
|
|
|
return api.get('', {
|
|
|
method: 'web.passport.modifyUserHabits',
|
|
|
method: 'web.passport.modifyLikeBrand',
|
|
|
uid: habitsInfo.uid,
|
|
|
shopping: habitsInfo.shopping,
|
|
|
dress: habitsInfo.dress
|
|
|
});
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 修改用户喜欢品牌
|
|
|
*/
|
|
|
const editUserLikeBrand = (uid, brand) => {
|
|
|
return api.get('', {
|
|
|
method: 'web.passport.modifyLikeBrand',
|
|
|
uid: uid,
|
|
|
brand: brand,
|
|
|
dress: habitsInfo.dress
|
|
|
});
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
|
getUserInfo,
|
|
|
editUserInfo,
|
...
|
...
|
@@ -91,5 +112,6 @@ module.exports = { |
|
|
getUserHabitsInfo,
|
|
|
editUserHabitsInfo,
|
|
|
getUserLikeBrand,
|
|
|
editUserLikeBrand,
|
|
|
getTipConfig
|
|
|
}; |
...
|
...
|
|