|
|
|
const http = uni.$u.http
|
|
|
|
//发送短信
|
|
|
|
export const smsSend = (params, config = {}) => http.post('/api/sms/send', params, config);
|
|
|
|
//短信校验
|
|
|
|
export const smsCheck = (params, config = {}) => http.post('/api/sms/check', params, config);
|
|
|
|
//用户注册
|
|
|
|
export const userRegister = (params, config = {}) => http.post('/api/user/register', params, config);
|
|
|
|
//用户登录
|
|
|
|
export const loginApi = (params, config = {}) => http.post('/api/user/login', params, config);
|
|
|
|
//用户协议
|
|
|
|
export const privacyPolicy = (params, config = {}) => http.post('/addons/shopro/data.richtext/index', params, config);
|
|
|
|
//忘记密码
|
|
|
|
export const forgetPsw = (params, config = {}) => http.post('/api/user/resetpwd', params, config);
|
|
|
|
//获取用户信息
|
|
|
|
export const getUserInfo = (params, config = {custom: { auth: true }}) => http.post('/api/user/getUserinfo', params, config);
|
|
|
|
//地址列表
|
|
|
|
export const getAddrList = (params, config = {custom: { auth: true }}) => http.post('/addons/shopro/user.address/index', params, config);
|
|
|
|
//获取地区
|
|
|
|
export const getArea = (params, config = {custom: { auth: true }}) => http.post('/addons/shopro/data.area/index', params, config);
|
|
|
|
//新增地区
|
|
|
|
export const addAddr = (params, config = {custom: { auth: true }}) => http.post('/addons/shopro/user.address/add', params, config);
|
|
|
|
//编辑地区
|
|
|
|
export const editAddr = (params, config = {custom: { auth: true }}) => http.post('/addons/shopro/user.address/edit', params, config);
|
|
|
|
//删除地区
|
|
|
|
export const deleteAddr = (params, config = {custom: { auth: true }}) => http.post('/addons/shopro/user.address/delete', params, config);
|
|
|
|
//获取地区
|
|
|
|
export const getAddrDesc = (params, config = {custom: { auth: true }}) => http.post('/addons/shopro/user.address/detail', params, config);
|
|
|
|
//修改密码
|
|
|
|
export const changePassword = (params, config = {custom: { auth: true }}) => http.post('/addons/shopro/user.user/changePassword', params, config);
|
|
|
|
//注销用户
|
|
|
|
export const logout = (params, config = {custom: { auth: true }}) => http.post('/api/user/logout', params, config);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //用户登录
|
|
|
|
// export const loginHandle = (params, config = {}) => http.post('/api/user/login', params, config);
|
|
|
|
// //退出登录
|
|
|
|
// export const logout = (params, config = {}) => http.post('/api/user/logout', params, config);
|
|
|
|
// //用户个人中心
|
|
|
|
// export const getUserInfo = (params, config = {custom: { auth: true }}) => http.get('/api/user/index', {params}, config);
|
|
|
|
// //关于我们
|
|
|
|
// export const aboutUs = (params, config = {custom: { auth: true }}) => http.get('/api/index/about', {params}, config);
|
|
|
|
// //隐私协议
|
|
|
|
// export const privacyPolicy = (params, config = {custom: { auth: true }}) => http.get('/api/index/privacyPolicy', {params}, config);
|
|
|
|
// //用户协议
|
|
|
|
// export const getUserText = (params, config = {custom: { auth: true }}) => http.get('/api/index/userAgreement', {params}, config);
|
|
|
|
// //用户须知
|
|
|
|
// export const getUserKnow = (params, config = {custom: { auth: true }}) => http.get('/api/index/userNotice', {params}, config);
|
|
|
|
// //上传图片
|
|
|
|
// export const uploadImg = (params, config = {custom: { auth: true }}) => http.get('/api/common/upload', {params}, config);
|
|
|
|
// //反馈
|
|
|
|
// export const setFeedBack = (params, config = {custom: { auth: true }}) => http.post('/api/index/feedback', params, config);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //验收不通过
|
|
|
|
// export const unpassHandle = (params, config = {custom: { auth: true }}) => http.post('api/work_order/noReason ', params, config);
|
|
|
|
|
|
|
|
// //获取配置项
|
|
|
|
// export const getSetting = (params, config = {custom: { auth: true }}) => http.get('/api/index/config', {params}, config);
|
|
|
|
|
|
|
|
// //工单列表
|
|
|
|
// export const orderList = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/index', {params}, config);
|
|
|
|
// //添加工单
|
|
|
|
// export const addOrderHandle = (params, config = {custom: { auth: true }}) => http.post('/api/work_order/add', params, config);
|
|
|
|
|
|
|
|
// //获取工单详情
|
|
|
|
// export const getDetails = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/detail', {params}, config);
|
|
|
|
// //安装调试记录
|
|
|
|
// export const getInstallLog = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/getLog', {params}, config);
|
|
|
|
// //添加工单调试记录
|
|
|
|
// export const addLogHandle = (params, config = {custom: { auth: true }}) => http.post('/api/work_order/addLog', params, config);
|
|
|
|
// //安装规范
|
|
|
|
// export const getFile = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/getNorm', {params}, config);
|
|
|
|
// //获取产品类型和型号
|
|
|
|
// export const getProType = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/getProduct', {params}, config);
|
|
|
|
// //获取配置项
|
|
|
|
// export const getAcceptance = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/acceptance', {params}, config);
|
|
|
|
// //签字
|
|
|
|
|
|
|
|
// export const setSing = (params, config = {custom: { auth: true }}) => http.post('/api/work_order/sing', params, config);
|
|
|
|
// //案例分享
|
|
|
|
// export const exampleShare = (params, config = {custom: { auth: true }}) => http.get('/api/index/caseShare', {params}, config);
|
|
|
|
// //用户签字
|
|
|
|
// export const userSign = (params, config = {}) => http.post('/api/work_order/userSing', params, config);
|
|
|
|
// //用户签字信息校验
|
|
|
|
// export const checkUserSign = (params, config = {custom: { auth: true }}) => http.post('/api/work_order/shareOrder', params, config);
|
|
|
|
|
|
|
|
|