|
|
|
|
|
|
|
//如果用uni请求
|
|
|
|
import http from '@/common/uni.interface.js';
|
|
|
|
|
|
|
|
//如果是用uview请求,就用下面这句
|
|
|
|
//const http = uni.$u.http
|
|
|
|
|
|
|
|
|
|
|
|
//获取用户信息
|
|
|
|
export function getUserInfo(params){
|
|
|
|
return http.get('api/userinfo', params)
|
|
|
|
}
|
|
|
|
|
|
|
|
//用户登录
|
|
|
|
export function userLogin(params){
|
|
|
|
return http.post('/login', params)
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getTaskList(params){
|
|
|
|
return http.post('/taskList', params)
|
|
|
|
}
|
|
|
|
export function checkList(params){
|
|
|
|
return http.post('/checkList', params)
|
|
|
|
}
|
|
|
|
export function logout(params){
|
|
|
|
return http.post('/outLogin', params)
|
|
|
|
}
|
|
|
|
export function getList(params){
|
|
|
|
return http.post('/taskProcedure', params)
|
|
|
|
}
|
|
|
|
export function getDeails(params){
|
|
|
|
return http.post('/taskProcedureInfo', params)
|
|
|
|
}
|
|
|
|
|
|
|
|
export function submitHandle(params){
|
|
|
|
return http.post('/subNum', params)
|
|
|
|
}
|
|
|
|
|
|
|
|
export function confirmProcedureHandle(params){
|
|
|
|
return http.post('/confirmProcedure', params)
|
|
|
|
}
|
|
|
|
export function procedureCheckHandle(params){
|
|
|
|
return http.post('/procedureCheck', params)
|
|
|
|
}
|
|
|
|
|
|
|
|
//更改配置项,阻止loading提示
|
|
|
|
// export function getUserInfo(params){
|
|
|
|
// return http.post('api/login', {custom:{ShowLoading:false}})
|
|
|
|
// }
|