my.js 1.1 KB

12345678910111213141516171819202122232425262728
  1. // my api 接口
  2. import { wxRequest } from './request'
  3. const bindMobileURL = '/user/bind/mobile' // 获取用户手机号
  4. const userLoginURL = '/user/login' // 登录
  5. const bindBaseInfoURL = '/user/bind/base/info' // 绑定用户头像昵称
  6. const myReportListURL = '/get/my/report/list' // 我的报告
  7. const getReportURL = '/get/report' // 查看我的报告
  8. const getReportUserInfoURL = '/get/report/user/info'
  9. const chargeListURL = '/get/charge/list' // 我的充值记录
  10. const getExaminationOrderListURL = '/get/examination/order/list' // 我的核销记录
  11. export const userLogin = (data) => wxRequest(userLoginURL, data)
  12. export const bindMobile = (data) => wxRequest(bindMobileURL, data)
  13. export const bindBaseInfo = (data) => wxRequest(bindBaseInfoURL, data)
  14. export const chargeList = (data) => wxRequest(chargeListURL, data)
  15. export const myReportList = (data) => wxRequest(myReportListURL, data)
  16. export const getReport = (data) => wxRequest(getReportURL, data)
  17. export const getExaminationOrderList= (data) => wxRequest(getExaminationOrderListURL, data)
  18. export const getReportUserInfo = (data) => wxRequest(getReportUserInfoURL, data)