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.

125 lines
2.5 KiB

4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
6 days ago
3 months ago
3 months ago
3 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, { custom: { noToken: true }} )
  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('face/user_info', {header: {'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'}})
  12. export const getUserInfo = (data) => http.post('face/user_info',)
  13. // 退出登录
  14. export const logOut = (data={}) => http.post('member/auth/logout', data, {custom: {catch: true, toast: false }})
  15. // 文章列表
  16. export const getNoticeList = (data) => http.post('article/simple_list', data, { custom: { noToken: true }})
  17. // 首页文章详情
  18. export const getNoticeDetail = (data) => http.post('article/article_detail?articleId='+data.articleId, {}, { custom: { noToken: true }})
  19. // 我的房子信息
  20. export const getHouses = (data) => http.post('mime/houses', data)
  21. // 小区下拉选信息
  22. export const houseTree = (data) => http.post('house/tree', data)
  23. // 根据房间号搜索房子
  24. export const houseRoom = (data) => http.post('house/room_search', data)
  25. // 绑定房子
  26. export const houseRoomBind = (data) => http.post('house/bind_room', data)
  27. // 实名认证区取token
  28. export const getFacetoken = (data) => http.post('face/get_token', data)
  29. // 获取认证结果
  30. export const getFaceResult = (data) => http.post('face/get_result', data)
  31. // 投票列表
  32. export const votePage = (data) => http.post('article/vote_page', data)
  33. // 投票详情
  34. export const voteDetail = (data) => http.post('article/vote_detail', data)
  35. // 我参与的投票
  36. export const mineVotePage = (data) => http.post('article/mine_vote_page', data)
  37. // 投票
  38. export const articleVote = (data) => http.post('article/vote', data)
  39. // 投票结果
  40. export const voteResult = (data) => http.post('article/vote_result', data)
  41. // 小程序订阅消息
  42. export const appletSubscribe = (data) => http.post('mime/applet/subscribe', data)
  43. // 投票
  44. export const vote_multiple = (data) => http.post('article/vote_multiple', data)