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.
118 lines
2.5 KiB
118 lines
2.5 KiB
2 years ago
|
// axios
|
||
|
import request from '@/utils/request'
|
||
|
|
||
|
// 登录
|
||
|
export function login(data) {
|
||
|
return request({
|
||
|
url: `/auth/publicuser/wxcodetotoken`,
|
||
|
method: 'post',
|
||
|
message: '登录中...',
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
// 检测用户是否完善信息
|
||
|
export function checkWxmpRegister(params) {
|
||
|
return request({
|
||
|
url: `/third/pacustomer/checkWxmpRegister`,
|
||
|
method: 'get',
|
||
|
params
|
||
|
})
|
||
|
}
|
||
|
// 获取用户信息
|
||
|
export function getUserWechatByUserId(params) {
|
||
|
return request({
|
||
|
url: `/auth/publicuser/getUserWechatByUserId`,
|
||
|
method: 'get',
|
||
|
message: '获取用户信息中...',
|
||
|
params
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 完善用户信息
|
||
|
export function register(data) {
|
||
|
return request({
|
||
|
url: `/auth/publicuser/register`,
|
||
|
method: 'post',
|
||
|
message: '提交用户信息中...',
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改用户信息
|
||
|
export function editUser(data) {
|
||
|
return request({
|
||
|
url: `/third/pauserwechat/updateUserWechat`,
|
||
|
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 getWxmpEventAndDemandMessageList(params) {
|
||
|
return request({
|
||
|
url: `/governance/officialAccountDemand/getWxmpEventAndDemandMessageList`,
|
||
|
method: 'get',
|
||
|
params
|
||
|
})
|
||
|
}
|