|
|
|
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 getUserFansOrderStatistic = (params, config = {custom: { auth: true }}) => http.post('/api/user/getUserFansOrderStatistic', params, config);
|
|
|
|
//粉丝订单列表
|
|
|
|
export const getUserFansOrderList = (params, config = {custom: { auth: true }}) => http.post('/api/user/getUserFansOrderList', 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);
|
|
|
|
//抢购预告
|
|
|
|
export const getWarehouseList = (params, config = {custom: { auth: true }}) => http.post('/api/order/getWarehouseList', params, config);
|
|
|
|
//商品列表
|
|
|
|
export const getGoodsList = (params, config = {custom: { auth: true }}) => http.post('/api/order/getGoodsList', params, config);
|
|
|
|
//商品详情
|
|
|
|
export const getgoodsDetail = (params, config = {custom: { auth: true }}) => http.get('/api/order/goodsDetail', {params}, config);
|
|
|
|
//买方订单
|
|
|
|
export const getBuyerOrderList = (params, config = {custom: { auth: true }}) => http.get('/api/order/getBuyerOrderList', {params}, config);
|
|
|
|
//卖方订单
|
|
|
|
export const getSellerOrderList = (params, config = {custom: { auth: true }}) => http.get('/api/order/getSellerOrderList', {params}, config);
|
|
|
|
//确认订单
|
|
|
|
export const createOrder = (params, config = {custom: { auth: true }}) => http.post('/api/order/createOrder', params, config);
|
|
|
|
//取消订单
|
|
|
|
export const cancelOrder = (params, config = {custom: { auth: true }}) => http.post('/api/order/cancelOrder', params, config);
|
|
|
|
//订单详情
|
|
|
|
export const orderDetail = (params, config = {custom: { auth: true }}) => http.get('/api/order/orderDetail', {params}, config);
|
|
|
|
//订单支付
|
|
|
|
export const orderPay = (params, config = {custom: { auth: true }}) => http.post('/api/order/orderPay', params, config);
|
|
|
|
//绑定人
|
|
|
|
export const bindInvitor = (params, config = {custom: { auth: true }}) => http.post('/api/user/bindInvitor', params, config);
|
|
|
|
//上架
|
|
|
|
export const payUpGoods = (params, config = {custom: { auth: true }}) => http.post('/api/order/payUpGoods', params, config);
|
|
|
|
|