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
125 lines
2.5 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, { custom: { noToken: true }} )
|
|
// 验证码登录
|
|
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('face/user_info', {header: {'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'}})
|
|
export const getUserInfo = (data) => http.post('face/user_info',)
|
|
// 退出登录
|
|
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, { custom: { noToken: true }})
|
|
// 首页文章详情
|
|
export const getNoticeDetail = (data) => http.post('article/article_detail?articleId='+data.articleId, {}, { custom: { noToken: true }})
|
|
// 我的房子信息
|
|
export const getHouses = (data) => http.post('mime/houses', 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)
|
|
|
|
// 投票列表
|
|
export const votePage = (data) => http.post('article/vote_page', data)
|
|
// 投票详情
|
|
export const voteDetail = (data) => http.post('article/vote_detail', data)
|
|
// 我参与的投票
|
|
export const mineVotePage = (data) => http.post('article/mine_vote_page', data)
|
|
// 投票
|
|
export const articleVote = (data) => http.post('article/vote', data)
|
|
// 投票结果
|
|
export const voteResult = (data) => http.post('article/vote_result', data)
|
|
// 小程序订阅消息
|
|
export const appletSubscribe = (data) => http.post('mime/applet/subscribe', data)
|
|
// 投票
|
|
export const vote_multiple = (data) => http.post('article/vote_multiple', data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|