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.
149 lines
3.2 KiB
149 lines
3.2 KiB
// axios
|
|
import request from '@/utils/request'
|
|
|
|
// 登录
|
|
export function login(data) {
|
|
return request({
|
|
url: `/auth/loginH5/resiH5/loginFromH5ByWxCode`,
|
|
method: 'post',
|
|
message: '登录中...',
|
|
data
|
|
})
|
|
}
|
|
// 检测用户是否完善信息-废弃
|
|
export function checkWxmpRegister(params) {
|
|
return request({
|
|
url: `/third/pacustomer/checkWxmpRegister`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 获取用户信息
|
|
export function getUserWechatByUserId(id) {
|
|
return request({
|
|
url: `epmetuser/user/getH5LoginUserInfo/${id}`,
|
|
method: 'get',
|
|
message: '加载中...',
|
|
|
|
})
|
|
}
|
|
|
|
// 完善用户信息
|
|
export function register(data) {
|
|
return request({
|
|
url: `/auth/publicuser/register`,
|
|
method: 'post',
|
|
message: '登录中...',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 修改用户信息
|
|
export function editUser(data) {
|
|
return request({
|
|
url: `/epmetuser/user/saveOrUpdateUserH5DTO`,
|
|
method: 'post',
|
|
message: '提交用户信息中...',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 发送验证码
|
|
export function sendsmscode(data) {
|
|
return request({
|
|
url: `/auth/publicuser/sendsmscode`,
|
|
method: 'post',
|
|
message: '发送验证码中...',
|
|
data
|
|
})
|
|
}
|
|
// 获取所有街道
|
|
export function getAllAgencyStreet(params) {
|
|
return request({
|
|
url: `/gov/org/agency/getAllAgencyStreet`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
//
|
|
// 根据pid获取下级组织信息
|
|
export function getChildAgencyByPid(params) {
|
|
return request({
|
|
url: `/gov/org/agency/getChildAgencyByPid`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
// 根据组织id获取组织下的所有小区信息
|
|
export function getQuartersForCommunity(params) {
|
|
return request({
|
|
url: `/actual/base/communityQuarters/getQuartersForCommunity`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
// 根据小区id获取楼栋信息
|
|
export function buildingoption(data) {
|
|
return request({
|
|
url: `/actual/base/communityBuilding/buildingoption`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
// 根据楼栋id获取单元信息
|
|
export function unitoption(data) {
|
|
return request({
|
|
url: `/actual/base/communityBuildingUnit/unitoption`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
// 根据单元id获取门牌号信息
|
|
export function houseoption(data) {
|
|
return request({
|
|
url: `/actual/base/communityHouse/houseoption`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
//获取我的消息列表
|
|
export function querystaffmessage(params) {
|
|
return request({
|
|
url: `/message/usermessage/staff/querystaffmessage`,
|
|
method: 'post',
|
|
params
|
|
})
|
|
}
|
|
// 获取消息列表
|
|
export function getWxmpEventAndDemandMessageList(params) {
|
|
return request({
|
|
url: `/governance/officialAccountDemand/getWxmpEventAndDemandMessageList`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
// 获取组织树
|
|
export function getAllOrgTreeList(data) {
|
|
return request({
|
|
url: `/gov/org/customerAgencyTree/getAllOrgTreeList`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
//获取可享服务
|
|
export function myCommonsService(data) {
|
|
return request({
|
|
url: `/actual/base/residentBaseInfo/myCommonsService`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
//获取可享服务详情
|
|
export function icServiceWarmRecord(data) {
|
|
return request({
|
|
url: `/governance/icServiceWarmRecord/detail`,
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|