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 updateUserInfo = (params, config = {custom: { auth: true }}) => http.post('/api/user/updateUserInfo', params, config); //优惠券 export const couponList = (params, config = {custom: { auth: true }}) => http.post('/addons/shopro/user.coupon/index', params, config); //分销中心 //统计 export const getUserCommissionStatistic = (params, config = {custom: { auth: true }}) => http.post('/api/user/getUserCommissionStatistic', params, config); //我的佣金 export const getUserCommissionApi = (params, config = {custom: { auth: true }}) => http.post('/api/user/getUserCommission', params, config); //佣金列表 export const getUserCommissionList = (params, config = {custom: { auth: true }}) => http.post('/api/user/getUserCommissionList', params, config); //我的粉丝 export const getUserFansStatistic = (params, config = {custom: { auth: true }}) => http.post('/api/user/getUserFansStatistic', params, config); //粉丝列表 export const getUserFansList = (params, config = {custom: { auth: true }}) => http.post('/api/user/getUserFansList', params, config); //收益统计 export const getUserProfitStatistic = (params, config = {custom: { auth: true }}) => http.post('/api/user/getUserProfitStatistic', params, config); //收益列表 export const getUserProfitList = (params, config = {custom: { auth: true }}) => http.post('/api/user/getUserProfitList', params, config);