me.js 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. const http = uni.$u.http
  2. // post请求,用户实名认证
  3. export const userRealNameAuth = (params, config = {}) => http.post('/member/wechat/idCardAuthentication', params, config)
  4. // post请求,用户信息保存
  5. export const saveUserInfo = (params, config = {}) => http.post('/member/wechat/saveUserInfo', params, config)
  6. // post请求,修改用户账号密码
  7. export const updateUserAccountPassword = (params, config = {}) => http.post('/member/wechat/setPassword', params, config)
  8. // post请求,修改用户交易密码
  9. export const updateUserTransactionPassword = (params, config = {}) => http.post('/member/wechat/setTransactionPassword', params, config)
  10. // post请求,绑定微信
  11. export const bindWechat = (params, config = {}) => http.post('/member/wechat/setOpenId', params, config)
  12. // get请求,获取服务条款协议
  13. export const getTermOfServiceByType = (params, config = {}) => http.get('/system/openapi/getAboutByType', params, config)
  14. // get请求,获取公共文件路径
  15. export const getCommonFile = (params, config = {}) => http.get('/resource/oss/listByIds/'+params.data.ossId, params, config)
  16. // post请求,重新设置手机号
  17. export const setPhone = (params, config = {}) => http.post('/member/wechat/setPhone', params, config)
  18. // get请求,获取用户信息
  19. export const getUserInfo = (params, config = {}) => http.get('/member/wechat/getUserInfo', params, config)