You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
1.9 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. import { http } from '@/uni_modules/uview-plus'
  2. // 登录发验证码
  3. export const getLoginCode = (data) => http.post('member/auth/send-sms-code', data, { custom: { noToken: true, catch: true,}})
  4. // 微信小程序的一键登录
  5. export const weixinLogin = (data) => http.post('member/auth/wx_login', data)
  6. // 验证码登录
  7. export const loginSMS = (data) => http.post('member/auth/sms-login', data, { custom: { noToken: true }})
  8. // 用户协议和隐私协议
  9. export const getAgreement = (params={}) => http.get('app/student-record/getAgreement', {params})
  10. // 获取个人信息
  11. export const getUserInfo = (data) => http.post('member/user/get', {header: {'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'}})
  12. // 退出登录
  13. export const logOut = (data={}) => http.post('member/auth/logout', data, {custom: {catch: true, toast: false }})
  14. // 文章列表
  15. export const getNoticeList = (data) => http.post('article/simple_list', data)
  16. // 首页文章详情
  17. export const getNoticeDetail = (data) => http.post('article/article_detail', data)
  18. // 我的房子信息
  19. export const getHouses = (data) => http.post('mime/houses', data)
  20. // 投票列表
  21. export const votePage = (data) => http.post('article/vote_page', data)
  22. // 我参与的投票
  23. export const mineVotePage = (data) => http.post('article/mine_vote_page', data)
  24. // 小区下拉选信息
  25. export const houseTree = (data) => http.post('house/tree', data)
  26. // 根据房间号搜索房子
  27. export const houseRoom = (data) => http.post('house/room_search', data)
  28. // 绑定房子
  29. export const houseRoomBind = (data) => http.post('house/bind_room', data)
  30. // 实名认证区取token
  31. export const getFacetoken = (data) => http.post('face/get_token', data)
  32. // 获取认证结果
  33. export const getFaceResult = (data) => http.post('face/get_result', data)