| | |
| | | $f.get(cb) |
| | | }, |
| | | //获取用户基础信息 |
| | | getBaseInfo: function (userId, fun) { |
| | | getBaseInfo: function (userId, fun, wxUserId) { |
| | | let cb = { |
| | | url: `/userInfo/baseInfo`, |
| | | params: { |
| | | userId: userId |
| | | } |
| | | } |
| | | if (wxUserId) { |
| | | cb.params.wxUserId = wxUserId |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | |
| | | }, |
| | | |
| | | //场景信息认证 |
| | | authScene: function (userId, info, fun) { |
| | | authScene: function (wxUserId, sceneType, sceneInfo, fun) { |
| | | let cb = { |
| | | url: '/wxuser/loginPW', |
| | | data: accessTokenPW, |
| | | url: '/auth/scene', |
| | | params: { |
| | | wxUserId: wxUserId, |
| | | sceneType: sceneType |
| | | }, |
| | | data: sceneInfo, |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.post(cb) |
| | | }, |
| | | |
| | | //获取用户认证状态 |
| | | getAuthStatus: function (wxUserId, userId, fun) { |
| | | let cb = { |
| | | url: `/auth/status`, |
| | | params: { |
| | | wxUserId: wxUserId, |
| | | userId: userId |
| | | } |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.get(cb) |
| | | }, |
| | | |
| | | //修改密码 |
| | | changePW(userId, oldP, newP, fun) { |
| | | let cb = { |
| | | url: `/userInfo/password/change`, |
| | | params: { |
| | | userId: userId, |
| | | oldPassword: oldP, |
| | | newPassword: newP |
| | | } |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.post(cb) |
| | | }, |
| | | |
| | | subscribeResult(event, fun) { |
| | | let cb = { |
| | | url: `/wxuser/message/subscribe/result`, |
| | | data: event |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.post(cb) |
| | | }, |
| | | |
| | | // 获取飞羽监管系统中对应账户的场景信息 |
| | | getSceneByUserId(userId, fun) { |
| | | let cb = { |
| | | url: `/usermap/scene`, |
| | | params: { |
| | | tzUserId: userId, |
| | | } |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.get(cb, $f.spUrl) |
| | | } |
| | | } |