| | |
| | | |
| | | $f.get(cb) |
| | | }, |
| | | |
| | | //登录 |
| | | loginPW: function (accessTokenPW, fun) { |
| | | let cb = { |
| | | url: '/wxuser/loginPW', |
| | | data: accessTokenPW, |
| | | } |
| | | Object.assign(cb, fun) |
| | | |
| | | $f.post(cb) |
| | | }, |
| | | |
| | | //场景信息认证 |
| | | authScene: function (wxUserId, sceneType, sceneInfo, fun) { |
| | | let cb = { |
| | | 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) |
| | | }, |
| | | } |