// console.log(uni.$u)

// const {
// 	http
// } = uni.$u

import {
	http,
	toast
} from '@/uni_modules/uview-plus'



// 获取用户信息
export const getUserInfoUrl = (data) => http.get('/prod-api/api/wechat/getInfo', data);
// 登录
export const loginUrl = (data) => http.get('/prod-api/api/wechat/login', data);
// 绑定信息
export const bindInfoUrl = (data) => http.get('/prod-api/api/wechat/bindPhone', data);
// 提交
export const applyUrl = (params, config = {}) => http.post('/prod-api/care/applications', params, config);
// 修改
export const applyModifyUrl = (params, config = {}) => http.put('/prod-api/care/applications', params, config);
// 获取申请人列表
export const getPersonListUrl = (data) => http.get('/prod-api/care/persons/applist', data);
// 获取所在医院列表
export const getHospitalListUrl = (data) => http.get('/prod-api/care/hospital/list', data);
// 上传
export const uploadAvatarUrl = (params, config = {}) => http.upload('/prod-api/system/user/profile/avatar', params,
	config);
// 上传
export const uploadImgUrl = (data) => {
	// console.log('config11', data);
	return http.upload('/prod-api/common/upload', data);
}
// 获取未读消息数
export const getMsgCountUrl = (data) => http.get('/prod-api/system/notice/myNoticeList', data);
// 修改消息
export const modifyMsgUrl = (params, config = {}) => http.post('/prod-api/system/notice/setIsRead', params, config);

// 账号密码登录
export const loginByPwdUrl = (params, config = {}) => http.post('/prod-api/api/wechat/wxlogin', params, config);

// 获取街道列表
export const getStreetListUrl = (data) => http.get('/prod-api/system/dept/list', data);
// 修改个人信息
export const updateUserInfoUrl = (params, config = {}) => http.put('/prod-api/system/user/profile',
	params, config);
// 修改密码
export const updateUserPwdUrl = (params, config = {}) => http.put('/prod-api/system/user/profile/updatePwd',
	params, config);
// 出院审核
export const leaveCheckUrl = (params, config = {}) => http.post('/prod-api/care/applications/completeCheck',
	params, config);

// 注册
export const registerUrl = (params, config = {}) => http.post('/xc-order/api//order/user/register', params, config);

// 查询消息列表
export const getMessageListUrl = (params, config = {}) => http.post('/xc-order/api/order/message/messageList', params,
	config);
// 修改个人信息
export const modifyUserInfoUrl = (params, config = {}) => http.post('/xc-order/api/order/user/updateUser', params,
	config);
// 获取预约日期信息
export const getDateInfoUrl = (data) => http.get('/xc-order/api/order/orderQuantum/getQuantumDateList', data);
// 根据日期获取预约数据
export const getInfoByDateUrl = (data) => http.get('/xc-order/api/order/orderQuantum/getQuantumList', data);
// 提交预约
export const submitReversationUrl = (params, config = {}) => http.post('/xc-order/api/order/business/submitOrder',
	params,
	config);
// 获取预约列表
export const getReservationListUrl = (data) => http.get('/xc-order/api/order/business/getOrderBusinessList', data);
// 取消预约
export const cancelReservationUrl = (params, config = {}) => http.put('/xc-order/api/order/business/cancelOrder',
	params, config);

// 修改密码
export const changePwdUrl = (params, config = {}) => http.put('/system/user/resetPwdByUser', params, config);
// 获取村社列表
export const getVillageUrl = (data) => http.get('/system/user/deptTree', data);
// 实名认证
export const authUrl = (params, config = {}) => http.put('/system/user/realName', params, config);

// 新增助学申请
export const addApplyUrl = (params, config = {}) => http.post('/deal/dmsStudyHelp', params, config);
// 助学申请列表
export const getApplyList = (data) => http.get('/deal/dmsStudyHelp/list', data);
// 助学申请详情
export const getApplyDetailUrl = (data) => http.get('/deal/dmsStudyHelp/' + data.id, data);
// 修改暂存
export const modifyApplyUrl = (params, config = {}) => http.put('/deal/dmsStudyHelp', params, config);
// 删除申请详情
export const deleteApplyUrl = (data) => http.delete('/deal/dmsStudyHelp/' + data.id, data);
// 查询是否有未读消息
export const hasUnReadMessageUrl = (data) => http.get('/deal/messageInfo/isRead', data);

// 进度节点列表
export const getProcessNodeUrl = (data) => http.get('/deal/processInfo/list', data);