|
|
@ -8,7 +8,8 @@ const UserConst = { |
|
|
|
user_myTopics_url:'/api/group/groupByUser', // 我的议题
|
|
|
|
user_myActivity_url:'/api/activity/activityList', // 我的活动
|
|
|
|
|
|
|
|
user_updateUserInfo_url:'/api/miniuser/updateMiniUser' // 更新用户信息
|
|
|
|
user_updateUserInfo_url:'/api/miniuser/updateMiniUser', // 更新用户信息
|
|
|
|
user_sendUserInfo_url:'/api/miniuser/updateUserInfo' // 上传用户信息
|
|
|
|
} |
|
|
|
class UserModel extends HTTP { |
|
|
|
constructor () { |
|
|
@ -43,6 +44,23 @@ class UserModel extends HTTP { |
|
|
|
this.request(params) |
|
|
|
} |
|
|
|
|
|
|
|
sendUserInfo(weChatInfo,success){ |
|
|
|
let params = { |
|
|
|
url: UserConst.user_sendUserInfo_url, |
|
|
|
method: Method.POST, |
|
|
|
data: { |
|
|
|
avatarUrl: weChatInfo.avatarUrl, |
|
|
|
city: weChatInfo.city, |
|
|
|
country: weChatInfo.country, |
|
|
|
gender: weChatInfo.gender, |
|
|
|
nickName: weChatInfo.nickName, |
|
|
|
province: weChatInfo.province |
|
|
|
}, |
|
|
|
success: success |
|
|
|
} |
|
|
|
this.request(params) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
getMyMessageList(page, success){ |
|
|
|
let params = { |
|
|
|