const http = uni.$u.http
|
// 登录
|
export function coustomLogin(params) {
|
return http.get('/wechat/ordinaryLogin', {params})
|
}
|
// 微信授权
|
export function wxEmpower(params) {
|
return http.get('/wechat/wxEmpower', {params})
|
}
|
// 分页查询项目信息
|
export function projectPage(data) {
|
return http.post('/wechat/project/page', data)
|
}
|
|
// 根据项目id分页查询企业报名数据
|
export function getPageByProjectId(data) {
|
return http.post('/wechat/getPageByProjectId', data)
|
}
|
|
// 根据ID查询报名详情
|
export function declaresDetail(id) {
|
return http.get(`/wechat/declares/${id}`)
|
}
|
|
// 根据ID查询报名详情
|
export function companyDetail(params) {
|
return http.get(`/wechat/company/queryDetail`, { params })
|
}
|
|
|
// 根据项目id分页查询企业报名数据
|
export function serviceDetail(data) {
|
return http.post('/wechat/declares/serviceDetail', data)
|
}
|
|
// 根据经纬度逆解析地址
|
export function getAddrByLatAndLng(params) {
|
return http.get(`/wechat/getAddrByLatAndLng`, { params })
|
}
|
|
// 根据申报编码查询最后一次核查或诊断数据
|
export function declareService({id, type}) {
|
return http.post(`/wechat/declareService/${id}?type=${type}`)
|
}
|
|
// 上传核查资料-上传服务资料
|
export function uploadHCData(data) {
|
return http.post(`/wechat/uploadHCData`, data)
|
}
|
|
// 退出登录
|
export function logout() {
|
return http.get(`/wechat/logout`)
|
}
|
|
// 根据申报id查看申报进度
|
export function getDeclareHistoryList(data) {
|
return http.post(`/wechat/getDeclareHistoryList`, data)
|
}
|