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

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